➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <[email protected]>
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: <[email protected]>
2013-02-22 22:59:09ezio.melottilinkissue17246 messages
2013-02-22 22:59:09ezio.melotticreate