mirror of https://github.com/pyodide/pyodide.git
20 lines
516 B
Markdown
20 lines
516 B
Markdown
|
(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 |
|