[issue2444] Adding __iter__ to class Values of module optparse
Guilherme Polo
report at bugs.python.org
Sun Mar 23 22:47:45 CET 2008
Guilherme Polo <ggpolo at gmail.com> added the comment:
I consider iterating over opts to be nicer and more pythonic than using
vars(opts), since the latter is just a mask over the ugly opts.__dict__
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2444>
__________________________________
More information about the Python-bugs-list
mailing list