I had a look with inspect
import inspect
import pymel.core as pm
node = pm.MeshFace('pSphere1.f[0]')
print inspect.getsourcelines(node.__eq__)
print inspect.getsourcefile(node.__eq__)
..and it looks like it all comes down to this.
def __eq__(self, other):
if not hasattr(other, '__apicomponent__'):
return False
return self.__apicomponent__().isEqual( other.__apicomponent__().object() )
Defined at general.py:3717
It does have an __apicomponent__ attribute, so it ends up comparing it to other.__apicomponent__().object() which says that it is a:
Result: <maya.OpenMaya.MObject; proxy of <Swig Object of type 'MObject *' at 0x0000000038F33E40> > #