Author Jean-Michel.Fauth
Recipients Jean-Michel.Fauth, benjamin.peterson, georg.brandl, jcea, mark.dickinson, neologix, terry.reedy
Date 2011-12-17.16:53:51
SpamBayes Score 4.15353e-08
Marked as misclassified No
Message-id <1324140832.35.0.530432774494.issue13610@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-12-17 16:53:52Jean-Michel.Fauthsetrecipients: + Jean-Michel.Fauth, georg.brandl, terry.reedy, jcea, mark.dickinson, benjamin.peterson, neologix
2011-12-17 16:53:52Jean-Michel.Fauthsetmessageid: <1324140832.35.0.530432774494.issue13610@psf.upfronthosting.co.za>
2011-12-17 16:53:51Jean-Michel.Fauthlinkissue13610 messages
2011-12-17 16:53:51Jean-Michel.Fauthcreate