MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _test

Function _test

tools/python-3.11.9-amd64/Lib/locale.py:344–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 return int(delocalize(string))
343
344def _test():
345 setlocale(LC_ALL, "")
346 #do grouping
347 s1 = format_string("%d", 123456789,1)
348 print(s1, "is", atoi(s1))
349 #standard formatting
350 s1 = str(3.14)
351 print(s1, "is", atof(s1))
352
353### Locale name aliasing engine
354

Callers 1

locale.pyFile · 0.70

Calls 6

setlocaleFunction · 0.85
format_stringFunction · 0.85
atoiFunction · 0.85
strFunction · 0.85
atofFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected