Message165538
| 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: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 |
|