[Python-Dev] Deprecating string exceptions (original) (raw)

Barry A. Warsaw barry@zope.com
Wed, 27 Mar 2002 14:14:22 -0500


"GvR" == Guido van Rossum <guido@python.org> writes:

>> So I would like to propose that string exceptions are
>> deprecated for Python 2.3, in order to remove them in Python
>> 2.4, simultaneously allowing arbitrary objects as exceptions.

GvR> I think string exceptions are used enough that we should
GvR> deprecate them on a slower schedule.

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.

-Barry