Be stricter about string exceptions
This commit is contained in:
parent
34840feaed
commit
3be6bcdbc7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue