running python 2 vs 3

notbob notbob at nothome.com
Thu Mar 20 13:10:42 EDT 2014


On 2014-03-20, Zachary Ware <zachary.ware+pylist at gmail.com> wrote:

> If you're specifying the interpreter in your command (by calling
> "python <scriptname>.py", etc), the shebang won't mean anything
> anyway.

DOH!  

I was following you, fine, until that last sentence.  Then how should
I invoke the scripts? ....as your example is exactly how I've been
doing it with 2.7, as per Learn Python the Hard Way.  Simply
./<scriptname>.py from the appropriate directory (assuming I keep both
vers in separate dirs)?

nb



More information about the Python-list mailing list