MCPcopy Index your code
hub / github.com/python/cpython / stringify

Function stringify

Tools/gdb/libpython.py:1641–1648  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1639
1640
1641def stringify(val):
1642 # TODO: repr() puts everything on one line; pformat can be nicer, but
1643 # can lead to v.long results; this function isolates the choice
1644 if True:
1645 return repr(val)
1646 else:
1647 from pprint import pformat
1648 return pformat(val)
1649
1650
1651class PyObjectPtrPrinter:

Callers 1

to_stringMethod · 0.85

Calls 1

pformatFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…