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

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Oct 8 08:45:17 EDT 2017


Chris Angelico wrote:
> 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?

On unix there's nothing to stop you launching a process
with fds 0, 1 and 2 all closed. It would be a very
unusual thing to do, but not impossible. I expect it's
possible on Windows as well.

-- 
Greg



More information about the Python-list mailing list