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 davide.rizzo
Recipients davide.rizzo, docs@python
Date 2012-07-15.17:25:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342373106.65.0.0254375505566.issue15360@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2012-07-15 17:25:06davide.rizzosetrecipients: + davide.rizzo, docs@python
2012-07-15 17:25:06davide.rizzosetmessageid: <1342373106.65.0.0254375505566.issue15360@psf.upfronthosting.co.za>
2012-07-15 17:25:06davide.rizzolinkissue15360 messages
2012-07-15 17:25:05davide.rizzocreate