(val)
| 1639 | |
| 1640 | |
| 1641 | def 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 | |
| 1651 | class PyObjectPtrPrinter: |