Checking if a variable is a dictionary
steve at REMOVE-THIS-cybersource.com.au
Mon Mar 10 17:37:04 CET 2008
On Mon, 10 Mar 2008 14:29:48 +0000, Andrew Koenig wrote:
> So the question you need to answer is whether you want to determine
> whether an object is exactly of type dict, or whether it you are willing
> to accept types derived from dict also.
Or other mappings that don't inherit from dict but behave just like
dicts, such as UserDict.
More information about the Python-list