Skip to content

repr

const repr: (x: unknown) => string = builtins.repr

Defined in: packages/pythonlib/src/index.ts:182

Return a string containing a printable representation of an object.

Strings are quoted, other types use str() representation.

Parameters

ParameterTypeDescription
xunknownThe value to represent

Returns

string

A printable representation

See

Python repr()