• Guido van Rossum's avatar
    Fix for SF bug #472940: can't getattr() attribute shown by dir() · 56ff387a
    Guido van Rossum yazdı
    There really isn't a good reason for instance method objects to have
    their own __dict__, __doc__ and __name__ properties that just delegate
    the request to the function (callable); the default attribute behavior
    already does this.
    
    The test suite had to be fixed because the error changes from
    TypeError to AttributeError.
    56ff387a
test_funcattrs.py 8.52 KB