[issue42033] Seemingly unnecessary complexification of foo(**kw)
Mark Shannon
report at bugs.python.org
Thu Oct 15 05:25:58 EDT 2020
Mark Shannon <mark at hotpy.org> added the comment:
Have you observed any slowdown or incorrect behaviour?
The 3.8 bytecode looks incorrect to me.
The C-API documentation doesn't prohibit callables from mutating the dictionary they receive.
Unless a copy is made, then a callee could mutate `var`.
https://docs.python.org/3/c-api/call.html
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42033>
_______________________________________
More information about the Python-bugs-list
mailing list