Author michael.foord
Recipients Trundle, daniel.urban, michael.foord, segfaulthunter
Date 2011-02-21.11:36:17
SpamBayes Score 1.80447e-05
Marked as misclassified No
Message-id <>
__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.)
Date User Action Args
2011-02-21 11:36:18michael.foordsetrecipients: + michael.foord, segfaulthunter, Trundle, daniel.urban
2011-02-21 11:36:18michael.foordsetmessageid: <>
2011-02-21 11:36:17michael.foordlinkissue11133 messages
2011-02-21 11:36:17michael.foordcreate