Message383870
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? |
|
Date |
User |
Action |
Args |
2020-12-27 21:58:58 | uriyyo | set | recipients:
+ uriyyo, rhettinger, ncoghlan, r.david.murray, ztane, xiang.zhang, abarry, apatrushev, Muhammad Alkarouri, xtreak |
2020-12-27 21:58:58 | uriyyo | set | messageid: <1609106338.85.0.217184198974.issue27794@roundup.psfhosted.org> |
2020-12-27 21:58:58 | uriyyo | link | issue27794 messages |
2020-12-27 21:58:58 | uriyyo | create | |
|