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 scoder
Recipients bagratte, eli.bendersky, scoder
Date 2014-01-09.07:50:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389253821.86.0.564082500362.issue20198@psf.upfronthosting.co.za>
In-reply-to
Content
IMHO, it makes sense to support this. My intuition tells me that lxml also handles this as expected, by accident through iteration.

Not sure how to do this correctly in ET, though. Special case dict? Or special case OrderedDict? Both would leave some reasonable use cases uncovered, e.g. dict subclasses that do not impact iteration, and self-implemented OrderedDict-like types. And being too broad in the special casing will certainly kill someone's doctests somewhere...

Given that OrderedDict is the one way to do this in recent Python versions, I guess it would be reasonable to special case on that type.
History
Date User Action Args
2014-01-09 07:50:21scodersetrecipients: + scoder, eli.bendersky, bagratte
2014-01-09 07:50:21scodersetmessageid: <1389253821.86.0.564082500362.issue20198@psf.upfronthosting.co.za>
2014-01-09 07:50:21scoderlinkissue20198 messages
2014-01-09 07:50:21scodercreate