On 17/05/2012 05:29, Chris Rebert wrote:
On Wed, May 16, 2012 at 6:45 PM, gwhite<gwh...@ti.com>  wrote:
#!<what is supposed to go here?>

That's a shebang line. See http://en.wikipedia.org/wiki/Shebang_(Unix)
It's doesn't matter at all since you're on Windows. On Unix-like
systems, one typically writes:
     #!/usr/bin/env python

# Filename: newbie00.py

if __name__ == '__main__':

Cheers,
Chris

For the record quoting from http://www.python.org/dev/peps/pep-0397/

"As Python 3.x scripts are often syntactically incompatible with Python 2.x scripts, a different strategy must be used to allow files with a '.py' extension to use a different executable based on the Python version the script targets. This will be done by borrowing the existing practices of another operating system - scripts will be able to nominate the version of Python they need by way of a "shebang" line, as described below."

--
Cheers.

Mark Lawrence.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to