[Python-Dev] Deprecating string exceptions
Barry A. Warsaw
barry@zope.com
2002年3月27日 23:33:37 -0500
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>> Is there any controversy that string exceptions should,
>> eventually, be deprecated? If not, then let's come up with a
>> road map for deprecating them, even if their use doesn't raise
>> a deprecation warning in Python 2.3.
GvR> Good point. I do want to start deprecating them, but slowly
GvR> because they're used so much. Maybe you can draft a brief
GvR> PEP?
Will do. I'd like to cover the following:
- roadmap for deprecating string exceptions (i.e. when will we issue
DeprecationWarnings, when will they become illegal).
- roadmap for requiring exceptions to inherit from Exception (or
discussion on whether this is still a goal).
- impact of the transition to new-style classes everywhere on the
exception rules.
That might be too broad or too narrow -- I'm up for suggestions!
-Barry