Message407970
| Author | zuo |
|---|---|
| Recipients | docs@python, martin.panter, rhettinger, zuo |
| Date | 2021-12-07.21:10:56 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1638911456.51.0.784585467628.issue20751@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
I am very sorry, I just noticed another mistake. It should be: A dotted lookup such as ``super(A, obj).x`` (where ``obj`` is an instance of ``A`` or of a subclass of ``A``) searches ``type(obj).__mro__`` for such a base class ``B`` that follows ``A`` and whose :attr:`__dict__` contains the name ``"x"``; then ``B.__dict__['x'].__get__(obj, type(obj))`` is returned. If not a descriptor, ``B.__dict__['x']`` is returned unchanged. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-12-07 21:10:57 | zuo | set | recipients: + zuo, rhettinger, docs@python, martin.panter |
| 2021-12-07 21:10:56 | zuo | set | messageid: <1638911456.51.0.784585467628.issue20751@roundup.psfhosted.org> |
| 2021-12-07 21:10:56 | zuo | link | issue20751 messages |
| 2021-12-07 21:10:56 | zuo | create | |