Closed spockz closed 13 years ago
Hi spockz,
That is the intended behaviour for Python 2.x, but it is not the intended behaviour for Python 3.x. I assume you are using the Version 2 parser?
See the official Python grammars: http://docs.python.org/release/2.6/reference/grammar.html http://docs.python.org/release/3.1/reference/grammar.html
Compare the definition of atom in both. In 3.1 the symbols True and False are atom literals, but they are not in 2.6.
Cheers, Bernie.
Yes we are using the 2.x parser. Sorry I didn't know the grammer of 2.6 was like this. :-) I'm glad they fixed that in 3.x
Thanks
When we parse the following piece of Python code:
We get the following output:
And the relative bit:
Is this a bug or is it supposed to work in this way?