Isn't there a better way?
T
ty.2006 at yahoo.com
Fri Jul 21 14:01:56 EDT 2006
T wrote:
> > I don't know what both classes do [snip]
>
> foo basically gets values for verbose (a True or False) and index (an
> integer) from command line options, using
> optparse.OptionParser.add_option() and
> optparse.OptionParser.parse_args()
>
> I would like bar to access the values of verbose and index. Is there
> another way?
Sorry... I meant to say:
"foo basically gets values for index (an integer) and output (a string)"
More information about the Python-list
mailing list