[pypy-commit] pypy default: mention that deleting class attributes is slow

afteryu pypy.commits at gmail.com
Fri Sep 1 09:52:29 EDT 2017


Author: afteryu <miyu.chs at gmail.com>
Branch: 
Changeset: r92293:6dff6e92d656
Date: 2017-09-01 08:10 -0400
http://bitbucket.org/pypy/pypy/changeset/6dff6e92d656/

Log:	mention that deleting class attributes is slow

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
@@ -535,10 +535,10 @@
   or ``float`` subtypes. Currently PyPy does not support the
   ``__class__`` attribute assignment for any non heaptype subtype.
 
-* In PyPy, module dictionaries are optimized under the assumption that deleting
-  attributes from them are rare. Because of this, e.g. ``del foo.bar`` where
-  ``foo`` is a module that contains the function ``bar``, is significantly
-  slower than CPython.
+* In PyPy, module and class dictionaries are optimized under the assumption
+  that deleting attributes from them are rare. Because of this, e.g.
+  ``del foo.bar`` where ``foo`` is a module (or class) that contains the
+  function ``bar``, is significantly slower than CPython.
 
 .. _`is ignored in PyPy`: http://bugs.python.org/issue14621
 .. _`little point`: http://events.ccc.de/congress/2012/Fahrplan/events/5152.en.html


More information about the pypy-commit mailing list