MCPcopy Create free account
hub / github.com/simplejson/simplejson / _env_float

Function _env_float

tsan_stress_simplejson.py:71–76  ·  view source on GitHub ↗
(name, default)

Source from the content-addressed store, hash-verified

69
70
71def _env_float(name, default):
72 try:
73 v = os.environ.get(name)
74 return float(v) if v else default
75 except ValueError:
76 return default
77
78
79def _is_tsan_build():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…