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

Function str

Lib/locale.py:302–304  ·  view source on GitHub ↗

Convert float to string, taking the locale into account.

(val)

Source from the content-addressed store, hash-verified

300 return s.replace('<', '').replace('>', '')
301
302def str(val):
303 """Convert float to string, taking the locale into account."""
304 return _format("%.12g", val)
305
306def delocalize(string):
307 "Parses a string as a normalized number according to the locale settings."

Callers 15

_get_capabilitiesMethod · 0.85
_get_responseMethod · 0.85
_new_tagMethod · 0.85
_scope_strMethod · 0.85
_raw_inputFunction · 0.85
read_unicodestringnlFunction · 0.85
read_unicodestring1Function · 0.85
read_unicodestring4Function · 0.85
read_unicodestring8Function · 0.85
_testFunction · 0.85
_compile_patternFunction · 0.85
__format__Method · 0.85

Calls 1

_formatFunction · 0.70

Tested by 15

_get_testMethod · 0.68
outMethod · 0.68
_toAsciiMethod · 0.68
__str__Method · 0.68
__str__Method · 0.68
test_invalid_modesMethod · 0.68
test_bug1601501Method · 0.68
test_encodeMethod · 0.68
test_nameprepMethod · 0.68
test_builtin_decodeMethod · 0.68
check_encode_stringsMethod · 0.68