eap fce720f2d2 22465: [CEA] sometimes isinstance(m, Mesh) returns False for Mesh objects // PPGP pb
class MeshMeta(type):
    def __instancecheck__(cls, inst):
        """Implement isinstance(inst, cls)."""
        return any(cls.__subclasscheck__(c)
                   for c in {type(inst), inst.__class__})

    def __subclasscheck__(cls, sub):
        """Implement issubclass(sub, cls)."""
        return type.__subclasscheck__(cls, sub) or (cls.__name__ == sub.__name__ and cls.__module__ == sub.__module__)

...

class Mesh:
    __metaclass__ = MeshMeta

...
2014-02-05 08:08:10 +00:00
2013-11-20 13:46:15 +00:00
2004-06-18 08:34:31 +00:00
2004-06-18 08:34:31 +00:00
2003-11-06 11:34:19 +00:00
2013-11-06 10:36:07 +00:00

The file is empty.
Description
SALOME Mesh module
Readme 91 MiB
Languages
C++ 85.2%
Python 12.8%
CMake 1.1%
HTML 0.4%
C 0.3%
Other 0.1%