New issue 3161: set is missing __r*__ (rand, ror...) methods
https://bitbucket.org/pypy/pypy/issues/3161/set-is-missing-__r-__-rand-ror-methods

Michał Górny:

While attempting to import [snakeoil](https://github.com/pkgcore/snakeoil) with 
PyPy3, I’ve been getting errors such as the following:

```
________________________________________________ ERROR collecting 
tests/module/test_containers.py 
_________________________________________________
tests/module/test_containers.py:5: in <module>
    from snakeoil import containers
.tox/pypy3/site-packages/snakeoil/containers.py:41: in <module>
    class SetMixin(object):
.tox/pypy3/site-packages/snakeoil/containers.py:59: in SetMixin
    @steal_docs(set)
.tox/pypy3/site-packages/snakeoil/klass.py:598: in inner
    obj = getattr(target, target_name)
E   AttributeError: type object 'set' has no attribute '__rand__'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error 
during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
```

FWICS, the missing methods for `set` objects include `__rand__`, `__ror__`, 
`__rxor__`, `__rsub__`, `__radd__`.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to