stringify

On this page

stringify#

stringify(obj, rst=True, maxlength=None)#

Return a string representation of object.

To put in trait metadata in the documentation.

Parameters:
  • rst (bool) – If True, wrap the output in wrap the output in double backticks and link classes using roles.

  • maxlength (int | None) – If not None, cut the result with ellipsis after that many characters.

  • obj (Any)

Return type:

str