Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67464
| Path | csiph.com!usenet.pasdenom.info!goblin2!goblin3!goblin.stu.neva.ru!newsfeed3.funet.fi!newsfeeds.funet.fi!news.utu.fi!news.cc.tut.fi!not-for-mail |
|---|---|
| From | Anssi Saari <as@sci.fi> |
| Newsgroups | comp.lang.python |
| Subject | Re: passing an option to the python interpreter |
| Date | Sun, 02 Mar 2014 21:40:46 +0200 |
| Lines | 15 |
| Message-ID | <vg3a9d8wfr5.fsf@coffee.modeemi.fi> (permalink) |
| References | <mailman.7026.1392503602.18130.python-list@python.org> <871tz4kn6p.fsf@elektro.pacujo.net> |
| NNTP-Posting-Host | coffee.modeemi.fi |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | news.cc.tut.fi 1393789246 8444 2001:708:310:3430:213:21ff:fe1b:b396 (2 Mar 2014 19:40:46 GMT) |
| X-Complaints-To | abuse@tut.fi |
| NNTP-Posting-Date | Sun, 2 Mar 2014 19:40:46 +0000 (UTC) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
| Cancel-Lock | sha1:JAQOk62SAtos9nXXk5ohNL+WDu4= |
| Xref | csiph.com comp.lang.python:67464 |
Show key headers only | View raw
Marko Rauhamaa <marko@pacujo.net> writes:
> Jabba Laci <jabba.laci@gmail.com>:
>
>> I tried this:
>>
>> #!/usr/bin/env python -u
>
> The hash-bang notation is quite rigid; it only accepts a single argument
> ("python") to the command ("/usr/bin/env").
>
> I don't know if there is a simple workaround.
Using the relevant environment variable (PYTHONUNBUFFERED) seems simple
to me.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
passing an option to the python interpreter Jabba Laci <jabba.laci@gmail.com> - 2014-02-15 23:32 +0100
Re: passing an option to the python interpreter Marko Rauhamaa <marko@pacujo.net> - 2014-02-16 00:47 +0200
Re: passing an option to the python interpreter Anssi Saari <as@sci.fi> - 2014-03-02 21:40 +0200
csiph-web