def __init__(self, *args, **kwargs): copy_from = kwargs.pop('copy_from', None) Path.__init__(self, *args, **kwargs) if copy_from: self.__dict__.update(copy.deepcopy(copy_from.__dict__)) self.isClipPath = 1
def __init__(self, *args, **kwargs): copy_from = kwargs.pop('copy_from', None) Path.__init__(self, *args, **kwargs) # we're old-style class on PY2 if copy_from: self.__dict__.update(copy.deepcopy(copy_from.__dict__))
def __init__(self, ref=None): Path.__init__(self) self._ref = ref