Message149677
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. |
|
Date |
User |
Action |
Args |
2011-12-17 16:53:52 | Jean-Michel.Fauth | set | recipients:
+ Jean-Michel.Fauth, georg.brandl, terry.reedy, jcea, mark.dickinson, benjamin.peterson, neologix |
2011-12-17 16:53:52 | Jean-Michel.Fauth | set | messageid: <1324140832.35.0.530432774494.issue13610@psf.upfronthosting.co.za> |
2011-12-17 16:53:51 | Jean-Michel.Fauth | link | issue13610 messages |
2011-12-17 16:53:51 | Jean-Michel.Fauth | create | |
|