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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2021-11-12.07:19:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636701597.69.0.9362953945.issue45791@roundup.psfhosted.org>
In-reply-to
Content
I think that the code is correct, and the documentation is not complete. As in most (but not all) cases of dunder methods it is looked up in a class, ignoring instance attributes.
History
Date User Action Args
2021-11-12 07:19:57serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2021-11-12 07:19:57serhiy.storchakasetmessageid: <1636701597.69.0.9362953945.issue45791@roundup.psfhosted.org>
2021-11-12 07:19:57serhiy.storchakalinkissue45791 messages
2021-11-12 07:19:57serhiy.storchakacreate