[issue5552] With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows

Antoine Pitrou report at bugs.python.org
Tue Mar 24 14:42:37 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

And under Windows:

>>> print(os.device_encoding(1000))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 9] Bad file descriptor

----------

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


More information about the Python-bugs-list mailing list