from __pypy__ import tproxy
def f(operation, *args, **kwargs):
if operation == '__add__':
return 42
raise AttributeError
i = tproxy(list, f)
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-99dae3b3b9aa> in <module>() ----> 1 i = tproxy(list, f) TypeError: 'list' object could not be wrapped