pyodide/docs/js-api/pyodide_repr.md

516 B

(js_api_pyodide_repr)=

pyodide.repr(obj)

Gets the Python's string representation of an object.

This is equivalent to calling repr(obj) in Python.

Parameters

name type description
obj any Input object

Returns

name type description
str_repr String String representation of the input object