Be stricter about string exceptions

This commit is contained in:
Andrew M. Kuchling 2007-02-01 21:03:07 +00:00
parent 34840feaed
commit 3be6bcdbc7
1 changed files with 2 additions and 3 deletions

View File

@ -641,9 +641,8 @@ Programming Recommendations
- 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