Actually, Python does have that :) It's called __slots
The different “slot wrapper” and “method wrapper” types are not part of the Python language They are purely internal implementation details
Difference between slot wrapper, method python slot The different “slot wrapper” and “method wrapper” types are not part of the Python language They are purely internal implementation details python slot machine slot = pattern__slot if slot: = None # release slot offset_mtx = ProductType
python slot Note that some slots are effectively inherited through the normal attribute lookup chain sub-slots¶ Slot Type
Regular
price
126.00 ₹ INR
Regular
price
Sale
price
126.00 ₹ INR
Unit price
/
per