[issue26908] "1and 0" evaluated a zero, instead of SyntaxError

2016-05-02 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. This is a duplicate of issue 13610. You can read issue 13610 for more information. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> On Python parsing numbers. ___

[issue26908] "1and 0" evaluated a zero, instead of SyntaxError

2016-05-02 Thread Vladimir Rutsky
New submission from Vladimir Rutsky: Looks like there is no need to place space separators after numbers: $ python3.5 -c "print(1and 0)" 0 $ python3.5 -c "print([1for i in range(1)])" [1] Not sure is this a bug or a feature, but I would expect that this should be SyntaxError, same as here: $