[issue10871] argparse example use "file" instead of "open"

2011-01-09 Thread Georg Brandl
Georg Brandl added the comment: Thanks, this is now fixed in r87891. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10871] argparse example use "file" instead of "open"

2011-01-09 Thread Baptiste Lepilleur
New submission from Baptiste Lepilleur : 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 temp.txt'.split())