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

Method __mod__

numpy/_core/defchararray.py:710–720  ·  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

708 return asarray(multiply(self, i))
709
710 def __mod__(self, i):
711 """
712 Return (self % i), that is pre-Python 2.6 string formatting
713 (interpolation), element-wise for a pair of array_likes of `bytes_`
714 or `str_`.
715
716 See Also
717 --------
718 mod
719 """
720 return asarray(mod(self, i))
721
722 def __rmod__(self, other):
723 return NotImplemented

Callers

nothing calls this directly

Calls 2

asarrayFunction · 0.70
modFunction · 0.70

Tested by

no test coverage detected