Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Mark Hammond
> Guido has mentioned [1] that since exceptions will be growing a > __traceback__ attribute in Python 3, it should be possible to remove > sys.exc_info(). sys.exc_info() is also useful for returning the exception itself, not only the traceback. The traceback and logger modules both take advantage

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Brett Cannon
On 1/21/07, Tony Lownds <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2007, at 10:57 AM, Brett Cannon wrote: > > > On 1/21/07, Tony Lownds <[EMAIL PROTECTED]> wrote: > >> > >> On Jan 20, 2007, at 9:46 PM, Collin Winter wrote: > >> > >> > Guido has mentioned [1] that since exceptions will be growing a >

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Ron Adam
Tony Lownds wrote: > http://mail.python.org/pipermail/python-dev/2007-January/070665.html > > What's the cost of keeping sys.exc_info() on 3.0? If that cost is a > hindrance on 3.0, then > fine, sys.exc_info() and the ability for module authors to use a > single codebase on 2.x and > 3.0 can

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Giovanni Bajo
On 21/01/2007 20.50, Tony Lownds wrote: > What's the cost of keeping sys.exc_info() on 3.0? If that cost is a > hindrance on 3.0, then > fine, sys.exc_info() and the ability for module authors to use a > single codebase on 2.x and > 3.0 can be given up. It's been stated many times that making

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Tony Lownds
On Jan 21, 2007, at 10:57 AM, Brett Cannon wrote: > On 1/21/07, Tony Lownds <[EMAIL PROTECTED]> wrote: >> >> On Jan 20, 2007, at 9:46 PM, Collin Winter wrote: >> >> > Guido has mentioned [1] that since exceptions will be growing a >> > __traceback__ attribute in Python 3, it should be possible to

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Brett Cannon
On 1/20/07, Collin Winter <[EMAIL PROTECTED]> wrote: > Guido has mentioned [1] that since exceptions will be growing a > __traceback__ attribute in Python 3, it should be possible to remove > sys.exc_info(). In addition, PEP 3100 mentions the removal of > sys.exc_{type,value,traceback}. With that i

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Brett Cannon
On 1/21/07, Tony Lownds <[EMAIL PROTECTED]> wrote: > > On Jan 20, 2007, at 9:46 PM, Collin Winter wrote: > > > Guido has mentioned [1] that since exceptions will be growing a > > __traceback__ attribute in Python 3, it should be possible to remove > > sys.exc_info(). > > I hope that doesn't happen.

Re: [Python-3000] Exceptions internals and removing sys.exc_*

2007-01-21 Thread Tony Lownds
On Jan 20, 2007, at 9:46 PM, Collin Winter wrote: > Guido has mentioned [1] that since exceptions will be growing a > __traceback__ attribute in Python 3, it should be possible to remove > sys.exc_info(). I hope that doesn't happen. sys.exc_info() is the only way to write code using exception va