MCPcopy Create free account
hub / github.com/numpy/numpy / _kind_func

Function _kind_func

numpy/f2py/crackfortran.py:2434–2442  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

2432
2433
2434def _kind_func(string):
2435 # XXX: return something sensible.
2436 if string[0] in "'\"":
2437 string = string[1:-1]
2438 if real16pattern.match(string):
2439 return 8
2440 elif real8pattern.match(string):
2441 return 4
2442 return 'kind(' + string + ')'
2443
2444
2445def _selected_int_kind_func(r):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected