[Python-Dev] Deprecation warnings in Python 2.7

Benjamin Peterson benjamin at python.org
Wed Mar 3 05:07:36 CET 2010


2010/3/2 Antoine Pitrou <solipsis at pitrou.net>:
> Le Tue, 2 Mar 2010 17:28:11 -0800,
> Raymond Hettinger <raymond.hettinger at gmail.com> a écrit :
>> -1 for several reasons.
>>
>> 1) We've advertised -3 as part of TheOneTrueWay(tm).  It's a core
>> part of our transition story, so we should keep that as
>> clean/consistent as possible.  Deprecating the -3 switch seems like
>> shooting ourselves in the foot.
>>
>> 2) There is some chance that there will be a 2.8, so it isn't helpful
>> to burn down our bridges.
>
> That's my feeling too. I think introducing a Py3kDeprecationWarning
> subclass is the right thing to do.

Not to bikeshed, but I think it should be called Py3DeprecationWarning
in light of the fact that Python 3 is no longer a mythical beast. :)



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list