jangada.serialization.SerializableProperty.__set_name__#

SerializableProperty.__set_name__(owner: type, name: str) None#

Called when the descriptor is assigned to a class attribute.

This method is part of the descriptor protocol and is automatically called by Python when the class is created. It stores metadata about the property’s name and owner class.

Parameters:
ownertype

The class that contains this descriptor.

namestr

The name of the attribute this descriptor is assigned to.

Notes

This method sets three attributes: - name: The attribute name - owner: The owning class - private_name: Mangled name for storing the actual value

The private_name uses a prefix to avoid namespace collisions with user-defined attributes.