[pypy-issue] [issue1521] greenlet compatibility: .switch does not accept **kwargs

Armin Rigo tracker at bugs.pypy.org
Fri Jun 28 18:47:06 CEST 2013


Armin Rigo <armin.rigo at gmail.com> added the comment:

This was not the case in "my" version of greenlet, and it must have been added
later.  The arguments to switch() are sent either to the starting function if
the greenlet was not started yet, or as the return value of another switch() if
it was started already.  I guess it only makes sense to pass **kwargs when we're
in the first case?  Indeed, how would a function call return some keyword
arguments?  (It's already a bit of a hack because if there are more than one
*args then a tuple is returned.)

----------
nosy: +arigo

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


More information about the pypy-issue mailing list