⬅︎ Back to SmartDict - a smart 'dict' wrapper
It's just a of an oddity in python that 'list' is a type object and not a <type 'function'> like one'd expect it to be.
In general, isinstance(foo, klass) returns True if foo is an instance of klass or a subclass of it. It can also accept types.* instead of classes. Martelli calls it the lesser of two evils. :-)
Comment
It's just a of an oddity in python that 'list' is a type object and not a <type 'function'> like one'd expect it to be.
Parent comment
In general, isinstance(foo, klass) returns True if foo is an instance of klass or a subclass of it. It can also accept types.* instead of classes. Martelli calls it the lesser of two evils. :-)