Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ sym2def
Function
sym2def
numpy/core/setup_common.py:214–216 ·
view source on GitHub ↗
(symbol)
Source
from the content-addressed store, hash-verified
212
return
"HAVE_%s"
% name.upper()
213
214
def
sym2def(symbol):
215
define = symbol.replace(
' '
,
''
)
216
return
define.upper()
217
218
def
type2def(symbol):
219
define = symbol.replace(
' '
,
'_'
)
Callers
1
check_types
Function · 0.85
Calls
2
replace
Method · 0.80
upper
Method · 0.80
Tested by
no test coverage detected