Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread Brett Cannon
On 8/5/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > Also strong -1 on renaming RuntimeWarning to SemanticsWarning. > > Besides being another unnecessary change (trying to solve a non-existent > problem), this isn't an improvement. The phrase RuntimeWarning is > sufficiently generic to allow

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread Brett Cannon
On 8/5/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [ Guido] > > One more thing. Is renaming NameError to NamespaceError really worth > > it? I'd say that NameError is just as clear. > > +1 on NameError -- it's clear, easy to type, isn't a gratuitous change, > and doesn't make you think twic

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread Raymond Hettinger
Also strong -1 on renaming RuntimeWarning to SemanticsWarning. Besides being another unnecessary change (trying to solve a non-existent problem), this isn't an improvement. The phrase RuntimeWarning is sufficiently generic to allow it to be used for a number of purposes. In costrast, SemanticsWar

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread Raymond Hettinger
[ Guido] > One more thing. Is renaming NameError to NamespaceError really worth > it? I'd say that NameError is just as clear. +1 on NameError -- it's clear, easy to type, isn't a gratuitous change, and doesn't make you think twice about NamespaceError vs NameSpaceError. Raymond ___

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread Guido van Rossum
One more thing. Is renaming NameError to NamespaceError really worth it? I'd say that NameError is just as clear. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-05 Thread [EMAIL PROTECTED]
James Y Knight <[EMAIL PROTECTED]> wrote: > > OK, I'm changing my mind again about the names again. > > > > Exception as the root and StandardError can stay; the only new > > proposal would then be to make bare 'except:' call StandardError. > > I don't see how that can work. Any solution that is

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > [Guido van Rossum] > > > OK, I'm changing my mind again about the names again. > > > > > > Exception as the root and StandardError can stay; the only new > > > proposal would then be to make bare 'except:' call StandardError. > > [James Y Kn

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Raymond Hettinger
> The problem with Raisable > is that it doesn't contain the word exception; perhaps we can call it > BaseException? +1 > A refinement might be to introduce something called Error, which would > change the last part of the avove hierarchy as follows: . . . > This has a nice symmetry between E

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Guido van Rossum
[Guido van Rossum] > > OK, I'm changing my mind again about the names again. > > > > Exception as the root and StandardError can stay; the only new > > proposal would then be to make bare 'except:' call StandardError. [James Y Knight] > I don't see how that can work. Any solution that is expected

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, James Y Knight <[EMAIL PROTECTED]> wrote: > On Aug 3, 2005, at 3:00 PM, Guido van Rossum wrote: > > [...brain hums...] > > > > OK, I'm changing my mind again about the names again. > > > > Exception as the root and StandardError can stay; the only new > > proposal would then be to make b

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread James Y Knight
On Aug 3, 2005, at 3:00 PM, Guido van Rossum wrote: > [...brain hums...] > > OK, I'm changing my mind again about the names again. > > Exception as the root and StandardError can stay; the only new > proposal would then be to make bare 'except:' call StandardError. I don't see how that can work. A

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Russell E. Owen <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Brett Cannon <[EMAIL PROTECTED]> wrote: > > > New Hierarchy > > = > > > > Exception [SNIP] > > +-- StandardError [SNIP] > > +-- EnvironmentError > > +-- OSError > > +-- IOError >

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Guido van Rossum
> > Because of EIBTI? > > Don't know the acronym (and neither does acronymfinder.com). Sorry. Explicit is Better than Implicit. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Brett Cannon <[EMAIL PROTECTED]> wrote: > New Hierarchy > = > > Exception > +-- CriticalException (new) > +-- KeyboardInterrupt > +-- MemoryError > +-- SystemError > +-- ControlFlowException (new) > +-- StopIteration > +-- Generator

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > Guido van Rossum <[EMAIL PROTECTED]> writes: > > > So here's a radical proposal (hear the scratching of the finglernail > > on the blackboard? :-). > > > > Start with Brett's latest proposal. Goal: keep bare "except:" but > > change it to catc

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Michael Hudson
Guido van Rossum <[EMAIL PROTECTED]> writes: > So here's a radical proposal (hear the scratching of the finglernail > on the blackboard? :-). > > Start with Brett's latest proposal. Goal: keep bare "except:" but > change it to catch only the part of the hierarchy rooted at > StandardError. > > - C

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/3/05, Brett Cannon <[EMAIL PROTECTED]> wrote: > > On 8/3/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > So here's a radical proposal (hear the scratching of the finglernail > > > on the blackboard? :-). > > > > > > Start with Bret

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Guido van Rossum
On 8/3/05, Brett Cannon <[EMAIL PROTECTED]> wrote: > On 8/3/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > So here's a radical proposal (hear the scratching of the finglernail > > on the blackboard? :-). > > > > Start with Brett's latest proposal. > > Including renaming (I want to know if you

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > So here's a radical proposal (hear the scratching of the finglernail > on the blackboard? :-). > > Start with Brett's latest proposal. Including renaming (I want to know if you support the renamings at all, if I should make them more of an

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 11:10 PM 8/3/2005 +1000, Nick Coghlan wrote: > > New exceptions: > > - Raisable (new base) > > - ControlFlow (inherits from Raisable) > > - CriticalError (inherits from Raisable) > > - GeneratorExit (inherits from

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/3/05, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Phillip J. Eby wrote: > > +1. The main things that need fixing, IMO, are the need for critical and > > control flow exceptions to be distinguished from "normal" errors. The rest > > is mostly too abstract for me to care about in 2.x. > > I gue

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Guido van Rossum
So here's a radical proposal (hear the scratching of the finglernail on the blackboard? :-). Start with Brett's latest proposal. Goal: keep bare "except:" but change it to catch only the part of the hierarchy rooted at StandardError. - Call the root of the hierarchy Raisable. - Rename CriticalExc

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Brett Cannon
On 8/2/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > The Py3.0 PEPs are a bit disconcerting. Without 3.0 actively in > development, it is difficult to get the participation, interest, and > seriousness of thought that we apply to the current release. The PEPs > may have the effect of prematu

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Ron Adam
Nick Coghlan wrote: > Phillip J. Eby wrote: > >>+1. The main things that need fixing, IMO, are the need for critical and >>control flow exceptions to be distinguished from "normal" errors. The rest >>is mostly too abstract for me to care about in 2.x. > > > I guess, before we figure out "whe

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Phillip J. Eby
At 11:10 PM 8/3/2005 +1000, Nick Coghlan wrote: > New exceptions: > - Raisable (new base) > - ControlFlow (inherits from Raisable) > - CriticalError (inherits from Raisable) > - GeneratorExit (inherits from ControlFlow) > Added inheritance: > - Exception from R

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-03 Thread Nick Coghlan
Phillip J. Eby wrote: > +1. The main things that need fixing, IMO, are the need for critical and > control flow exceptions to be distinguished from "normal" errors. The rest > is mostly too abstract for me to care about in 2.x. I guess, before we figure out "where would we like to go?", we rea

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-02 Thread Phillip J. Eby
At 09:02 PM 8/2/2005 -0400, Raymond Hettinger wrote: >The Py3.0 PEPs are a bit disconcerting. Without 3.0 actively in >development, it is difficult to get the participation, interest, and >seriousness of thought that we apply to the current release. The PEPs >may have the effect of prematurely fi

Re: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-02 Thread Raymond Hettinger
TECTED] [mailto:python-dev- > [EMAIL PROTECTED] On Behalf Of Brett Cannon > Sent: Tuesday, August 02, 2005 8:34 PM > To: Python Dev > Subject: [Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0 > > OK, having taken in all of the suggestions, here is another revision > rou

[Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0

2005-08-02 Thread Brett Cannon
OK, having taken in all of the suggestions, here is another revision round. I think I still have a place or two I partially ignored people just because there was not a severe uproar and I still think the original idea is good (renaming RuntimeError, for instance). I also added notes on handling t