• Guido van Rossum's avatar
    Major cleanup operation: whenever there's a call that looks for an · e7b8ecf1
    Guido van Rossum yazdı
    optional attribute, only clear the exception when the internal getattr
    operation raised AttributeError.  Many places in this file already had
    that policy; but just as many didn't, and there didn't seem to be any
    rhyme or reason to it.  Be consistently cautious.
    
    Question: should I backport this?  On the one hand it's a bugfix.  On
    the other hand it's a change in behavior.  Certain forms of buggy or
    just weird code would work in the past but raise an exception under
    the new rules; e.g. if you define a __getattr__ method that raises a
    non-AttributeError exception.
    e7b8ecf1
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...
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...