Commit Graph

30 Commits

Author SHA1 Message Date
Serhiy Storchaka a53392a0f0 Remove trailing spaces. (#232)
Changes made automatically by the following command:
```
egrep -l ' +$' *.txt | xargs sed -i -re 's/ +$//'
```
2017-03-24 23:11:33 +02:00
Serhiy Storchaka 4088a7dddc Backed out changeset: c4aef26d128b
Unknown interpreted text role "kbd".
2016-05-03 14:10:04 +03:00
Serhiy Storchaka 65c6f592cd Use the kbd role. 2016-05-03 10:47:48 +03:00
Serhiy Storchaka d277ad711a Removed unneeded spaces before commas and periods. 2015-02-14 19:47:39 +02:00
Brett Cannon ca2fe8f17c Minor cleanup to match history. 2012-05-16 16:51:32 -04:00
Georg Brandl 08ea236bbb Update not-so-old PEP URL. 2009-01-18 09:50:42 +00:00
Brett Cannon bcf9c4ac0f Fix/clarify stuff based on suggestions from Mark Summerfield. 2007-10-03 19:59:57 +00:00
Andrew M. Kuchling 32328edd04 Typo fixes 2007-09-13 22:49:14 +00:00
Brett Cannon 2d37f3b888 Update the PEP on what has been implemented so far. 2007-09-05 22:54:10 +00:00
Brett Cannon ba82685d7d Update PEP to cover the deprecation of BaseException.message in Python 2.6. 2007-04-19 19:05:14 +00:00
Brett Cannon 34840feaed Clarify transition plan about dropping string exceptions since the plan says
that an ability will be dropped the version after it is deprecated and thus
string exceptions will be gone in 2.6.
2007-01-29 05:54:11 +00:00
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