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 madphysicist
Recipients docs@python, madphysicist, r.david.murray, rhettinger
Date 2017-07-27.20:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAAa1KPbHsqHd0SGJxw50GJUtxHa5AtDma6y=q2PkQ__tNuiFbA@mail.gmail.com>
In-reply-to <1501185874.04.0.828360482221.issue31042@psf.upfronthosting.co.za>
Content
I brought up the issue because it was really a point of confusion for me.
Could we make the change to "Roughly equivalent" and make that a link to
https://docs.python.org/3/reference/datamodel.html#special-method-lookup?
That would make it clear how the lookup is actually done.

While I agree that making the docs unnecessarily pedantic is probably a bad
thing, I am going to guess that I am not the only person that looks to them
for technical accuracy.

Regards,

    -Joe

On Thu, Jul 27, 2017 at 4:04 PM, R. David Murray <report@bugs.python.org>
wrote:

>
> R. David Murray added the comment:
>
> I agree with Raymond.  I'm not sure that adding roughly is going to
> decrease the possibility of confusion, but I won't object to it.
>
> In a way, it's too bad we didn't make the attribute lookup machinery look
> up all dunder methods on the class, so that a.__index__ would call the
> class method.  I think backward compatibility prevented that.
>
> ----------
> nosy: +r.david.murray
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue31042>
> _______________________________________
>
History
Date User Action Args
2017-07-27 20:09:18madphysicistsetrecipients: + madphysicist, rhettinger, r.david.murray, docs@python
2017-07-27 20:09:18madphysicistlinkissue31042 messages
2017-07-27 20:09:18madphysicistcreate