[issue44661] Update property_descr_set to use vectorcall if possible.
Dong-hee Na
report at bugs.python.org
Mon Jul 19 06:14:43 EDT 2021
Dong-hee Na <donghee.na at python.org> added the comment:
class Person:
def __init__(self):
self.__age = 0
@property
def age(self):
return self.__age
@age.setter
def age(self, value):
self.__age = value
p = Person()
p.age = 10 # Now become faster
----------
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44661>
_______________________________________
More information about the Python-bugs-list
mailing list