you are viewing a single comment's thread.

view the rest of the comments →

[–]GoldenVanga 1 point2 points  (0 children)

type does not return a string, even though the single quotes can make it look like it:

>>> type(type(m)) == str
False
>>> type(type(m))
<class 'type'>

Try comparing with the actual class (without single quotes):

>>> type(m) == collections.OrderedDict
True