SyntaxError not honoured in list comprehension?

John Machin sjmachin at lexicon.net
Sun Jul 4 18:02:53 EDT 2010


On Jul 5, 1:08 am, Thomas Jollans <tho... at jollans.com> wrote:
> On 07/04/2010 03:49 PM, jmfauth wrote:
> >   File "<psi last command>", line 1
> >     print9.0
> >            ^
> > SyntaxError: invalid syntax
>
> somewhat strange, yes.

There are two tokens, "print9" (a name) and ".0" (a float constant) --
looks like SyntaxError to me.




More information about the Python-list mailing list