something wrong with isinstance
pavlovevidence at gmail.com
Fri Feb 13 05:07:58 EST 2009
On Feb 12, 10:49 am, redbaron <ivanov.ma... at gmail.com> wrote:
> Don't really sure, but try to define your class as new-style one.
> class GeoMap(object):
Well, the OP said he was using Python 3.0, where all classes are new-
But that brings up another very slight possibility, though not a very
likely one in this case: the behavior of isinstance can be
customized. It can happen unbeknownst to a user who subclasses a
class that does that.
More information about the Python-list