Revision: 21872
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 22, 2009 15:34 by magicrebirth
Initial Code
>>> s = "A Simple String" >>> print isinstance(s, basestring) True >>> print isinstance(s, dict) False >>>
Initial URL
Initial Description
Initial Title
Python: checking the type of an object
Initial Tags
object
Initial Language
Python