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

Function set_sig

numpy/core/setup_common.py:110–116  ·  view source on GitHub ↗
(sig)

Source from the content-addressed store, hash-verified

108FUNC_CALL_ARGS = {}
109
110def set_sig(sig):
111 prefix, _, args = sig.partition("(")
112 args = args.rpartition(")")[0]
113 funcname = prefix.rpartition(" ")[-1]
114 args = [arg.strip() for arg in args.split(",")]
115 # We use {0} because 0 alone cannot be cast to complex on MSVC in C:
116 FUNC_CALL_ARGS[funcname] = ", ".join("(%s){0}" % arg for arg in args)
117
118
119for file in [

Callers 1

setup_common.pyFile · 0.85

Calls 5

rpartitionMethod · 0.80
stripMethod · 0.80
partitionMethod · 0.45
splitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected