[issue21642] "_ if 1else _" does not compile

Martin v. Löwis report at bugs.python.org
Tue Jun 3 07:57:39 CEST 2014


Martin v. Löwis added the comment:

For those who want to skip reading the entire SO question: "1else" tokenizes as "1e" "lse", i.e. 1e is considered the beginning of floating point literal. By the description in the docs, that should not happen, since it is not a valid literal on its own, so no space should be needed after the 1 to tokenize it as an integer literal.

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21642>
_______________________________________


More information about the Python-bugs-list mailing list