tpaviot/pythonocc — Issue #30: __eq__ function should check instance
Author: henrikrudstrom
Created: 2011-11-17 15:27:34+00:00
State: open

i just noticed that the __eq__ function of the OCC classes do not check the instance of the compared object and throws error if they are not of the same class:

>>> cube = make_face(1,2,3)
>>> cube == 4
TypeError: in method 'TopoDS_Shape___eq__', argument 2 of type 'TopoDS_Shape const'