Module inspect Bug
Tomas Zulberti
tzulberti at gmail.com
Mon Oct 5 10:59:01 EDT 2009
Hi. I have a class that extends collections.MutableMapping. I am
checking if it is abstract, using the module inspect. But isabstract
returns a number different from zero insted of True or False. The
problem with that is that sometimes it returns False when the class
isn't an abstract.
>>> inspect.isabstract(collections.MutableMapping)
1048576
>>> inspect.isabstract(os)
False
Its true that the condition nevertheless will be True on the if, but
the return value I think that should be boolean.
Thanks,
Tomas Zulberti
pd: Sorry for my bad English...
More information about the Python-list
mailing list