Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67464
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: passing an option to the python interpreter |
| Date | 2014-03-02 21:40 +0200 |
| Message-ID | <vg3a9d8wfr5.fsf@coffee.modeemi.fi> (permalink) |
| References | <mailman.7026.1392503602.18130.python-list@python.org> <871tz4kn6p.fsf@elektro.pacujo.net> |
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