Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
c857fc3e
Commit
c857fc3e
authored
Sep 04, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable finalisers in CPython < 3.6
parent
76be61a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Cython/Utility/AsyncGen.c
Cython/Utility/AsyncGen.c
+6
-5
No files found.
Cython/Utility/AsyncGen.c
View file @
c857fc3e
...
...
@@ -25,19 +25,20 @@ static PyTypeObject *__pyx_AsyncGenType = 0;
static
int
__pyx_AsyncGen_init
(
void
);
//////////////////// AsyncGenerator
Special
////////////////////
//////////////////// AsyncGenerator
InitFinalizer
////////////////////
// this is separated out because it needs more adaptation
#if PY_VERSION_HEX < 0x030600B0
static
int
__Pyx_async_gen_init_finalizer
(
__pyx_AsyncGenObject
*
o
)
{
#if 0
// TODO: implement finalizer support in older Python versions
PyThreadState *tstate;
#endif
PyObject *finalizer;
PyObject *firstiter;
#endif
if
(
o
->
ag_hooks_inited
)
{
if
(
likely
(
o
->
ag_hooks_inited
)
)
{
return
0
;
}
...
...
@@ -53,7 +54,6 @@ static int __Pyx_async_gen_init_finalizer(__pyx_AsyncGenObject *o) {
}
firstiter = tstate->async_gen_firstiter;
#endif
if (firstiter) {
PyObject *res;
...
...
@@ -65,6 +65,7 @@ static int __Pyx_async_gen_init_finalizer(__pyx_AsyncGenObject *o) {
}
Py_DECREF(res);
}
#endif
return
0
;
}
...
...
@@ -72,7 +73,7 @@ static int __Pyx_async_gen_init_finalizer(__pyx_AsyncGenObject *o) {
//////////////////// AsyncGenerator ////////////////////
//@requires: AsyncGenerator
Special
//@requires: AsyncGenerator
InitFinalizer
//@requires: Coroutine.c::Coroutine
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment