Author ezio.melotti
Recipients Andrew.Lutomirski, ezio.melotti
Date 2013-02-22.22:59:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361573949.9.0.501858885626.issue17246@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-02-22 22:59:09ezio.melottisetrecipients: + ezio.melotti, Andrew.Lutomirski
2013-02-22 22:59:09ezio.melottisetmessageid: <1361573949.9.0.501858885626.issue17246@psf.upfronthosting.co.za>
2013-02-22 22:59:09ezio.melottilinkissue17246 messages
2013-02-22 22:59:09ezio.melotticreate