[issue14862] fdopen not listed in __all__ of os.py

Meador Inge report at bugs.python.org
Mon May 21 16:09:31 CEST 2012


Meador Inge <meadori at gmail.com> added the comment:

> can you give me an example of how it could break working code?

This is a bit contrived, but:

# my fdopen
def fdopen(fd):
    pass

fdopen(1)

# some stuff

from os import *

# more stuff

fdopen(1)

Here is a patch for 3.3 tip.  After reviewing the 'os' module documentation I found a few more cases.

----------
keywords: +patch
Added file: http://bugs.python.org/file25661/issue14862.patch

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


More information about the Python-bugs-list mailing list