Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r89965:aa5558245c78 Date: 2017-02-06 09:08 +0100 http://bitbucket.org/pypy/pypy/changeset/aa5558245c78/
Log: document branch diff --git a/pypy/doc/whatsnew-head.rst b/pypy/doc/whatsnew-head.rst --- a/pypy/doc/whatsnew-head.rst +++ b/pypy/doc/whatsnew-head.rst @@ -134,3 +134,11 @@ crypographically good way). It is the default in PyPy3. The default of PyPy2 remains unchanged: there are user programs out there that depend on constant hashes (or even sometimes on specific hash results). + +.. branch: dict-move-to-end + +Our dicts, which are always ordered, now have an extra "method" for +Python 3.x which moves an item to first or last position. In PyPy 3.5 +it is the standard ``OrderedDict.move_to_end()`` method, but the +behavior is also available on Python 2.x or for the ``dict`` type by +calling ``__pypy__.move_to_end(dict, key, last=True)``. _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit