[Python-ideas] Function arguments in tracebacks

Nathaniel Smith njs at pobox.com
Wed Dec 28 17:13:50 EST 2016


On Dec 28, 2016 12:44, "Brett Cannon" <brett at python.org> wrote:

My quick on-vacation response is that attaching more objects to exceptions
is typically viewed as dangerous as it can lead to those objects being kept
alive longer than expected (see the discussions about richer error messages
to see that worry come out for something as simple as attaching the type to
a TypeError).


This isn't an issue for printing arguments or other locals in tracebacks,
though. The traceback printing code can access anything in the frame stack.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161228/d0616838/attachment.html>


More information about the Python-ideas mailing list