[pypy-commit] pypy default: document this difference
cfbolz
noreply at buildbot.pypy.org
Mon Feb 20 12:31:51 CET 2012
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r52672:b319183b838d
Date: 2012-02-20 12:31 +0100
http://bitbucket.org/pypy/pypy/changeset/b319183b838d/
Log: document this difference
diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst
--- a/pypy/doc/cpython_differences.rst
+++ b/pypy/doc/cpython_differences.rst
@@ -313,5 +313,10 @@
implementation detail that shows up because of internal C-level slots
that PyPy does not have.
+* the ``__dict__`` attribute of new-style classes returns a normal dict, as
+ opposed to a dict proxy like in CPython. Mutating the dict will change the
+ type and vice versa. For builtin types, a dictionary will be returned that
+ cannot be changed (but still looks and behaves like a normal dictionary).
+
.. include:: _ref.txt
More information about the pypy-commit
mailing list