Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24437 > unrolled thread

Executing Python Scripts on Mac using Python Launcher

Started byDavid Thomas <dthomas86@me.com>
First post2012-06-25 11:19 -0700
Last post2012-06-27 23:33 +0200
Articles 2 on this page of 22 — 6 participants

Back to article view | Back to comp.lang.python


Contents

  Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-25 11:19 -0700
    Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-25 12:49 -0700
      Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
        Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 13:37 -0400
          Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
          Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:09 -0700
          Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 14:32 -0400
        Re: Executing Python Scripts on Mac using Python Launcher Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-06-26 11:56 -0700
        Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 15:51 -0400
          Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 22:12 +0200
            Re: Executing Python Scripts on Mac using Python Launcher Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-06-26 18:35 -0400
            Re: Executing Python Scripts on Mac using Python Launcher Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-06-27 00:13 +0100
      Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 10:19 -0700
    Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-26 11:11 -0700
      Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 21:16 +0200
        Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 16:41 -0400
          Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-26 23:48 +0200
            Re: Executing Python Scripts on Mac using Python Launcher Dave Angel <d@davea.name> - 2012-06-26 22:38 -0400
            Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 10:05 -0700
              Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 20:29 +0200
                Re: Executing Python Scripts on Mac using Python Launcher David Thomas <dthomas86@me.com> - 2012-06-27 13:45 -0700
                  Re: Executing Python Scripts on Mac using Python Launcher Hans Mulder <hansmu@xs4all.nl> - 2012-06-27 23:33 +0200

Page 2 of 2 — ← Prev page 1 [2]


#24539

FromDavid Thomas <dthomas86@me.com>
Date2012-06-27 13:45 -0700
Message-ID<e213caad-3a14-41cc-bda0-d6122149c044@googlegroups.com>
In reply to#24530
Thank you ever so much raw_input works fine.  Do you think I should stick with Python 2 before I go to 3?
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.
I found by just typing python then having a space and dragging the file from finder into terminal works.

[toc] | [prev] | [next] | [standalone]


#24544

FromHans Mulder <hansmu@xs4all.nl>
Date2012-06-27 23:33 +0200
Message-ID<4feb7c33$0$6894$e4fe514c@news2.news.xs4all.nl>
In reply to#24539
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,
read http://docs.python.org/py3k/whatsnew/3.0.html
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

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.python


csiph-web