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 carlj
Recipients carlj, georg.brandl, ggenellina
Date 2009-01-27.06:15:37
SpamBayes Score 7.625132e-05
Marked as misclassified No
Message-id <1233036939.45.0.639195415593.issue5062@psf.upfronthosting.co.za>
In-reply-to
Content
I think that checking to see which things really exist with
getattr/hasattr made sense back in the days before the __dir__, since in
those days the real API for an object could diverge wildly from what was
reported by dir(object), but nowadays, if someone goes to the trouble of
defining the __dir__ method, then we should just trust that as being
"the API" and not do any other checking.
History
Date User Action Args
2009-01-27 06:15:39carljsetrecipients: + carlj, georg.brandl, ggenellina
2009-01-27 06:15:39carljsetmessageid: <1233036939.45.0.639195415593.issue5062@psf.upfronthosting.co.za>
2009-01-27 06:15:38carljlinkissue5062 messages
2009-01-27 06:15:37carljcreate