[issue7237] Syntax error with not

2009-10-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: I believe this is actually correct. not does not bind its operand as powerfully as + does. Thus the parser sees (1 + not) x, which is quite correctly a syntax error. -- nosy: +benjamin.peterson ___ Python tracker

[issue7237] Syntax error with not

2009-10-29 Thread Eric Smith
Eric Smith added the comment: I'm not sure what release it would be blocking. The oldest version I have on hand is 2.4, and it's a problem there. If it hasn't caused an actual problem in that long, then I don't see it as all that critical. -- nosy: +eric.smith _

[issue7237] Syntax error with not

2009-10-29 Thread R. David Murray
R. David Murray added the comment: >>> 1+not File "", line 1 1+not ^ SyntaxError: invalid syntax >>> 1+(not(23&1)) 1 It's been this way since 2.4 at least, probably earlier. -- nosy: +r.david.murray priority: -> normal resolution: -> invalid stage: -> committed/rejecte

[issue7237] Syntax error with not

2009-10-29 Thread David W. Lambert
David W. Lambert added the comment: problem also exists in 2.6. It's a, in my humble opinion, release blocker. -- type: compile error -> behavior ___ Python tracker ___ _

[issue7237] Syntax error with not

2009-10-29 Thread David W. Lambert
New submission from David W. Lambert : lambertdw$ p3 Python 3.1.1 (r311:74480, Oct 2 2009, 12:29:57) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> not 23 False >>> not(23&1) False >>> 1+not(23&1) File "", line 1 1+not(23&1) ^ Synt