Author iritkatriel
Recipients Andrew.Lutomirski, ezio.melotti, iritkatriel
Date 2021-06-18.10:14:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624011276.34.0.149587218758.issue17246@roundup.psfhosted.org>
In-reply-to
Content
Still the same in 3.11:

>>> import inspect
>>> def fun(x):
...     del x
...     return inspect.currentframe()
...
>>> inspect.formatargvalues(*inspect.getargvalues(fun(10)))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\src\cpython-dev\lib\inspect.py", line 1444, in formatargvalues
    specs.append(convert(args[i]))
  File "C:\Users\User\src\cpython-dev\lib\inspect.py", line 1441, in convert
    return formatarg(name) + formatvalue(locals[name])
KeyError: 'x'
>>>
History
Date User Action Args
2021-06-18 10:14:36iritkatrielsetrecipients: + iritkatriel, ezio.melotti, Andrew.Lutomirski
2021-06-18 10:14:36iritkatrielsetmessageid: <1624011276.34.0.149587218758.issue17246@roundup.psfhosted.org>
2021-06-18 10:14:36iritkatriellinkissue17246 messages
2021-06-18 10:14:36iritkatrielcreate