[issue15247] io.open() is inconsistent re os.open()
Juancarlo Añez
report at bugs.python.org
Thu Jul 5 01:00:03 CEST 2012
Juancarlo Añez <apalala at gmail.com> added the comment:
Note that attempting subsequent operations on the returned object do raise IsADirectoryError.
>>> import io
>>> import os
>>> d = io.open(os.open('.',0))
>>> d.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IsADirectoryError: [Errno 21] Is a directory
>>>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15247>
_______________________________________
More information about the Python-bugs-list
mailing list