[New-bugs-announce] [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:06 CET 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

This is a potentially annoying incompatibility between platforms.
Under Linux:

>>> import os
>>> print(os.device_encoding(1000))
None

----------
components: Interpreter Core
messages: 84079
nosy: pitrou
priority: normal
severity: normal
status: open
title: With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows
type: behavior
versions: Python 3.0, Python 3.1

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


More information about the New-bugs-announce mailing list