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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b2287d91
Commit
b2287d91
authored
Apr 23, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add another safety guard around the optimised PEP-487 implementation.
parent
b709334b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+2
-2
No files found.
Cython/Utility/ObjectHandling.c
View file @
b2287d91
...
...
@@ -1124,7 +1124,7 @@ bad:
}
static
PyObject
*
__Pyx_InitSubclassPEP487
(
PyObject
*
type_obj
,
PyObject
*
mkw
)
{
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_USE_TYPE_SLOTS &&
CYTHON_ASSUME_SAFE_MACROS &&
!CYTHON_AVOID_BORROWED_REFS
// Stripped-down version of "super(type_obj, type_obj).__init_subclass__(**mkw)" in CPython 3.8.
PyTypeObject
*
type
=
(
PyTypeObject
*
)
type_obj
;
PyObject
*
mro
=
type
->
tp_mro
;
...
...
@@ -1173,7 +1173,7 @@ bad:
Py_DECREF
(
type_obj
);
return
NULL
;
// CYTHON_USE_TYPE_SLOTS && !CYTHON_AVOID_BORROWED_REFS
// CYTHON_USE_TYPE_SLOTS &&
CYTHON_ASSUME_SAFE_MACROS &&
!CYTHON_AVOID_BORROWED_REFS
#else
// Generic fallback: "super(type_obj, type_obj).__init_subclass__(**mkw)", as used in CPython 3.8.
PyObject
*
super_type
,
*
super
,
*
func
,
*
res
;
...
...
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