Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Executing Python Scripts on Mac using Python Launcher

Thread Tools

Executing Python Scripts on Mac using Python Launcher

Hans Mulder
Posts: n/a
On 27/06/12 22:45:47, David Thomas wrote:
> Thank you ever so much raw_input works fine.

> Do you think I should stick with Python 2 before I go to 3?

I think so. The differences are not that big, but big
enough to confuse a beginner. Once you know pyhton2,
That's the official overview of what has changed between
python2 and python3.

> I have a text book which is using 3 but I've been using an
> online tutorial which has been helping me lots, which uses
> version 2.

If you decide to use the book, you'll want to install Python3
on your Mac. If you do that, you'll find that typing "python"
in Terminal still gets you python2.7; you have to type "pyhton3"
to get python3.

> I found by just typing python then having a space and
> dragging the file from finder into terminal works.

I just tried it, and it works. Terminal uses backslashes
to protect characters that need quoting in the shell. I'd
use single quotes myself, but this also works.

-- HansM

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python launcher (PEP 397) and emacs python-mode.el Thomas Heller Python 7 02-01-2013 07:13 AM
Using Python Scripts with IIS - ASP or Python-based CGI scripts withIIS - which makes more sense? davidj411 Python 0 06-27-2008 04:38 PM
Python launcher not working on Mac after Leopard upgrade? =?iso-8859-1?B?QW5kcuk=?= Python 3 11-06-2007 09:02 PM
Using Auctiva Store with Mpire Launcher for eBay HTML 1 10-07-2006 07:43 PM
Mac installation of Easy Jar Launcher in OSX? Telicalbook Java 3 02-01-2005 02:03 PM