Author: afteryu <[email protected]> Branch: Changeset: r92292:54c318cbfcd2 Date: 2017-08-31 21:20 -0400 http://bitbucket.org/pypy/pypy/changeset/54c318cbfcd2/
Log: mention that deleting module attributes is slow (#2642) 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,6 +535,11 @@ 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. + .. _`is ignored in PyPy`: http://bugs.python.org/issue14621 .. _`little point`: http://events.ccc.de/congress/2012/Fahrplan/events/5152.en.html .. _`#2072`: https://bitbucket.org/pypy/pypy/issue/2072/ _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
