[pypy-issue] [issue1612] operator.__index__() is missing.

Graham Dumpleton tracker at bugs.pypy.org
Sun Sep 22 11:42:08 CEST 2013


New submission from Graham Dumpleton <Graham.Dumpleton at gmail.com>:

CPython has both the following in the operator module:

operator.index()
operator.__index__()

This is documented at:

http://docs.python.org/2/library/operator.html#operator.index

The pypy version of the operator module is missing __index__().

IOW, has 'index' here:

https://bitbucket.org/pypy/pypy/src/162d46b91e963450e3e9461b37c14860e6c49b32/pypy/
module/operator/__init__.py?at=default#cl-29

but missing '__index__' in mapping at:

https://bitbucket.org/pypy/pypy/src/162d46b91e963450e3e9461b37c14860e6c49b32/pypy/
module/operator/__init__.py?at=default#cl-46

----------
messages: 6200
nosy: GrahamDumpleton, pypy-issue
priority: bug
status: unread
title: operator.__index__() is missing.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1612>
________________________________________


More information about the pypy-issue mailing list