[Python-Dev] Making None a keyword

Alex Martelli aleax@aleax.it
Fri, 26 Apr 2002 19:13:43 +0200


On Friday 26 April 2002 07:11 pm, Patrick K. O'Brien wrote:
	...
> >>> 2.__class__

This of course is being parsed as the floating literal 2. followed by
the identifier __class__ ...

> Looks like int is one of the few literals that doesn't allow this. But
> floats and longs do. Hmmm. Just FYI. ;-)

There's no int literal in the above.  Try putting a space after the
digit 2 , so that there IS an int literal ...


Alex