Skip to main content

class_repr

No overview available.

def class_repr(
instance: object
) - > string

Generates a string representation of an object's class name and its memory address. Use this to provide a standard Python-style identifier for debugging or logging purposes.

Parameters

NameTypeDescription
instanceobjectThe object instance for which the class representation is being generated.

Returns

TypeDescription
stringA formatted string containing the class name and the hexadecimal memory address of the instance, enclosed in angle brackets.