This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author corona10
Recipients corona10, erlendaasland, kj, pablogsal, vstinner
Date 2021-07-19.10:14:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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
History
Date User Action Args
2021-07-19 10:14:43corona10setrecipients: + corona10, vstinner, pablogsal, erlendaasland, kj
2021-07-19 10:14:43corona10setmessageid: <[email protected]>
2021-07-19 10:14:43corona10linkissue44661 messages
2021-07-19 10:14:43corona10create