[pypy-issue] Issue #2925: Don't use module dicts for function.__kw_defaults__ (pypy/pypy)

Carl Friedrich Bolz-Tereick issues-reply at bitbucket.org
Mon Dec 3 15:41:05 EST 2018


New issue 2925: Don't use module dicts for function.__kw_defaults__
https://bitbucket.org/pypy/pypy/issues/2925/dont-use-module-dicts-for

Carl Friedrich Bolz-Tereick:

It's not safe to use a module dict for the ``function.__kw_defaults__`` dictionary, because that will promote itself on reads, but every closure creates a new such dict. I suppose other uses of moduledict should be checked for the same problem.




More information about the pypy-issue mailing list