On 1/22/07, Collin Winter <[EMAIL PROTECTED]> wrote:
> On 1/22/07, tomer filiba <[EMAIL PROTECTED]> wrote:
> > with all the talk about enhancing exceptions and removing unnecessary
> > functions from the codebase, i think we can also drop
> > PyErr_NormalizeException and friends.
>
> One argument in favor of keeping PyErr_NormalizeException() (as I've
> learned from trying to rip it out) is the speed advantage it brings.
> It's less expensive to sock away the exception class and arguments,
> only instancing the exception when you really need it. This is
> important in certain core types, where light(er)-weight exception
> raising comes in handy.
>

I'm with Collin on this one.  The speed argument is one of the reasons
PyErr_NormalizeException even exists.  We want exceptions in the
simple, general case to be as fast as possible.

-Brett
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to