(self, value: typing.Any, name_prefix="v")
Args:
          value (object): any object
Args:
          value (object): any object
Args : value ( object ) : any object
def __init__(self, value: typing.Any, name_prefix="v"):
        """
        Args:
          value (object): any object

        """
        super().__init__()
        self.value = value
        self.name_prefix = name_prefix
        self.code_str = None
        self.value_name = None

        value_name = getattr(value, "__name__", "")
        if (
            value_name in self._builtin_dict
            and self.value is self._builtin_dict[value_name]
        ):
            self.code_str = value_name

        elif callable(value):
            if hasattr(value, "conv_name") and isinstance(
                getattr(value, "conv_name"), str
            ):
                self.value_name = getattr(value, "conv_name")
            else:
                f_name = var_name_from_string(value_name)
                if f_name:
                    self.name_prefix = f_name
def __init__ ( self , value : typing . Any , name_prefix = "v" ) : super ( ) . __init__ ( ) self . value = value self . name_prefix = name_prefix self . code_str = None self . value_name = None value_name = getattr ( value , "__name__" , "" ) if ( value_name in self . _builtin_dict and self . value is self . _builtin_dict [ value_name ] ) : self . code_str = value_name elif callable ( value ) : if hasattr ( value , "conv_name" ) and isinstance ( getattr ( value , "conv_name" ) , str ) : self . value_name = getattr ( value , "conv_name" ) else : f_name = var_name_from_string ( value_name ) if f_name : self . name_prefix = f_name