passing an option to the python interpreter

Anssi Saari as at
Sun Mar 2 20:40:46 CET 2014

Marko Rauhamaa <marko at> writes:

> Jabba Laci <jabba.laci at>:
>> 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.

More information about the Python-list mailing list