Message182705
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. |
|
Date |
User |
Action |
Args |
2013-02-22 22:59:09 | ezio.melotti | set | recipients:
+ ezio.melotti, Andrew.Lutomirski |
2013-02-22 22:59:09 | ezio.melotti | set | messageid: <1361573949.9.0.501858885626.issue17246@psf.upfronthosting.co.za> |
2013-02-22 22:59:09 | ezio.melotti | link | issue17246 messages |
2013-02-22 22:59:09 | ezio.melotti | create | |
|