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

Function _object_format

numpy/core/arrayprint.py:389–395  ·  view source on GitHub ↗

Object arrays containing lists should be printed unambiguously

(o)

Source from the content-addressed store, hash-verified

387
388
389def _object_format(o):
390 """ Object arrays containing lists should be printed unambiguously """
391 if type(o) is list:
392 fmt = 'list({!r})'
393 else:
394 fmt = '{!r}'
395 return fmt.format(o)
396
397def repr_format(x):
398 return repr(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected