[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

cycling through options

Dieter Faulbaum

3/16/2010 2:31:00 PM


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