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: Should Unix-only tty be present in Windows /Lib?
Type: Stage:
Components: Windows Versions: Python 3.0
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, loewis, terry.reedy
Priority: normal Keywords:

Created on 2008-10-22 16:52 by terry.reedy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg75090 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-10-22 16:52
As long as tty is *nix only and does not have a msvcrt-based
implementation (which I presume is not exactly possible), I think it
should be absent, just like termios is.

>>> import tty
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import tty
  File "C:\Programs\Python30\lib\tty.py", line 5, in <module>
    from termios import *
ImportError: No module named termios

Since this is expected, and not a bug, removing tty would give a
slightly shorter and clearer traceback ending with "No module named tty"
msg75091 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-10-22 17:00
Hm, I don't know if it's even possible. All *.py files are always
installed. 
termios is an extension module, and is simply not compiled on Windows.
But the build process never *remove* existing files.
msg75093 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-10-22 17:31
I fail to see the point in not packaging it. Does the error cause an
actual problem that would be solved by removing tty.py from the
distribution?

Closing this as "won't fix".
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48425
2008-10-22 17:31:33loewissetstatus: open -> closed
nosy: + loewis
resolution: wont fix
messages: + msg75093
2008-10-22 17:00:29amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg75091
2008-10-22 16:52:01terry.reedycreate