MCPcopy Index your code
hub / github.com/RustPython/RustPython / _convert_stringval

Function _convert_stringval

Lib/tkinter/ttk.py:295–303  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

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

Callers 1

_tclobj_to_pyFunction · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected