Ezio Melotti added the comment:
The bug seems to be in inspect indeed:
import inspect
def fun(x):
del x
return inspect.currentframe()
inspect.formatargvalues(*inspect.getargvalues(fun(10)))
Attached a proof-of-concept patch that replaces the missing value with
<deleted>. If the approach is ok, the same fix might have to be applied to
other functions and/or other types of arguments.
----------
keywords: +patch
nosy: +ezio.melotti
stage: -> patch review
type: -> behavior
Added file: http://bugs.python.org/file29166/issue17246.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com