Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ _to_number
Function
_to_number
tools/python-3.11.9-amd64/Lib/tkinter/ttk.py:298–304 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
296
return
value
297
298
def
_to_number(x):
299
if
isinstance(x, str):
300
if
'.'
in x:
301
x = float(x)
302
else
:
303
x = int(x)
304
return
x
305
306
def
_tclobj_to_py(val):
307
""
"Return value converted from Tcl object to Python object."
""
Callers
1
_adjust
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected