A
Alex van der Spek
I am baffled by this:
IDLE 1.2.2 ==== No Subprocess ====
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
input()
File "<string>", line 1
08
^
SyntaxError: invalid token
of course, I can work around this using raw_input() but I want to
understand why this happens. It boils down to:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
eval('08')
File "<string>", line 1
08
^
SyntaxError: invalid token
I can't think of anything that could cause this. Similarly, eval('09')
fails, but for string 0x with x<8 it works. I am teaching myself Python
in order to climb the ladder from Algol(1980s)-->Pascal(1990s)--
computer science. Please keep it simple
Thanks in advance,
Alex van der Spek
IDLE 1.2.2 ==== No Subprocess ====
0807
7
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
input()
File "<string>", line 1
08
^
SyntaxError: invalid token
of course, I can work around this using raw_input() but I want to
understand why this happens. It boils down to:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
eval('08')
File "<string>", line 1
08
^
SyntaxError: invalid token
I can't think of anything that could cause this. Similarly, eval('09')
fails, but for string 0x with x<8 it works. I am teaching myself Python
in order to climb the ladder from Algol(1980s)-->Pascal(1990s)--
all my life but I won't understand the real tech jargon of present dayVisualBasic(2000)-->Python. I am a physicist, have programmed computers
computer science. Please keep it simple
Thanks in advance,
Alex van der Spek