This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alkayadavit07@gmail.com
Recipients alkayadavit07@gmail.com
Date 2015-06-04.05:06:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433394396.84.0.259561149442.issue24378@psf.upfronthosting.co.za>
In-reply-to
Content
When __getattribute__ method is overrriden in a class,then in case of calling 
an attribute not in class object should throw KeyError.

But when calling dir on classs object gives an empty list as dir(dictobject) 
calls dictobject.__getattribute__(dir) and it throws KeyError instead of AttributeError in dir annd it returns NULL upstream

So dir source code need to be fixed to catch KeyError appropriately.
History
Date User Action Args
2015-06-04 05:06:36alkayadavit07@gmail.comsetrecipients: + alkayadavit07@gmail.com
2015-06-04 05:06:36alkayadavit07@gmail.comsetmessageid: <1433394396.84.0.259561149442.issue24378@psf.upfronthosting.co.za>
2015-06-04 05:06:36alkayadavit07@gmail.comlinkissue24378 messages
2015-06-04 05:06:36alkayadavit07@gmail.comcreate