[New-bugs-announce] [issue18553] os.isatty() is not Unix only

anatoly techtonik report at bugs.python.org
Thu Jul 25 13:46:19 CEST 2013


New submission from anatoly techtonik:

It seems like os.isatty(0) works on Windows too. Documentation says Unix only:

  http://docs.python.org/2/library/os.html#os.isatty
  http://docs.python.org/3.4/library/os.html#os.isatty


C:\>py -c "import os; print os.isatty(0)"
True

C:\>echo "x" | py -c "import os; print os.isatty(0)"
False

C:\>py -c "import os; print os.isatty(0)" | more
True

----------
components: Library (Lib)
messages: 193694
nosy: techtonik
priority: normal
severity: normal
status: open
title: os.isatty() is not Unix only
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18553>
_______________________________________


More information about the New-bugs-announce mailing list