MCPcopy Index your code
hub / github.com/numpy/numpy / _clean_args

Function _clean_args

numpy/_core/strings.py:127–141  ·  view source on GitHub ↗

Helper function for delegating arguments to Python string functions. Many of the Python string operations that have optional arguments do not use 'None' to indicate a default value. In these cases, we need to remove all None arguments, and those following them.

(*args)

Source from the content-addressed store, hash-verified

125
126
127def _clean_args(*args):
128 """
129 Helper function for delegating arguments to Python string
130 functions.
131
132 Many of the Python string operations that have optional arguments
133 do not use 'None' to indicate a default value. In these cases,
134 we need to remove all None arguments, and those following them.
135 """
136 newargs = []
137 for chk in args:
138 if chk is None:
139 break
140 newargs.append(chk)
141 return newargs
142
143
144def _multiply_dispatcher(a, i):

Callers 6

decodeFunction · 0.85
encodeFunction · 0.85
_splitFunction · 0.85
_rsplitFunction · 0.85
_splitlinesFunction · 0.85
translateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…