• Guido van Rossum's avatar
    - Some tests that check that assignments are not allowed expect this · bd131497
    Guido van Rossum yazdı
      to raise TypeError.  In practice, a disallowed attribute assignment
      can raise either TypeError or AttributeError (and it's unclear which
      is better).  So allow either.  (Yes, this is in anticipation of a
      code change that switches the exception raised. :-)
    
    - Add a utility function, cantset(), which verifies that setting a
      particular attribute to a given value is disallowed, and also that
      deleting that same attribute is disallowed.  Use this in the
      test_func_*() tests.
    
    - Add a new set of tests that test conformance of various instance
      method attributes.  (Also in anticipation of code that changes their
      implementation.)
    bd131497
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...