This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: program run in interpreter, fails at command line
Type: behavior Stage:
Components: Windows Versions: Python 3.1
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: jvanpraag, mark.dickinson
Priority: normal Keywords:

Created on 2009-09-05 14:44 by jvanpraag, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fibo.py jvanpraag, 2009-09-05 14:44 Tutorial file fibo.py, slightly enhanced.
Messages (2)
msg92275 - (view) Author: John Van Praag (jvanpraag) Date: 2009-09-05 14:44
My platform: Win XP.
Program fibo.py from the tutorial runs correctly in the interpreter.
When I run it from the command line I get the following error:

file "fibo.py" line 6
  print(b, end=' ')
              ^
msg92276 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-09-05 14:51
You're probably trying to run it under Python 2.5 or Python 2.6 instead of 
Python 3.1.  The line you show only makes sense for Python 3.x.

You code runs fine for me (using python3.1, on OS X 10.5).
History
Date User Action Args
2022-04-11 14:56:52adminsetgithub: 51091
2009-09-05 14:51:08mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg92276

resolution: works for me
2009-09-05 14:44:08jvanpraagcreate