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

Method __call__

numpy/core/arrayprint.py:1392–1400  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1390 return cls(format_functions)
1391
1392 def __call__(self, x):
1393 str_fields = [
1394 format_function(field)
1395 for field, format_function in zip(x, self.format_functions)
1396 ]
1397 if len(str_fields) == 1:
1398 return "({},)".format(str_fields[0])
1399 else:
1400 return "({})".format(", ".join(str_fields))
1401
1402
1403def _void_scalar_repr(x):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected