Serhiy Storchaka added the comment:

Here is a patch. Now the code of operator.index() becomes even more 
complicated. Perhaps you want suggest other wording for documentation?

Some code in stdlib (_pyio.py, bz2.py, connection.py) uses a.__index__() 
instead of type(a).__index__(a) (with replacing AttributeError to TypeError). 
Is it worth to change?

----------
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file31273/operator_index.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18712>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to