compare types?

Kenneth Godee Ken at perfect-image.com
Tue Dec 31 02:44:47 EST 2002


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

On Mon, 30 Dec 2002 23:18:07 -0800
Brian Quinlan <brian at sweetapp.com> wrote:

> > I understand why the above types match
> > it just seems like there should be a easier
> > way to compare a DateTime type?
> > Or is this the way it should be done?
> 
> if isinstance(item, DateTime):
>    
> 
> 




More information about the Python-list mailing list