Robert Collins added the comment:

I can certainly write the reporter glue to work with either a string or a full 
reference. Note that the existing late-reporting glue captures the import error 
into a string, and then raises an exception containing that string - so what 
I've done is consistent with that.

As for why the original code is like that - well I've had plenty of bad 
experiences with memory loops due to objects held in stack frames of 
exceptions, I don't like to keep long lived references to them, and I wager 
Michael has had the same experience.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19746>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to