MCPcopy Index your code
hub / github.com/python/cpython / _convert_stringval

Function _convert_stringval

Lib/tkinter/ttk.py:293–301  ·  view source on GitHub ↗

Converts a value to, hopefully, a more appropriate Python object.

(value)

Source from the content-addressed store, hash-verified

291 return _splitdict(tk, res, conv=_tclobj_to_py)
292
293def _convert_stringval(value):
294 """Converts a value to, hopefully, a more appropriate Python object."""
295 value = str(value)
296 try:
297 value = int(value)
298 except (ValueError, TypeError):
299 pass
300
301 return value
302
303def _to_number(x):
304 if isinstance(x, str):

Callers 1

_tclobj_to_pyFunction · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…