def get_old_value(self, args, kwargs, default=None):
        # type: (List[Any], Dict[str, Any], Any) -> Any
        """Returns the old value of the named argument without replacing it.

        Returns ``default`` if the argument is not present.
        """
        if self.arg_pos is not None and len(args) > self.arg_pos:
            return args[self.arg_pos]
        else:
            return kwargs.get(self.name, default)
def get_old_value ( self , args , kwargs , default = None ) : if self . arg_pos is not None and len ( args ) > self . arg_pos : return args [ self . arg_pos ] else : return kwargs . get ( self . name , default )
Returns the old value of the named argument without replacing it.

        Returns ``default`` if the argument is not present.