Clarify that isatty is only guaranteed to return true for slave ends of
terminals, not the master end (though it does, on most systems.)
This commit is contained in:
parent
f2c1be22f2
commit
12e1595e28
|
@ -3468,7 +3468,7 @@ posix_fdopen(PyObject *self, PyObject *args)
|
|||
static char posix_isatty__doc__[] =
|
||||
"isatty(fd) -> Boolean\n\
|
||||
Return true if the file descriptor 'fd' is an open file descriptor\n\
|
||||
connected to a terminal.";
|
||||
connected to the slave end of a terminal.";
|
||||
|
||||
static PyObject *
|
||||
posix_isatty(PyObject *self, PyObject *args)
|
||||
|
|
Loading…
Reference in New Issue