MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / mod

Function mod

site-packages/numpy/core/defchararray.py:358–382  ·  view source on GitHub ↗

Return (a % i), that is pre-Python 2.6 string formatting (iterpolation), element-wise for a pair of array_likes of str or unicode. Parameters ---------- a : array_like of str or unicode values : array_like of values These values will be element-wise interpolated

(a, values)

Source from the content-addressed store, hash-verified

356
357@array_function_dispatch(_mod_dispatcher)
358def mod(a, values):
359 """
360 Return (a % i), that is pre-Python 2.6 string formatting
361 (iterpolation), element-wise for a pair of array_likes of str
362 or unicode.
363
364 Parameters
365 ----------
366 a : array_like of str or unicode
367
368 values : array_like of values
369 These values will be element-wise interpolated into the string.
370
371 Returns
372 -------
373 out : ndarray
374 Output array of str or unicode, depending on input types
375
376 See also
377 --------
378 str.__mod__
379
380 """
381 return _to_string_or_unicode_array(
382 _vec_string(a, object_, '__mod__', (values,)))
383
384
385@array_function_dispatch(_unary_op_dispatcher)

Callers 2

__mod__Method · 0.70
unwrapFunction · 0.50

Calls 1

Tested by

no test coverage detected