Author: Philip Jenvey <[email protected]> Branch: Changeset: r60741:da784fe683c0 Date: 2013-01-30 10:28 -0800 http://bitbucket.org/pypy/pypy/changeset/da784fe683c0/
Log: we now use __length_hint__ 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 @@ -318,10 +318,5 @@ 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). -* the ``__len__`` or ``__length_hint__`` special methods are sometimes - called by CPython to get a length estimate to preallocate internal arrays. - So far, PyPy never calls ``__len__`` for this purpose, and never calls - ``__length_hint__`` at all. - .. include:: _ref.txt _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
