Skip to content

str

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

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

Convert a value to its string representation.

Uses Python-style formatting for booleans (True/False), None, and collections.

Parameters

ParameterTypeDescription
xunknownThe value to convert

Returns

string

The string representation

See

Python str()