Skip to content

ascii

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

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

Return a string containing a printable ASCII representation.

Non-ASCII characters are escaped using \xhh, \uhhhh, or \Uhhhhhhhh.

Parameters

ParameterTypeDescription
xunknownThe value to represent

Returns

string

ASCII-safe printable representation

See

Python ascii()