[Python-Dev] Add reversed methods for dict (original) (raw)
Armin Rigo armin.rigo at gmail.com
Sat Jun 2 16:20:33 EDT 2018
- Previous message (by thread): [Python-Dev] The history of PyXML
- Next message (by thread): [Python-Dev] Add __reversed__ methods for dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Inada,
On 27 May 2018 at 09:12, INADA Naoki <songofacandy at gmail.com> wrote:
When focusing to CPython, PyPy and MicroPython, no problem for adding reverse in 3.8 seems OK.
Fwiw, the functionality that is present in OrderedDict but still
absent from 'dict' is: __reverse__
, discussed above, and
move_to_end(last=False)
. In PyPy3, OrderedDict is implemented not
like in the CPython stdlib but as just a thin dict subclass without
any extra data, using two custom built-ins from the __pypy__
module for the two methods above (plus some pure Python code for other
methods like eq(), where it is possible to do so with the correct
complexity).
A bientôt,
Armin.
- Previous message (by thread): [Python-Dev] The history of PyXML
- Next message (by thread): [Python-Dev] Add __reversed__ methods for dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]