[issue29312] Use FASTCALL in dict.update()

Inada Naoki report at bugs.python.org
Thu Jul 4 08:34:42 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

OK, `d1.update(**d2)` is not useful in practice.  Practical usages of dict.update() are:

* d.update(d2)
* d.update([(k1,k2),...])
* d.update(k1=v1, k2=v2, ...)
* d.update(**d2, **d3, **d4)  # little abuse, but possible.

In all of them, kwdict is not used at all or can't avoid unpacking the kwdict.

----------
components: +Interpreter Core -Argument Clinic
resolution: rejected -> 
status: closed -> open
versions: +Python 3.9 -Python 3.7

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


More information about the Python-bugs-list mailing list