[issue10523] argparse has problem parsing option files containing empty rows

2018-07-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue10523] argparse has problem parsing option files containing empty rows

2014-05-27 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue10523] argparse has problem parsing option files containing empty rows

2014-04-15 Thread Caelyn McAulay
Caelyn McAulay added the comment: I've attached a patch making the changes I suggested, assuming that the current behaviour is desirable. It documents the behaviour of argparse on files with blank lines and changes the way the error message that argparse generates when encountering unrecognize

[issue10523] argparse has problem parsing option files containing empty rows

2014-04-14 Thread Caelyn McAulay
Caelyn McAulay added the comment: The current behaviour takes empty lines and interprets them as empty strings. The attached demonstration script shows the error occurring. The first case is a simple example to illustrate what happens in the general case. The second case shows empty lines bei

[issue10523] argparse has problem parsing option files containing empty rows

2011-02-10 Thread Steven Bethard
Steven Bethard added the comment: Crashing on an empty line is definitely a bug. Each line being a single option is documented behavior: http://docs.python.org/dev/library/argparse.html#fromfile-prefix-chars -- nosy: +bethard ___ Python tracker

[issue10523] argparse has problem parsing option files containing empty rows

2010-11-24 Thread Michal Pomorski
Changes by Michal Pomorski : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10523] argparse has problem parsing option files containing empty rows

2010-11-24 Thread Michal Pomorski
New submission from Michal Pomorski : When using the argument file option, i.e @file_with_arguments the following problems arise: 1. argparse crashes when the file contains an empty line (even if it is the last line) - arg_string[0] is done when arg_string is empty. This is caused by the