A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-January/042253.html below:

[Python-Dev] Hotshot

[Python-Dev] Hotshot [Python-Dev] HotshotSkip Montanaro skip at pobox.com
Mon Jan 26 11:40:59 EST 2004
    >> How would optparse be better than getopt, especially for simple use
    >> such as this?

    Guido> Optparse is *always* better than getopt, once you're used to it.
    Guido> Even for a single option it's usually fewer lines of code.

Is this a pronouncement?  A quick grep suggests that so far only
Tools/scripts/diff.py uses optparse.

I converted the script to use optparse.  It will take some getting used to
(just like getopt did).

So, is this (hotshotmain.py) a useful standalone script?  Given that hotshot
is a package instead of a module I don't think it's possible to just tack a
main() on to an existing module.

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