Isn't there a better way?

T ty.2006 at yahoo.com
Fri Jul 21 11:37:56 EDT 2006


> 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?




More information about the Python-list mailing list