[issue20156] bz2.BZ2File.read() does not treat growing input file properly

2014-01-06 Thread Joshua Chia
New submission from Joshua Chia: When using bz2.BZ2File to read an input file that is growing slowly, repeated read()ing eventually catches up to the end and subsequently fails to produce any more data while the input file continues growing. In 2.7, the symptom is that read() keeps returning

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Seems to be duplicate of http://bugs.python.org/issue12776 -- ___ Python tracker <http://bugs.python.org/issue13271> ___ ___ Pytho

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Added test case -- resolution: -> duplicate status: open -> closed Added file: http://bugs.python.org/file29639/test.py ___ Python tracker <http://bugs.python.org/i

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Joshua Chia
New submission from Joshua Chia : What steps will reproduce the problem? 1. Make a script containing this code: parser = argparse.ArgumentParser() parser.add_argument('-i', '--input-base-directory', type=argparse.FileType('r'),