/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
>>> s = "A Simple String" >>> print isinstance(s, basestring) True >>> print isinstance(s, dict) False >>>