[Python-checkins] r53619 - peps/trunk/pep-0008.txt
andrew.kuchling
python-checkins at python.org
Thu Feb 1 22:03:08 CET 2007
Author: andrew.kuchling
Date: Thu Feb 1 22:03:07 2007
New Revision: 53619
Modified:
peps/trunk/pep-0008.txt
Log:
Be stricter about string exceptions
Modified: peps/trunk/pep-0008.txt
==============================================================================
--- peps/trunk/pep-0008.txt (original)
+++ peps/trunk/pep-0008.txt Thu Feb 1 22:03:07 2007
@@ -641,9 +641,8 @@
- Use class-based exceptions.
- String exceptions in new code are strongly discouraged, as they will
- eventually (in Python 2.5) be deprecated and then (in Python 3000 or
- perhaps sooner) removed.
+ String exceptions in new code are forbidden, because this language
+ feature is being removed in Python 2.6.
Modules or packages should define their own domain-specific base
exception class, which should be subclassed from the built-in Exception
More information about the Python-checkins
mailing list