Support Python 3.5 and -builtin.

PyAsyncMethods is a new member in PyHeapTypeObject.
Closes#539
This commit is contained in:
William S Fulton 2015-10-10 00:38:52 +01:00
commit ef001de524
2 changed files with 13 additions and 0 deletions

View file

@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
Version 3.0.8 (in progress)
===========================
2015-10-10: wsfulton
[Python] #539 - Support Python 2.5 and -builtin. PyAsyncMethods is a new
member in PyHeapTypeObject.
2015-10-06: ianlancetaylor
[Go] Don't emit a constructor function for a director
class with an abstract method, since the function will

View file

@ -4052,6 +4052,15 @@ public:
Printv(f, "#endif\n", NIL);
Printf(f, " },\n");
// PyAsyncMethods as_async
Printv(f, "#if PY_VERSION_HEX >= 0x03050000\n", NIL);
Printf(f, " {\n");
printSlot(f, getSlot(n, "feature:python:am_await"), "am_await", "unaryfunc");
printSlot(f, getSlot(n, "feature:python:am_aiter"), "am_aiter", "unaryfunc");
printSlot(f, getSlot(n, "feature:python:am_anext"), "am_anext", "unaryfunc");
Printf(f, " },\n");
Printv(f, "#endif\n", NIL);
// PyNumberMethods as_number
Printf(f, " {\n");
printSlot(f, getSlot(n, "feature:python:nb_add"), "nb_add", "binaryfunc");