Commit 46f684e5 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.23.x'

parents 25ec392a a873979d
...@@ -44,6 +44,9 @@ Bugs fixed ...@@ -44,6 +44,9 @@ Bugs fixed
* Misnamed PEP 492 coroutine property ``cr_yieldfrom`` renamed to * Misnamed PEP 492 coroutine property ``cr_yieldfrom`` renamed to
``cr_await`` to match CPython. ``cr_await`` to match CPython.
* Compiler crash on ``yield`` in signature annotations and default
argument values. Both are forbidden now.
0.23 (2015-08-08) 0.23 (2015-08-08)
================= =================
......
...@@ -560,7 +560,8 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { ...@@ -560,7 +560,8 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
#endif #endif
{ {
if (value == Py_None) if (value == Py_None)
ret = PyIter_Next(yf); // FIXME! // FIXME - is this the right thing to do?
ret = PyIter_Next(yf);
else else
ret = __Pyx_PyObject_CallMethod1(yf, PYIDENT("send"), value); ret = __Pyx_PyObject_CallMethod1(yf, PYIDENT("send"), value);
} }
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
# tag: pep492, asyncfor, await # tag: pep492, asyncfor, await
import types
def run_async(coro): def run_async(coro):
#assert coro.__class__ is types.GeneratorType #assert coro.__class__ is types.GeneratorType
assert coro.__class__.__name__ in ('coroutine', 'GeneratorWrapper'), coro.__class__.__name__ assert coro.__class__.__name__ in ('coroutine', 'GeneratorWrapper'), coro.__class__.__name__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment