[Python-3000] The future of exceptions

Brett Cannon brett at python.org
Mon Sep 4 01:19:55 CEST 2006


On 9/3/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Brett Cannon wrote:
>
> > Basically.  Memory usage goes up if you do this as it stands now.
>
> I'm not sure I follow that. The traceback gets created anyway,
> so how is it going to use more memory if it's attached to a
> throwaway exception instead of kept in a sys variable?


It won't.

If you keep the exception around, that would keep the
> traceback too, but how often are exceptions kept for long
> periods after being caught?


Not very, but I didn't make this argument to begin with, other people did.
It was a sticking point when the idea was first put forth.  I personally
supported adding the attributes, but people kept pushing against it.

-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20060903/9325b8c2/attachment.htm 


More information about the Python-3000 mailing list