• Guido van Rossum's avatar
    Fix a bizarre typo in the helper class ComparableException: the · 846d6dbb
    Guido van Rossum yazdı
    __getattr__() method, which clearly (like the other methods) was
    intended to pass the __getattr__() call on to the self.err object,
    mistakenly returned getattr(self, self.err) rather than
    getattr(self.err, attr).  Since self.err is not a string, this always
    raises a TypeError.  Apparently that doesn't bother for the one
    attribute for which __getattr__() is actually called ('__coerce__'),
    but it broke the rich comparisons stuff that I'm trying to get into
    shape, so I'm fixing this now.  (I could also simply remove the
    __getattr__() method, but fixing it seems more in the spirit of what
    the ComparableException class is trying to do.)
    846d6dbb
Adı
Son kayıt (commit)
Son güncelleme
BeOS Loading commit data...
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...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...