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

2005-08-09 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. I

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 worthwhile

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 would

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 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 more

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

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 are meant

[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