[New-bugs-announce] [issue3703] open() on directory raises IOError with unhelpful message
Hagen Fürstenau
report at bugs.python.org
Wed Aug 27 16:26:02 CEST 2008
New submission from Hagen Fürstenau <hfuerstenau at gmx.net>:
When trying to open a directory (on Linux), Python 2.x complained with
>>> open("local")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 21] Is a directory
Python 3.0 however gives the rather unhelpful or even wrong
>>> open("local")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/MC/hagenf/local/lib/python3.0/io.py", line 284, in __new__
return open(*args, **kwargs)
File "/home/MC/hagenf/local/lib/python3.0/io.py", line 223, in open
closefd)
IOError: [Errno 0] Error: 'local'
----------
components: Library (Lib)
messages: 72033
nosy: hagen
severity: normal
status: open
title: open() on directory raises IOError with unhelpful message
type: behavior
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3703>
_______________________________________
More information about the New-bugs-announce
mailing list