[issue45908] dict.fromkeys insertion order

Serhiy Storchaka report at bugs.python.org
Sat Nov 27 15:41:02 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

What else can it be? dict.fromkeys() adds keys in the order of obtaining them, and it obtains them by iterating its argument. If we need a special note here, we need a special note for list(), tuple(), filter(), enumerate() and all other functions which consume an iterable.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45908>
_______________________________________


More information about the Python-bugs-list mailing list