def rename( self, name, **kwargs ):
        #self.setName( name ) # no undo support
        
        #check for preserveNamespace a pymel unique flag
        if kwargs.pop('preserveNamespace', False):
            name = self.namespace(root=True) + name
        
        #ensure shortname
        if '|' in name:
            name = name.split('|')[-1]
        
        return general.rename(self, name, **kwargs)
Merging C{foo} into C{bar} returns a function with C{foo}'s
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/DependNode.rename--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_util.py/TestMergeFunctionMetadata.test_moduleIsMerged