I’m trying to find a clean way to test if an object in Python is of type Boost.Python.enum:

>>> myEnum.__bases__

(<type 'Boost.Python.enum'>,)

 

The easiest way would probably just be isinstance, but I can’t seem to find a way to import Boost.Python.enum.  Anyone know how to import the necessary module or have a better idea?  For what I’m doing, I can’t simply rely on duck typing.

 

Thanks,

Josh