[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r77510. Look forward to when we use C99 over C89. On Thu, Jan 14, 2010 at 16:29, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > The committed patch has a C++-style comment. You probably want to fix that. > > -- > nosy: +pitrou

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: The committed patch has a C++-style comment. You probably want to fix that. -- nosy: +pitrou ___ Python tracker ___

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r77505. I tweaked both patches slightly to minimize the special casing. Thanks for the help, guys! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Florent Xicluna
Florent Xicluna added the comment: A variant, which mimics BytesWarning implementation. -- Added file: http://bugs.python.org/file15872/issue7700_variant.diff ___ Python tracker

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Florent Xicluna
Florent Xicluna added the comment: The undocumented "-b" flag behaves correctly. I would suggest to implement it the same way. ~ $ ./python -b -c "bytearray('') == u''" -c:1: BytesWarning: Comparsion between bytearray and string (By the way, this feature is not documented in "--help", and ther

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch. I'm not sure the approach is correct but it seems to fix at least the problem with "./python -3 -c 'print 1 <> 2, {}.has_key(3)'". -- keywords: +patch nosy: +brett.cannon stage: needs patch -> patch review Added file: http://bugs.python.o

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Ezio Melotti
Ezio Melotti added the comment: Now that the DeprecationWarnings are silenced by default (see #7319) -3 should imply -Wd in order to work. ./python -3 -Wd -c 'print 1 <> 2, {}.has_key(3)' :1: DeprecationWarning: <> not supported in 3.x; use != -c:1: DeprecationWarning: dict.has_key() not suppo

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7700] "-3" flag does not work anymore

2010-01-14 Thread Florent Xicluna
New submission from Florent Xicluna : The -3 flag no longer works with Python 2.7. ~ $ ./python -3 -c 'print 1 <> 2, {}.has_key(3)' True False On python 2.6: ~ $ ./python -3 -c 'print 1 <> 2, {}.has_key(3)' :1: DeprecationWarning: <> not supported in 3.x; use != -c:1: DeprecationWarning: dict