Yurii Karabas <[email protected]> added the comment:
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?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27794>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com