New issue 2400: PyPy 3.5 operator requires modification

Connor Shearwood:

The `operator` module in `pypy/modules` is currently incomplete. It currently 
attempts to merge the behaviour of CPython's stdlib `operator` and `_operator`. 
As the lib-python version of `operator` imports from `_operator`, the pypy 
specific `operator` should be renamed to `_operator` and emulate the 
functionality from CPython's `_operator`. This will reduce the amount of 
reimplementation (the existing `interp_operator` already implements most/all of 
`_operator`) whilst allowing conformance to the existing implementation. This 
will also fix `hmac` on pypy 3.5, as it depends on `operator._compare_digest` 
which is currently unimplemented.

pypy-issue mailing list

Reply via email to