A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/092286.html below:

[Python-Dev] PEP 389: argparse - new command line parsing module

[Python-Dev] PEP 389: argparse - new command line parsing module [Python-Dev] PEP 389: argparse - new command line parsing moduleskip at pobox.com skip at pobox.com
Tue Sep 29 13:48:36 CEST 2009
    Martin> alpha = None
    Martin> beta = False
    Martin> options, args = getopt.getopt(sys.argv[1:],"a:b",['alpha=','beta']):
    Martin> for opt, val in options:
    ...

    Martin> Even though this is many more lines, I prefer it over
    Martin> optparse/argparse: this code has only a single function call,
    ...

Agreed.  I have never completely wrapped my brain around optparse.  Getopt I
just remember.

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4