def getWeights(self, geometry, influenceIndex=None):
        if not isinstance(geometry, general.PyNode):
            geometry = general.PyNode(geometry)

        if isinstance( geometry, Transform ):
            try:
                geometry = geometry.getShape()
            except:
                raise TypeError, "%s is a transform with no shape" % geometry

        if isinstance(geometry, GeometryShape):
            components = _api.toComponentMObject( geometry.__apimdagpath__() )
        elif isinstance(geometry, general.Component):
            components = geometry.__apiobject__()

        else:
            raise TypeError

        if influenceIndex >= None:
            weights = _api.MDoubleArray()
            self.__apimfn__().getWeights( geometry.__apimdagpath__(), components, influenceIndex, weights )
            return iter(weights)
        else:
            weights = _api.MDoubleArray()
            index = _api.SafeApiPtr('uint')
            self.__apimfn__().getWeights( geometry.__apimdagpath__(), components, weights, index() )
            index = index.get()
            args = [iter(weights)] * index
            return itertools.izip(*args)
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/SkinCluster.getWeights/operator `is not` -> `>=`