[New-bugs-announce] [issue2158] confusing exception when opening a filename with nonprintable characters

Geoffrey Irving report at bugs.python.org
Thu Feb 21 20:54:45 CET 2008


New submission from Geoffrey Irving:

On Mac OS X with python 2.5.1, I get

>>> open(chr(212),'w')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: invalid mode: w

The error should be more like "filename contains nonprintable characters."

Thanks,
Geoffrey

----------
components: Macintosh
messages: 62644
nosy: irving
severity: normal
status: open
title: confusing exception when opening a filename with nonprintable characters
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2158>
__________________________________


More information about the New-bugs-announce mailing list