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 michael.foord
Recipients Trundle, daniel.urban, michael.foord, segfaulthunter
Date 2011-02-21.11:36:17
SpamBayes Score 1.8044688e-05
Marked as misclassified No
Message-id <1298288178.57.0.753216281337.issue11133@psf.upfronthosting.co.za>
In-reply-to
Content
__dict__ as a property is documented as an exception to the "no code execution" claim.

The patch is not sufficient - instances may have a class member "__dict__" whilst still having an instance __dict__. Alternatively the "__dict__" property may be provided by a base class and so not available in "type(obj).__dict__" but still be provided by a property.

I don't think there is any general way to tell whether fetching obj.__dict__ will get an instance dictionary or fetch a "__dict__" member from the class or a base-class... (Hence the documented exception.)
History
Date User Action Args
2011-02-21 11:36:18michael.foordsetrecipients: + michael.foord, segfaulthunter, Trundle, daniel.urban
2011-02-21 11:36:18michael.foordsetmessageid: <1298288178.57.0.753216281337.issue11133@psf.upfronthosting.co.za>
2011-02-21 11:36:17michael.foordlinkissue11133 messages
2011-02-21 11:36:17michael.foordcreate