Interactive scripts (back on topic for once) [was Re: The "loop and a half"]

Chris Angelico rosuav at gmail.com
Fri Oct 6 13:32:06 EDT 2017


On Sat, Oct 7, 2017 at 4:05 AM, Grant Edwards <grant.b.edwards at gmail.com> wrote:
> On 2017-10-06, Thomas Jollans <tjol at tjol.eu> wrote:
>
>> Seriously? sys.stdin can be None? That's terrifying.
>
> Why?
>
> Unix daemons usually run with no stdin, stderr, or stdout.
>
> And yes, people do write Unix daemons in Python.

Hmm, but usually I would expect them still to HAVE those streams,
they're just connected to /dev/null or something. I don't think they
would actually fail to exist, would they?

ChrisA



More information about the Python-list mailing list