[docs] [issue31042] Inconsistency in documentation of operator.index
R. David Murray
report at bugs.python.org
Thu Jul 27 16:04:34 EDT 2017
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 at bugs.python.org>
<http://bugs.python.org/issue31042>
_______________________________________
More information about the docs
mailing list