Re: add an asynchronous exception class

2006-03-04 Thread Christian Stapfer
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > "Christian Stapfer" <[EMAIL PROTECTED]> writes: >> I guess it means the following: >> >> "Terminating exceptions" are exceptions that >> terminate the *thrower* of the exception. > > Are you sure? Am I sure? - Well

Re: add an asynchronous exception class

2006-03-04 Thread Paul Rubin
"Christian Stapfer" <[EMAIL PROTECTED]> writes: > I guess it means the following: > > "Terminating exceptions" are exceptions that > terminate the *thrower* of the exception. Are you sure? I didn't read it that way. I'm not aware of there ever having been a detailed proposal for resumable excep

Re: add an asynchronous exception class

2006-03-04 Thread Christian Stapfer
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > "Fredrik Lundh" <[EMAIL PROTECTED]> writes: >> PEP 348 addresses this by moving special exceptions out of the >> Exception hierarchy: >> >> http://www.python.org/peps/pep-0348.html > > I see that suggestion was r

Re: add an asynchronous exception class

2006-03-04 Thread Robert Kern
Paul Rubin wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> writes: > >>PEP 348 addresses this by moving special exceptions out of the >>Exception hierarchy: >> >>http://www.python.org/peps/pep-0348.html > > I see that suggestion was rejected (it needed changing the semantics > of "except:"). Al

Re: add an asynchronous exception class

2006-03-04 Thread Steven D'Aprano
On Sat, 04 Mar 2006 08:41:48 +0100, Fredrik Lundh wrote: > Paul Rubin wrote: > >> I'd like to suggest adding a builtin abstract class to Python called >> AsynchronousException, which would be a subclass of Exception. The >> only asynchronous exception I can think of right now is >> KeyboardInter

Re: add an asynchronous exception class

2006-03-04 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > PEP 348 addresses this by moving special exceptions out of the > Exception hierarchy: > > http://www.python.org/peps/pep-0348.html I see that suggestion was rejected (it needed changing the semantics of "except:"). Also, PEP 348 was rejected and

Re: add an asynchronous exception class

2006-03-03 Thread Fredrik Lundh
Paul Rubin wrote: > I'd like to suggest adding a builtin abstract class to Python called > AsynchronousException, which would be a subclass of Exception. The > only asynchronous exception I can think of right now is > KeyboardInterrupt, so KeyboardInterrupt would become a subclass of > Asynchrono

Re: idea: add an asynchronous exception class

2006-03-03 Thread Steven D'Aprano
On Fri, 03 Mar 2006 22:31:49 -0800, Paul Rubin wrote: > I'd like to suggest adding a builtin abstract class to Python called > AsynchronousException, which would be a subclass of Exception. [snip rationale] +1 on this. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list

idea: add an asynchronous exception class

2006-03-03 Thread Paul Rubin
I'd like to suggest adding a builtin abstract class to Python called AsynchronousException, which would be a subclass of Exception. The only asynchronous exception I can think of right now is KeyboardInterrupt, so KeyboardInterrupt would become a subclass of AsynchronousException instead of being