Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-03 Thread Florent Xicluna
2010/3/3 Florent Xicluna : > u'\xff' == bytearray('\xff')    # It should raise an error because of '-bb' > __main__:1: BytesWarning: Comparison between bytearray and string > False u'\xff' == '\xff' > __main__:1: UnicodeWarning: Unicode equal comparison failed to convert > both arguments

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-03 Thread Florent Xicluna
2010/3/3 Raymond Hettinger : > > -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. Instead of

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-03 Thread Nick Coghlan
Antoine Pitrou wrote: > Le Tue, 2 Mar 2010 17:28:11 -0800, > Raymond Hettinger 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

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-02 Thread Benjamin Peterson
2010/3/2 Antoine Pitrou : > Le Tue, 2 Mar 2010 17:28:11 -0800, > Raymond Hettinger 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 t

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-02 Thread Antoine Pitrou
Le Tue, 2 Mar 2010 17:28:11 -0800, Raymond Hettinger 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 > shooti

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-02 Thread Raymond Hettinger
> > On Tue, Mar 2, 2010 at 15:55, Florent Xicluna > wrote: > Hello, > > I would like to open a discussion on the meaning of deprecation warnings in > 2.7. > I assume, but I may be wrong, that 2.7 will be the last version in the 2.x > branch. With this assumption, we should not find many thin

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-02 Thread Brett Cannon
On Tue, Mar 2, 2010 at 15:55, Florent Xicluna wrote: > Hello, > > I would like to open a discussion on the meaning of deprecation warnings in > 2.7. > I assume, but I may be wrong, that 2.7 will be the last version in the 2.x > branch. With this assumption, we should not find many things deprecat

Re: [Python-Dev] Deprecation warnings in Python 2.7

2010-03-02 Thread Florent XICLUNA
2010/3/3 Florent Xicluna wrote: > > I will post a list of the DeprecationWarnings in the python trunk, in a > followup message, for a review, and to help the discussion. > Here is the list of the "Classic" DeprecationWarnings: http://paste.pocoo.org/show/184931/ And the list of the "Py3k" Depreca