Return to Snippet

Revision: 21872
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