This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add 'isatty(fd)' to posixmodule.
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: gvanrossum, skip.montanaro, tim.peters, twouters
Priority: normal Keywords: patch

Created on 2000-06-30 14:37 by twouters, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
None twouters, 2000-06-30 14:37 None
Messages (6)
msg32962 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2000-06-30 14:37
 
msg32963 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2000-06-30 15:38
Good idea.  After beta1 -- needs more platform testing.
msg32964 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2000-07-10 06:40
SKip, you got picked at random.  Please review or assign to someone else.  Note from the comments that Guido likes it, but wants more platform testing.
msg32965 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2000-06-30 14:41
This patch adds 'isatty' to posixmodule. Like read() and write(), it is the same as fileobject.isatty(), but works on a filedescriptor instead of a fileobject.

(Useful for testing wether a fd is a tty without wrapping it in a fileobject, like my ptylib test script wants to do ;)

I just realized I forgot the doc patch. I'll add that in a sec ;)
msg32966 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2000-06-30 14:57
Version that includes documentation.

I'm unsure about applicability on other operating systems, by the way. Do Windows and Macintosh have anything like 'isatty' that's worth having ?
msg32967 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2000-07-19 14:34
checked in...
History
Date User Action Args
2022-04-10 16:02:02adminsetgithub: 32495
2000-06-30 14:37:56twouterscreate