Re: [Tutor] interactive questions

2009-12-26 Thread Alan Gauld
"rick" wrote Somehow you are picking up an older v2 interpreter. How are you running the script? Could geany be calling the 2.6 interpreter, even with v3 in the first line? oh my, that is unexpected, just tried it. #!/usr/bin/python3 import sys print(sys.version) from geany yields: 2.6.

Re: [Tutor] interactive questions

2009-12-25 Thread rick
On Sat, 2009-12-26 at 03:03 +0100, tutor-requ...@python.org wrote: > > which works "as advertised" in an interactive session, but not in a > > script. Yes, I tried tossing the script to both versions of > > interpreter, it doesn't work with either 2.6 or 3.1. > > Somehow you are picking up an ol