something wrong with isinstance

maksym.kaban at gmail.com maksym.kaban at gmail.com
Thu Feb 12 13:26:14 EST 2009


> Here's a crazy idea out of left field.  Just before calling
> isinstance, why not try:
>
> print(type(obj))
> print(str(obj))
>
> This may illuminate the unexpected behavior, you'll find out just what
> obj has in it.
>
> -- Paul

Well the output of
> print(type(obj))
> print(str(obj))

was

<class 'worldmap.GeoMap'>
<worldmap.GeoMap object at 0x01DD17B0>

Just looks well, isn't it? i have no idea what's wrong



More information about the Python-list mailing list