Skip to content

setattr

const setattr: (obj: unknown, name: string, value: unknown) => void = builtins.setattr

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

Python setattr() function - set an attribute on an object

Parameters

ParameterTypeDescription
objunknownThe object to set the attribute on
namestringThe name of the attribute
valueunknownThe value to set

Returns

void