Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ sign
Function
sign
Modules/_decimal/tests/randdec.py:54–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
53
54
def
sign():
55
if
randrange(2):
56
if
randrange(2):
return
'+'
57
return
''
58
return
'-'
59
60
def
indicator():
61
return
"eE"
[randrange(2)]
Callers
3
exponent_part
Function · 0.70
numeric_string
Function · 0.70
rand_adjexp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…