Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12e1595

Browse files
committed
Clarify that isatty is only guaranteed to return true for slave ends of
terminals, not the master end (though it does, on most systems.)
1 parent f2c1be2 commit 12e1595

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,7 @@ posix_fdopen(PyObject *self, PyObject *args)
34683468
static char posix_isatty__doc__[] =
34693469
"isatty(fd) -> Boolean\n\
34703470
Return true if the file descriptor 'fd' is an open file descriptor\n\
3471-
connected to a terminal.";
3471+
connected to the slave end of a terminal.";
34723472

34733473
static PyObject *
34743474
posix_isatty(PyObject *self, PyObject *args)

0 commit comments

Comments
 (0)