Commit Graph

19 Commits

Author SHA1 Message Date
Brett Cannon 7ac5fe3be0 Specify that the 'message' argument should be a string that is human-readable. 2007-01-18 19:22:33 +00:00
Brett Cannon cc102a2b9f Reword a rather awkward sentence. 2006-09-30 20:33:33 +00:00
Brett Cannon e78a10627f Update PEP 352 on the removal of __unicode__ on BaseException and remove bug
#1551432 as a blocker for 2.5 .
2006-09-09 07:23:20 +00:00
George Yoshida e67ab55a52 Typo fixes 2006-05-08 16:11:39 +00:00
Andrew M. Kuchling ce8d288cea Various edits to improve sentences 2006-03-09 18:22:01 +00:00
Brett Cannon 61850a7800 Clarify some wording as suggested by Nick Coghlan. 2006-03-04 20:42:02 +00:00
Brett Cannon 1c4f4d3f18 Shift pseudo-code to Transition Plan section and provide a pseudo-code
implementation of what BaseException will look like in Python 3.0 .
2006-03-02 00:36:20 +00:00
Brett Cannon cc5472f135 Fix a typo. 2006-03-01 23:51:20 +00:00
Brett Cannon ad251f7c86 Rework pseduo-code to better match implementation. Only affected __str__ and
__unicode__.  Had to be done this way for backwards-compatibility issues.
2006-03-01 23:44:47 +00:00
Brett Cannon 81eabf7a0d Change status of PEP 352 to final.
Also clarified wording to reflect the implementation; only exceptions are
new-style class.  Wording was ambiguous and suggested that you could raise
any new-style class which was considered insane by everyone at the core sprint
at PyCon 2006.  And, most importantly, a Tim-channeled Guido thought that the
current implementation was the way to go.  No one should be able to ``raise
42``.
2006-03-01 04:48:52 +00:00
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