[New-bugs-announce] [issue15247] io.open() is inconsistent re os.open()

Juancarlo Añez report at bugs.python.org
Wed Jul 4 04:55:09 CEST 2012


New submission from Juancarlo Añez <apalala at gmail.com>:

>>> import io
>>> d = io.open('.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IsADirectoryError: [Errno 21] Is a directory: '.'
>>> 

>>> import os
>>> d = io.open(os.open('.',0))
>>> d
<_io.TextIOWrapper name=3 mode='r' encoding='UTF-8'>
>>>

----------
components: Library (Lib)
messages: 164633
nosy: apalala
priority: normal
severity: normal
status: open
title: io.open() is inconsistent re os.open()
type: behavior
versions: Python 2.7, Python 3.3

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


More information about the New-bugs-announce mailing list