parameters: (value, script=False)
return_statement: return value
docstring: Internal function.
docstring_summary: Internal function.
docstring_tokens: Internal function .
function: def _format_optvalue(value, script=False):
      """Internal function."""
      if script:
          # if caller passes a Tcl script to tk.call, all the values need to
          # be grouped into words (arguments to a command in Tcl dialect)
          value = _stringify(value)
      elif isinstance(value, (list, tuple)):
          value = _join(value)
      return value
function_tokens: def _format_optvalue ( value , script = False ) : if script : # if caller passes a Tcl script to tk.call, all the values need to # be grouped into words (arguments to a command in Tcl dialect) value = _stringify ( value ) elif isinstance ( value , ( list , tuple ) ) : value = _join ( value ) return value