Author aviso
Recipients Amir, Darragh Bailey, anthonypjshaw, aviso, cjw296, lisroach, mariocj89, michael.foord, pconnell, r.david.murray, rbcollins, xtreak
Date 2020-03-28.04:18:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585369129.85.0.0666732056622.issue39966@roundup.psfhosted.org>
In-reply-to
Content
That is not necessarily the same thing, hence why there was a bug.

>>> hasattr(object, '__bool__')
False
>>> bool(object)
True

I think you may be right that magic methods shouldn't magically appear for wrapped objects, except those that do magically appear, like __bool__.
History
Date User Action Args
2020-03-28 04:18:49avisosetrecipients: + aviso, rbcollins, cjw296, r.david.murray, michael.foord, pconnell, Darragh Bailey, lisroach, anthonypjshaw, mariocj89, xtreak, Amir
2020-03-28 04:18:49avisosetmessageid: <1585369129.85.0.0666732056622.issue39966@roundup.psfhosted.org>
2020-03-28 04:18:49avisolinkissue39966 messages
2020-03-28 04:18:49avisocreate