[issue2444] Adding __iter__ to class Values of module optparse
Steven Bethard
report at bugs.python.org
Sun Mar 23 22:53:34 CET 2008
Steven Bethard <steven.bethard at gmail.com> added the comment:
But ``vars()`` is the standard Python mechanism for doing this sort of
thing (that is, treating an object like a dictionary). So, while I
understand that you find "iterating over opts to be nicer", calling it
more Pythonic is probably a misuse of the term. ;-)
Anyway, I should point out that optparse is maintained separately from
the standard library, and any modifications to it usually need to go
through the tracker at http://optik.sourceforge.net/ first.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2444>
__________________________________
More information about the Python-bugs-list
mailing list