MCPcopy Index your code
hub / github.com/python/cpython / 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

persistent_loadMethod · 0.85
fopenFunction · 0.85
mainFunction · 0.85
get_diff_linesFunction · 0.85
filter_warnings_by_diffFunction · 0.85
process_touched_warningsFunction · 0.85
fail_if_regressionFunction · 0.85
mainFunction · 0.85
gather_idsFunction · 0.85
runMethod · 0.85
write_codeFunction · 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
_subTestMethod · 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