pyodide/docs/js-api/pyodide_repr.md

20 lines
516 B
Markdown
Raw Normal View History

(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 |