MCPcopy Create free account
hub / github.com/ipython/ipython / _some_str

Method _some_str

IPython/core/ultratb.py:840–845  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

838 ostream.flush()
839
840 def _some_str(self, value):
841 # Lifted from traceback.py
842 try:
843 return py3compat.cast_unicode(str(value))
844 except:
845 return u'<unprintable %s object>' % type(value).__name__
846
847
848#----------------------------------------------------------------------------

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected