Jean-Michel Fauth <wxjmfa...@gmail.com> added the comment: I have done a little bit hd/files archeology and found some of my comments.
Pointing on number litterals is probably wrong. The fact is that, this happens with practically any expression. And strangely, not all keywords (constructs?) are affected. >>> 999if 1 else 888 999 >>> """"""if 1 else 888 >>> {1: 'a'}if 1 else 888 {1: 'a'} >>> 999 if 'a' else 888 999 >>> 999if 'a' else 888 999 >>> 999if 'a'else 888 999 >>> 999if 888else 888 File "<eta last command>", line 1 999if 888else 888 ^ SyntaxError: invalid token >>> 999if """"""else 888 888 To summarize: The Python syntax does not require an "isolated" keyword, something like \b<keyword>\b. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13610> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com