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)
| 1401 | |
| 1402 | |
| 1403 | def _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_] |