New submission from Sergey Shepelev <[email protected]>: As greenlet docs say, their switch accepts both *args and **kwargs.
https://greenlet.readthedocs.org/en/latest/greenlet.html?highlight=switch#switching g.switch(*args, **kwargs) Eventlet relies on that and passes some kwargs. Currently, a lot of Eventlet tests fail like this: ====================================================================== FAIL: test_025_accept_errors (tests.wsgi_test.TestHttpd) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/temoto/dev/github.com/eventlet/eventlet/tests/wsgi_test.py", line 762, in test_025_accept_errors self.logfile.getvalue()) AssertionError: Traceback (most recent call last): File "/home/temoto/dev/github.com/eventlet/eventlet/eventlet/hubs/hub.py", line 346, in fire_timers timer() File "/home/temoto/dev/github.com/eventlet/eventlet/eventlet/hubs/timer.py", line 56, in __call__ cb(*args, **kw) TypeError: switch() got 4 unexpected keyword arguments It is so awesome that you guys added stackless support in 2.0; how do you think would it be possible to fix this compatibility also? If someone would briefly describe state of affairs with your unbound_method() here https://bitbucket.org/pypy/pypy/src/default/lib_pypy/greenlet.py#cl-81 I could try to it myself. Thank you. ---------- nosy: +temoto status: unread -> chatting ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1521> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
