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 uriyyo
Recipients Muhammad Alkarouri, abarry, apatrushev, ncoghlan, r.david.murray, rhettinger, uriyyo, xiang.zhang, xtreak, ztane
Date 2020-12-27.21:58:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609106338.85.0.217184198974.issue27794@roundup.psfhosted.org>
In-reply-to
Content
Raymond, it's a good question.

I have added `name` to `property` constructor to support cases when a property is added to a class after it was declared.

For instance:

```
class Foo:
    pass


Foo.foo = property(name='foo')

f = Foo()
f.foo = 10
```

So, in my opinion, it's expected behavior that `name` is overwritten by `__set_name__` method.

What do you think about that? Should we change this behevior?
History
Date User Action Args
2020-12-27 21:58:58uriyyosetrecipients: + uriyyo, rhettinger, ncoghlan, r.david.murray, ztane, xiang.zhang, abarry, apatrushev, Muhammad Alkarouri, xtreak
2020-12-27 21:58:58uriyyosetmessageid: <1609106338.85.0.217184198974.issue27794@roundup.psfhosted.org>
2020-12-27 21:58:58uriyyolinkissue27794 messages
2020-12-27 21:58:58uriyyocreate