<br><div class="gmail_quote">On Tue, Nov 1, 2011 at 1:15 AM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
</div>No, the traceback info is added by the eval loop itself. Remember that<br>
when you raise an exception *type* (rather than an instance), the<br>
exception doesn't get instantiated until it gets caught somewhere -<br>
the eval loop maintains the unwinding stack for the traceback as part<br>
of the thread state until it is time to attach it to the exception<br>
object.<br></blockquote><div><br></div><div>I did not know that. Is there a good reason for doing this? It seems unnecessarily complicated.</div><div><br></div><div>-gps</div><div><br></div></div>