[issue10871] argparse example use file instead of open

2011-01-09 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur b...@users.sourceforge.net: In section 14.4.3.6. type of the argparse module, the following code sample is given: parser = argparse.ArgumentParser() parser.add_argument('foo', type=int) parser.add_argument('bar', type=file) parser.parse_args('2

[issue10871] argparse example use file instead of open

2011-01-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, this is now fixed in r87891. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10871