On 9/11/11 6:05 AM, Tim Chase wrote:

As Ben Finney replied, optparse is now deprecated, replaced in part by argparse.
Unfortunately, argparse wasn't backported to the standard library for earlier
2.x series (I think it became available in 2.7, and may run in earlier versions
if manually added like I had to do on my Debian Py2.6 install). But that makes
it hard for those of us who want to use a built-in option-parsing library across
a wide variety of Python versions. I don't strongly care which I use except that
I want it to be broadly available with minimal fuss.

argparse.py can be simply dropped into your codebase, if you want. That's about as minimal of fuss as you can ask for.

  http://pypi.python.org/pypi/argparse

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to