This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gpolo
Recipients bethard, djc, gpolo, gward, rhettinger
Date 2008-03-23.22:12:47
SpamBayes Score 0.0824442
Marked as misclassified No
Message-id <>
There is another reason for considering __iter__ as a more pythonic
solution here. If you print opts, it may lead you to believe that it is
just a regular dict, while it is not. If you were just able to iterate
over it, I think it would be more natural. I know you could check it and
then you would know it is not a dict, but I still prefer adding
a__iter__ method over using vars here.

About optparse being maintained separately.. isn't there someone
responsible that possibly checks this bugtracker ? If it is not the
case, and if __iter__ is agreed as a good solution, I could send this to
its own bugtracker then (if that is the best thing to do).
Date User Action Args
2008-03-23 22:12:48gpolosetspambayes_score: 0.0824442 -> 0.0824442
recipients: + gpolo, gward, rhettinger, bethard, djc
2008-03-23 22:12:48gpolosetspambayes_score: 0.0824442 -> 0.0824442
messageid: <>
2008-03-23 22:12:47gpololinkissue2444 messages
2008-03-23 22:12:47gpolocreate