Comment 2 for bug 1838252

Revision history for this message
scoder (scoder) wrote :

Thanks for the report. It's not intended. The bug is here:

https://github.com/lxml/lxml/blob/master/src/lxml/apihelpers.pxi#L290-L305

Note how the inheritance test first checks for "dict", then for "OrderedDict". Sadly, "OrderedDict" inherits from "dict", so the second branch is never taken for it.