Le Fri, 05 Mar 2010 13:51:15 -0500,
Neal Becker <[email protected]> a écrit :
> I generally enjoy argparse, but one thing I find rather
> ugly and unpythonic.
> 
>     parser.add_argument ('--plot', action='store_true')

I would argue that a string is actually more Pythonic than
integers or anonymous objects repurposed as magic constants.
(I'm looking at things such as SEEK_SET and friends)


_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to