Re: optparse versus getopt

2009-02-11 Thread Pete Forman
Robert Kern robert.k...@gmail.com writes: is there some way i can force the import based on the the absolute path to the module? Better would be for you to copy the optparse.py module onto your Jython's import path. I'm not particularly familiar with the details of Jython, so you will

optparse versus getopt

2009-02-10 Thread Matthew Sacks
does anyone have any arguments against optparse vs getopt -- http://mail.python.org/mailman/listinfo/python-list

Re: optparse versus getopt

2009-02-10 Thread Robert Kern
On 2009-02-10 15:06, Matthew Sacks wrote: does anyone have any arguments against optparse vs getopt As the getopt docs say: A more convenient, flexible, and powerful alternative is the optparse module. I have found all three statements to be true. But I've found argparse to be even better.

Re: optparse versus getopt

2009-02-10 Thread Tim Chase
Matthew Sacks wrote: does anyone have any arguments against optparse vs getopt I've found that the optparse module beats getopt on *every* aspect except in the event that you have experience with the C getopt libraries *and* just want something that behaves like those libraries. Optparse

Re: optparse versus getopt

2009-02-10 Thread Matthew Sacks
it seems as if optparse isn't in my standard library. is there a way to add a lib like ruby gems? On Tue, Feb 10, 2009 at 1:38 PM, Tim Chase python.l...@tim.thechases.com wrote: Matthew Sacks wrote: does anyone have any arguments against optparse vs getopt I've found that the optparse module

Re: optparse versus getopt

2009-02-10 Thread Robert Kern
On 2009-02-10 15:42, Matthew Sacks wrote: it seems as if optparse isn't in my standard library. How did you install your Python? It has been part of the standard library for a very long time. is there a way to add a lib like ruby gems? http://docs.python.org/install/index.html But

Re: optparse versus getopt

2009-02-10 Thread Matthew Sacks
its a debian package. 2.5 importing optparse works with interactive python, but not through the jython interpreter i an using. is there some way i can force the import based on the the absolute path to the module? On Tue, Feb 10, 2009 at 1:48 PM, Robert Kern robert.k...@gmail.com wrote: On

Re: optparse versus getopt

2009-02-10 Thread Robert Kern
On 2009-02-10 17:32, Matthew Sacks wrote: its a debian package. 2.5 importing optparse works with interactive python, but not through the jython interpreter i an using. Ah, yes. The current version of Jython is still based off of Python 2.2 whereas optparse was introduced in Python 2.3.