Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39623
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'linux,': 0.05; 'removes': 0.05; 'executable': 0.07; 'subject:Windows': 0.09; 'python': 0.09; '22,': 0.09; 'follows.': 0.09; 'scripts,': 0.09; 'itself.': 0.11; '(and,': 0.16; 'carriage': 0.16; 'chmod': 0.16; 'complained': 0.16; 'decent': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'resolved:': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'feb': 0.19; 'latter': 0.22; 'this:': 0.23; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'question': 0.27; 'run': 0.28; 'fri,': 0.30; 'file': 0.32; 'received:84': 0.32; 'running': 0.32; 'to:addr :python-list': 0.33; 'pm,': 0.35; 'subject:?': 0.35; 'but': 0.36; 'editor': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'end': 0.40; 'son': 0.60; 'header:Reply- To:1': 0.68; 'benefit': 0.70; 'reply-to:no real name:2**0': 0.72; '2013': 0.84; 'ok?': 0.84; 'reply-to:addr:python.org': 0.84; 'ware': 0.91 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=HO4d4PRv c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=_vX2mLoUpDQA:10 a=_0h3fVwFhPYA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=huZuRs1bUIYA:10 a=pGLkceISAAAA:8 a=UQnXkbzPAAAA:8 a=GH-SWoS8azN96L1Er3wA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=Q21-j9j7q-gA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Fri, 22 Feb 2013 23:21:12 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Shebang line on Windows? |
| References | <kg8cm0$flo$1@news.albasani.net> <CAKJDb-NW2ut0=6n_TD3VC=5pR5rc+kOfHANtjVxKB6EtFwtbNw@mail.gmail.com> <mailman.2294.1361558483.2939.python-list@python.org> <b94bb7c4-14c2-4783-b13d-8a77e8dd6f32@r8g2000vbj.googlegroups.com> |
| In-Reply-To | <b94bb7c4-14c2-4783-b13d-8a77e8dd6f32@r8g2000vbj.googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2310.1361575278.2939.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361575278 news.xs4all.nl 6875 [2001:888:2000:d::a6]:55841 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39623 |
Show key headers only | View raw
On 2013-02-22 22:53, James Harris wrote: > On Feb 22, 6:40 pm, Zachary Ware <zachary.ware+pyl...@gmail.com> > wrote: > >> On Fri, Feb 22, 2013 at 12:16 PM, Walter Hurry <walterhu...@lavabit.com> wrote: > >> > I use FreeBSD or Linux, but my son is learning Python and is using >> > Windows. >> >> > My question is this: Would it be good practice for him to put #!/usr/bin/ >> > env python at the top of his scripts, so that if made executable on *nix >> > they will be OK? As I understand it this will have no effect on Windows >> > itself. >> >> Adding the shebang line on Windows would be excellent practice. > > A word of warning unless this has since been resolved: Whenever I have > tried adding the shebang line on Windows and running it on Unix the > latter has complained about the carriage return at the end of the > line. This means that Unix does not work when invoked as follows. > (And, yes, the file has had chmod +x applied.) > > ./program.py > > It is, of course, OK when run as > > python program.py > > but that removes some of the benefit of the shebang line. > Just use Unix line endings. Python will accept them, and any decent editor on Windows will accept them. (Notepad doesn't.)
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shebang line on Windows? Walter Hurry <walterhurry@lavabit.com> - 2013-02-22 18:16 +0000
Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-22 13:40 -0500
Re: Shebang line on Windows? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-02-22 12:40 -0600
Re: Shebang line on Windows? James Harris <james.harris.1@gmail.com> - 2013-02-22 14:53 -0800
Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-22 23:21 +0000
RE: Shebang line on Windows? "Sells, Fred" <fred.sells@adventistcare.org> - 2013-02-25 12:35 +0000
Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 08:14 -0500
Re: Shebang line on Windows? Chris Gonnerman <chris@gonnerman.org> - 2013-02-25 07:28 -0600
Re: Shebang line on Windows? Chris Angelico <rosuav@gmail.com> - 2013-02-26 00:54 +1100
Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 10:18 -0700
Re: Shebang line on Windows? Anssi Saari <as@sci.fi> - 2013-02-26 16:30 +0200
Re: Shebang line on Windows? "D'Arcy J.M. Cain" <darcy@druid.net> - 2013-02-25 12:29 -0500
Re: Shebang line on Windows? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-26 00:52 +0000
Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 19:08 -0700
Re: Shebang line on Windows? Dave Angel <davea@davea.name> - 2013-02-25 21:23 -0500
Re: Shebang line on Windows? MRAB <python@mrabarnett.plus.com> - 2013-02-26 03:08 +0000
Re: Shebang line on Windows? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-25 22:44 -0500
Re: Shebang line on Windows? David Robinow <drobinow@gmail.com> - 2013-02-25 13:19 -0500
Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:29 -0700
Re: Shebang line on Windows? Michael Torrie <torriem@gmail.com> - 2013-02-25 11:33 -0700
csiph-web