On Dec 28, 2016 12:44, "Brett Cannon" <br...@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
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/