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


Groups > comp.lang.python > #38011

Re: Python launcher (PEP 397) and emacs python-mode.el

From Thomas Heller <theller@ctypes.org>
Newsgroups comp.lang.python
Subject Re: Python launcher (PEP 397) and emacs python-mode.el
Date 2013-01-31 21:53 +0100
Message-ID <an03u3Fal86U1@mid.individual.net> (permalink)
References <amuqb5FueeU1@mid.individual.net> <mailman.1246.1359630370.2939.python-list@python.org> <amvkqcF71apU1@mid.individual.net> <mailman.1253.1359656827.2939.python-list@python.org>

Show all headers | View raw


Am 31.01.2013 19:26, schrieb Vinay Sajip:
> Thomas Heller <theller <at> ctypes.org> writes:
>
>> <script>
>> #!/usr/bin/python3.1-32
>> import sys; print(sys.version)
>> </script>
>>
>> The python launcher starts 'c:\Python31\python.exe -3.1-32 script.py'.
>>
>
> That doesn't seem right, the launcher on my system launches using
>
> c:\Python31\python.exe script.py
>
> if I just run script.py, or if I invoke it as
>
> py -3.1-32 script.py
>
> it still launches using
>
> c:\Python31\python.exe script.py

Sorry for the confusion that I am causing.  Vinay, you are right of course.

What I meant to write is this:

when the shebang line in script.py contains this:
   #!/usr/bin/python3.1-32
then emacs SHOULD run
   py.exe -3.1-32 script.py
and the launcher runs
   c:\Python31\python.exe script.py


Thomas

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python launcher (PEP 397) and emacs python-mode.el Thomas Heller <theller@ctypes.org> - 2013-01-31 10:03 +0100
  Re: Python launcher (PEP 397) and emacs python-mode.el Andreas Röhler <andreas.roehler@online.de> - 2013-01-31 12:05 +0100
    Re: Python launcher (PEP 397) and emacs python-mode.el Thomas Heller <theller@ctypes.org> - 2013-01-31 17:35 +0100
      Re: Python launcher (PEP 397) and emacs python-mode.el Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2013-01-31 18:26 +0000
        Re: Python launcher (PEP 397) and emacs python-mode.el Thomas Heller <theller@ctypes.org> - 2013-01-31 21:53 +0100
          Re: Python launcher (PEP 397) and emacs python-mode.el Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2013-01-31 23:59 +0000
          Re: Python launcher (PEP 397) and emacs python-mode.el Andreas Röhler <andreas.roehler@online.de> - 2013-02-01 08:13 +0100
      Re: Python launcher (PEP 397) and emacs python-mode.el Andreas Röhler <andreas.roehler@online.de> - 2013-01-31 19:40 +0100

csiph-web