def _get_const_info(const_index, const_list):
argval = const_index<EOL>if const_list is not None:<EOL><INDENT>argval = const_list[const_index]<EOL><DEDENT>if isinstance(argval, float) and str(argval) in frozenset(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']):<EOL><INDENT>return argval, "<STR_LIT>" % argval<EOL><DEDENT>return argval, repr(argval)<EOL>
Helper to get optional details about const references

       Returns the dereferenced constant and its repr if the constant
       list is defined.
       Otherwise returns the constant index and its repr().