[Python-Dev] Adding Optik to 2.3 standard library (original) (raw)

Fredrik Lundh fredrik@pythonware.com
Fri, 12 Apr 2002 20:16:10 +0200


Greg Ward wrote:

> how about "getoptions"? (which implies that > "getopt" isn't nearly as complete)

If we're going for a generic-sounding, standard-library-style name, I would prefer "optionparser", because that's the main class in Optik that programmers interact with. Eg. from optionparser import OptionParser, makeoption

in other words, it should be OptionParser.py, according to the style guide.

> can optik be used as a drop-in replacement for > getopt?

No. Never even occurred to me that anyone would want such a thing!

if you want to add something to the standard library, it would be nice if we could take something away, right?