sob/model.py
def _deepcopy_property(
        self,
        property_name_: str,
        other: abc.Object,
        memo: Optional[dict],
    ) -> None:
        """
        Deep-copy a property from this object to another
        """
        try:
            value = getattr(self, property_name_)
            if isinstance(value, GeneratorType):
                value = tuple(value)
            if value is not None:
                if not callable(value):
                    value = deepcopy(value, memo=memo)  # noqa
                setattr(other, property_name_, value)
        except TypeError as error:
            label = "%s.%s: " % (qualified_name(type(self)), property_name_)
            if error.args:
                error.args = tuple(
                    chain((label + error.args[0],), error.args[1:])
                )
            else:
                error.args = (label + serialize(self),)
            raise error

        Deep-copy a property from this object to another
        
Deep-copy a property from this object to another
Deep - copy a property from this object to another
def _deepcopy_property(
        self,
        property_name_: str,
        other: abc.Object,
        memo: Optional[dict],
    ) -> None:
        try:
            value = getattr(self, property_name_)
            if isinstance(value, GeneratorType):
                value = tuple(value)
            if value is not None:
                if not callable(value):
                    value = deepcopy(value, memo=memo)  
                setattr(other, property_name_, value)
        except TypeError as error:
            label = "%s.%s: " % (qualified_name(type(self)), property_name_)
            if error.args:
                error.args = tuple(
                    chain((label + error.args[0],), error.args[1:])
                )
            else:
                error.args = (label + serialize(self),)
            raise error
def _deepcopy_property ( self , property_name_ : str , other : abc . Object , memo : Optional [ dict ] , ) -> None : try : value = getattr ( self , property_name_ ) if isinstance ( value , GeneratorType ) : value = tuple ( value ) if value is not None : if not callable ( value ) : value = deepcopy ( value , memo = memo ) setattr ( other , property_name_ , value ) except TypeError as error : label = "%s.%s: " % ( qualified_name ( type ( self ) ) , property_name_ ) if error . args : error . args = tuple ( chain ( ( label + error . args [ 0 ] , ) , error . args [ 1 : ] ) ) else : error . args = ( label + serialize ( self ) , ) raise error
Deep-copy a property from this object to another
Deep - copy a property from this object to another
"""
        Deep-copy a property from this object to another
        """ # noqa
self
property_name_
str
other
abc.Object
memo
Optional[dict]