]> git.ipfire.org Git - thirdparty/tornado.git/commit
Support coroutines compiled with cython
authorBen Darnell <ben@bendarnell.com>
Mon, 14 Sep 2015 03:13:43 +0000 (23:13 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 14 Sep 2015 03:13:43 +0000 (23:13 -0400)
commit3463036d750bcccf0977321f73c9a07cecfe2e7e
tree53f7e13971203d942e0f16b6309bb24fd3bd7795
parentf302e7e9d74097401a42bdb240ff30a92e565360
Support coroutines compiled with cython

On Python 3.5, this means supporting awaitables that are not
iterables. On older versions of python, this includes
* In `@gen.coroutine`, recognizing cython's coroutines
  via the backports_abc module.
* At various points in the gen module, recognize cython's
  use of `StopIteration.args[0]` in place of `StopIteration.value`.
* Implementing Future.__await__ and _wrap_awaitable for
  pre-3.3 versions of python.
maint/test/cython/.gitignore [new file with mode: 0644]
maint/test/cython/MANIFEST.in [new file with mode: 0644]
maint/test/cython/cythonapp.pyx [new file with mode: 0644]
maint/test/cython/cythonapp_test.py [new file with mode: 0644]
maint/test/cython/pythonmodule.py [new file with mode: 0644]
maint/test/cython/setup.py [new file with mode: 0644]
maint/test/cython/tox.ini [new file with mode: 0644]
tornado/concurrent.py
tornado/gen.py