Compares two shapes. If no shapes are specified in the command line, then the shapes from the active list are used.
Derived from mel command maya.cmds.shapeCompare
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.polySphere()
# Result: [nt.Transform(u'pSphere1'), nt.PolySphere(u'polySphere1')] #
pm.polySphere()
# Result: [nt.Transform(u'pSphere2'), nt.PolySphere(u'polySphere2')] #
pm.select( cl=True )
pm.select( 'pSphere1', 'pSphere2', r=True )
pm.shapeCompare()
# Result: 0 #