compare types?

Tony Clarke a.clarke11 at ntlworld.com
Wed Jan 1 11:10:34 EST 2003


Kenneth Godee <Ken at perfect-image.com> wrote in message news:<mailman.1041320765.10859.python-list at python.org>...
> Brian,
> Thanks for your quick reply.
> I had read the "isinstance" docs, just didn't understand it.
> You put me on the right track, had to make
> a few adjustments to get it to work....
> 
> if isinstance(item, DateTime.DateTimeType):
> 
> Thanks,
> Ken
> 
Hi, 
does anyone know if it is possible to use isinstance() to recognise a list?
Tony




More information about the Python-list mailing list