Support Python 3.5 and -builtin.
PyAsyncMethods is a new member in PyHeapTypeObject. Closes#539
This commit is contained in:
parent
7e40e523c3
commit
ef001de524
2 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue