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

Method __mod__

numpy/core/defchararray.py:2224–2234  ·  view source on GitHub ↗

Return (self % i), that is pre-Python 2.6 string formatting (interpolation), element-wise for a pair of array_likes of `bytes_` or `str_`. See Also -------- mod

(self, i)

Source from the content-addressed store, hash-verified

2222 return asarray(multiply(self, i))
2223
2224 def __mod__(self, i):
2225 """
2226 Return (self % i), that is pre-Python 2.6 string formatting
2227 (interpolation), element-wise for a pair of array_likes of `bytes_`
2228 or `str_`.
2229
2230 See Also
2231 --------
2232 mod
2233 """
2234 return asarray(mod(self, i))
2235
2236 def __rmod__(self, other):
2237 return NotImplemented

Callers

nothing calls this directly

Calls 2

asarrayFunction · 0.70
modFunction · 0.70

Tested by

no test coverage detected