[pypy-commit] pypy py3.5-async: Change __next__ to __anext__ in coroutine

raffael_t pypy.commits at gmail.com
Wed Aug 17 13:01:53 EDT 2016


Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5-async
Changeset: r86255:bc47d0d39227
Date: 2016-08-17 19:01 +0200
http://bitbucket.org/pypy/pypy/changeset/bc47d0d39227/

Log:	Change __next__ to __anext__ in coroutine

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -801,7 +801,7 @@
     __repr__   = interp2app(Coroutine.descr__repr__),
     __reduce__   = interp2app(Coroutine.descr__reduce__),
     __setstate__ = interp2app(Coroutine.descr__setstate__),
-    __next__   = interp2app(Coroutine.descr_next,
+    __anext__   = interp2app(Coroutine.descr_next,
                             descrmismatch='__anext__'),
     send       = interp2app(Coroutine.descr_send,
                             descrmismatch='send'),


More information about the pypy-commit mailing list