Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38017
| From | Vinay Sajip <vinay_sajip@yahoo.co.uk> |
|---|---|
| Subject | Re: Python launcher (PEP 397) and emacs python-mode.el |
| Date | 2013-01-31 23:59 +0000 |
| 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> <an03u3Fal86U1@mid.individual.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1263.1359676786.2939.python-list@python.org> (permalink) |
Thomas Heller <theller <at> ctypes.org> writes: > 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 IMO it would be better for emacs to just run py.exe script.py and py.exe can read the shebang and do the right thing. This saves the emacs code from having to duplicate the shebang line processing logic that py.exe uses (which, as we know, is unusual. So for a cross-platform you can have a shebang line of #!/usr/bin/python3.2, and on Windows it will still call the appropriate Python 3.2 even if it's not in /usr/bin, as there's no /usr/bin :-)) Regards, Vinay Sajip
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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