Python property descriptor design: why copy rather than mutate?
Python property descriptor design: why copy rather than mutate? Question: I was looking at how Python implements the property descriptor internally. According to the docs property() is implemented in terms of the descriptor protocol, reproducing it here for convenience: class Property(object): “Emulate PyProperty_Type() in Objects/descrobject.c” def __init__(self, fget=None, fset=None, fdel=None, doc=None): self.fget = fget self.fset …
Total answers: 3