New submission from Alex Gaynor <[email protected]>:
Code to reproduce: this is extracted from openstack-eventlet
import sys
from eventlet import GreenPool
class ContextPool(GreenPool):
"GreenPool subclassed to kill its coros when it gets gc'ed"
def __enter__(self):
return self
def __exit__(self, type, value, traceback):
for coro in list(self.coroutines_running):
coro.kill()
def _noop():
pass
def main(argv):
with ContextPool(3) as pool:
pool.spawn(_noop)
if __name__ == "__main__":
main(sys.argv)
----------
messages: 5958
nosy: agaynor, pypy-issue
priority: bug
status: unread
title: eventlet errors on PyPy, but not CPython
________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1549>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue