[Python-Dev] Deprecation warnings in Python 2.7

Antoine Pitrou solipsis at pitrou.net
Wed Mar 3 04:24:00 CET 2010


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.

Regards

Antoine.




More information about the Python-Dev mailing list