Commit Graph

9 Commits

Author SHA1 Message Date
Guido van Rossum e927bc15de Tweak and accept PEP 352 -- new exception hierarchy. 2006-02-10 19:48:38 +00:00
Brett Cannon 22d5e43fa5 Add mention of Michael Hudson's patch for new-style exceptions as a basis for
any patch to implement this PEP.  Also wrap a few lines that went past the 70
character fill length for Emacs.
2006-02-01 22:35:30 +00:00
Brett Cannon bf5ba1dd1c Add a note that deprecations in 2.9 are optional since they might not be
desirable considering how many changes between 2.9 and 3.0 there will be and
thus deprecating everything could make 2.9 rather "noisy" in terms of
deprecations.
2005-11-22 19:41:50 +00:00
Guido van Rossum 2add5ad014 Tweaking $Revision$ and $Date$. 2005-10-31 23:31:40 +00:00
Guido van Rossum 3040eb4a06 Final tweaks:
- fix the __str__, __unicode__ and __repr__ methods
- some textual tweaks
- add Python 3.0 to the transition plan
2005-10-31 19:22:43 +00:00
Brett Cannon ad551cb280 Fix __init__ for BaseException to be completely backwards-compatible for
'args'.
2005-10-29 03:26:51 +00:00
Brett Cannon 1070997d4f Update the code for BaseException to have 'args' be more backwards-compatible.
Also reformat some methods to use the conditional operator to make the code
simpler.

Also moved the deprecation of 'args' and '__getitem__' to Python 2.9 so that it
won't be removed during the 2.x series.
2005-10-29 03:22:31 +00:00
Brett Cannon 1ac3ad11df Merge in suggestions from Neal Norwitz.
- Simplified __init__ and fixed __getitem__
- Added another way to catch all exceptions sans KeyboardInterrupt and
  SystemExit as Python stands now (does not invalidate argument that it it
  needlessly explicit)
- Added a diagram of how the exception hierarchy will look
- Small grammar and clarification fixes
2005-10-28 19:35:57 +00:00
Brett Cannon 9495215f04 Check in initial version of PEP 352: Required Superclass for Exceptions. 2005-10-28 02:53:49 +00:00