Re: cycling through options

2010-03-16 Thread Gabriel Genellina
En Tue, 16 Mar 2010 11:30:51 -0300, Dieter Faulbaum escribió: is there a better way for cycling through all options than this: (options, args) = parser.parse_args() for opt in options.__dict__.keys(): print opt, ":", options.__dict__[opt] (I assume parser is an optparse.OptionParser

cycling through options

2010-03-16 Thread Dieter Faulbaum
Hello, is there a better way for cycling through all options than this: (options, args) = parser.parse_args() for opt in options.__dict__.keys(): print opt, ":", options.__dict__[opt] Thanks for any nicer solution -- Dieter Faulbaum -- http://mail.python.org/mailman/listinfo/python-li