[issue27619] getopt should strip whitespace from long arguments

Steven D'Aprano report at bugs.python.org
Tue Jul 26 08:11:00 EDT 2016


Steven D'Aprano added the comment:

Serhiy Storchaka added the comment:
> It makes Python getopt behave less like the C getopt.

Exactly! If C getopt allows whitespace in long options, it's a GOOD 
thing to avoid such a poor design. Who would want a option --foo  (note 
the trailing space)?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27619>
_______________________________________


More information about the Python-bugs-list mailing list