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

Function _void_scalar_repr

numpy/core/arrayprint.py:1403–1409  ·  view source on GitHub ↗

Implements the repr for structured-void scalars. It is called from the scalartypes.c.src code, and is placed here because it uses the elementwise formatters defined above.

(x)

Source from the content-addressed store, hash-verified

1401
1402
1403def _void_scalar_repr(x):
1404 """
1405 Implements the repr for structured-void scalars. It is called from the
1406 scalartypes.c.src code, and is placed here because it uses the elementwise
1407 formatters defined above.
1408 """
1409 return StructuredVoidFormat.from_data(array(x), **_format_options)(x)
1410
1411
1412_typelessdata = [int_, float_, complex_, bool_]

Callers

nothing calls this directly

Calls 2

arrayFunction · 0.90
from_dataMethod · 0.80

Tested by

no test coverage detected