Message165538
The documentation (at least the obvious places, see Doc/reference/datamodel.rst) says classes and class instances have the '__dict__' attribute, but nothing is said about what happens when assigning to it (like obj.__dict__ = something).
As far as I understand that's undefined behavior and other implementations may not work the same as CPython (and CPython itself behaves differently between versions).
I'd submit a documentation patch if I knew how to specify this matter. Maybe just say the behavior is not defined? |
|
Date |
User |
Action |
Args |
2012-07-15 17:25:06 | davide.rizzo | set | recipients:
+ davide.rizzo, docs@python |
2012-07-15 17:25:06 | davide.rizzo | set | messageid: <1342373106.65.0.0254375505566.issue15360@psf.upfronthosting.co.za> |
2012-07-15 17:25:06 | davide.rizzo | link | issue15360 messages |
2012-07-15 17:25:05 | davide.rizzo | create | |
|