On 10:10 am, mrk...@gmail.com wrote:
Disclaimer: this is for exploring and debugging only. Really.
I can check type or __class__ in the interactive interpreter:
Python 2.6.2 (r262:71600, Jun 16 2009, 16:49:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type help, copyright, credits or
Try looking at the function 'isinstance', so for example
if isinstance(obj, str):
print object is a string..
elif isinstance(obj, int):
print object is an integer..
-Original Message-
From: python-list-bounces+billy.earney=gmail@python.org