[issue42033] Seemingly unnecessary complexification of foo(**kw)

Serhiy Storchaka report at bugs.python.org
Thu Oct 15 11:17:29 EDT 2020


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

$ python3.8 -m timeit -s "a = {'a': 1}" "dict(**a)"
2000000 loops, best of 5: 113 nsec per loop
$ python3.9 -m timeit -s "a = {'a': 1}" "dict(**a)"
2000000 loops, best of 5: 181 nsec per loop

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

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


More information about the Python-bugs-list mailing list