Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-09 Thread Jack Diederich
On Tue, Aug 09, 2005 at 12:28:08AM -0600, Steven Bethard wrote: > Raymond Hettinger wrote: > > If the PEP can't resist the urge to create new intermediate groupings, > > then start by grepping through tons of Python code to find-out which > > exceptions are typically caught on the same line. That

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-09 Thread Michael Hudson
Steven Bethard <[EMAIL PROTECTED]> writes: > Raymond Hettinger wrote: >> If the PEP can't resist the urge to create new intermediate groupings, >> then start by grepping through tons of Python code to find-out which >> exceptions are typically caught on the same line. That would be a >> worthwhil

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-08 Thread Steven Bethard
Raymond Hettinger wrote: > If the PEP can't resist the urge to create new intermediate groupings, > then start by grepping through tons of Python code to find-out which > exceptions are typically caught on the same line. That would be a > worthwhile empirical study and may lead to useful insights.

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-07 Thread Brett Cannon
On 8/7/05, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Brett Cannon wrote: > > * SystemExit are the KeyboardInterrupt are the only exceptions *not* > > inheriting from Exception > > + CriticalException has been renamed TerminalException so it is > > more inline with the idea that the exceptions a

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-07 Thread Brett Cannon
On 8/7/05, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > VMError -- This is a new intermediate grouping so it won't break > anything and it does bring together two exceptions relating them by > source. However, I recommend against introducing this new group. > Besides added yet another thing to r

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-07 Thread Nick Coghlan
Brett Cannon wrote: > * SystemExit are the KeyboardInterrupt are the only exceptions *not* > inheriting from Exception > + CriticalException has been renamed TerminalException so it is > more inline with the idea that the exceptions are meant to terminate > the interpreter, not that they are mo

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-07 Thread Nick Coghlan
Raymond Hettinger wrote: > FIBTN (flat-is-better-than-nested) -- This bit of Zen carries extra > significance for the exception hierarchy. The core issue is that > exceptions are NOT inherently tree-structured. Each may ultimately > carry its own set of meaningful attributes and those tend to not

Re: [Python-Dev] Major revision of PEP 348 committed

2005-08-07 Thread Raymond Hettinger
VMError -- This is a new intermediate grouping so it won't break anything and it does bring together two exceptions relating them by source. However, I recommend against introducing this new group. Besides added yet another thing to remember, it violates Flat-Is-Better-Than-Nested (see FIBTN below

[Python-Dev] Major revision of PEP 348 committed

2005-08-06 Thread Brett Cannon
Version 1.5 of PEP 348 (http://www.python.org/peps/pep-0348.html) just got checked in. This one is a *big* change compared to the previous version: * Renamings removed * SystemExit are the KeyboardInterrupt are the only exceptions *not* inheriting from Exception + CriticalException has been r