Message128958
__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:18 | michael.foord | set | recipients:
+ michael.foord, segfaulthunter, Trundle, daniel.urban |
2011-02-21 11:36:18 | michael.foord | set | messageid: <1298288178.57.0.753216281337.issue11133@psf.upfronthosting.co.za> |
2011-02-21 11:36:17 | michael.foord | link | issue11133 messages |
2011-02-21 11:36:17 | michael.foord | create | |
|