[issue9509] argparse FileType raises ugly exception for missing file

akira report at bugs.python.org
Mon Nov 22 00:29:23 CET 2010

akira <4kir4.1i at gmail.com> added the comment:

Simplified the patch and added test for a non-existent file in issue9509.patch

The test `py3k/python -m test.regrtest test_argparse` fails without the patch and succeeds with it.

The docs in Doc/library/argparse.rst and Lib/argparse.py  don't need to be changed (neither mention IOError and it is a buf fix).

Misc/NEWS and Misc/ACKS don't need to be changed (?).

I've uploaded the patch to Rietveld http://codereview.appspot.com/3251041/

nosy: +akira
type:  -> behavior
Added file: http://bugs.python.org/file19758/issue9509.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list