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
69cb05b3
Commit
69cb05b3
authored
Apr 18, 2022
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
bbcb924e
60ca7eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Cython/Utility/ExtensionTypes.c
Cython/Utility/ExtensionTypes.c
+7
-1
No files found.
Cython/Utility/ExtensionTypes.c
View file @
69cb05b3
...
@@ -421,7 +421,10 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
...
@@ -421,7 +421,10 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
#if CYTHON_USE_PYTYPE_LOOKUP
#if CYTHON_USE_PYTYPE_LOOKUP
getstate
=
_PyType_Lookup
((
PyTypeObject
*
)
type_obj
,
PYIDENT
(
"__getstate__"
));
getstate
=
_PyType_Lookup
((
PyTypeObject
*
)
type_obj
,
PYIDENT
(
"__getstate__"
));
#else
#else
getstate
=
__Pyx_PyObject_GetAttrStr
(
type_obj
,
PYIDENT
(
"__getstate__"
));
getstate
=
__Pyx_PyObject_GetAttrStrNoError
(
type_obj
,
PYIDENT
(
"__getstate__"
));
if
(
!
getstate
&&
PyErr_Occurred
())
{
goto
__PYX_BAD
;
}
#endif
#endif
if
(
getstate
)
{
if
(
getstate
)
{
// Python 3.11 introduces object.__getstate__. Because it's version-specific failure to find it should not be an error
// Python 3.11 introduces object.__getstate__. Because it's version-specific failure to find it should not be an error
...
@@ -429,6 +432,9 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
...
@@ -429,6 +432,9 @@ static int __Pyx_setup_reduce(PyObject* type_obj) {
object_getstate
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__getstate__"
));
object_getstate
=
_PyType_Lookup
(
&
PyBaseObject_Type
,
PYIDENT
(
"__getstate__"
));
#else
#else
object_getstate
=
__Pyx_PyObject_GetAttrStrNoError
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__getstate__"
));
object_getstate
=
__Pyx_PyObject_GetAttrStrNoError
((
PyObject
*
)
&
PyBaseObject_Type
,
PYIDENT
(
"__getstate__"
));
if
(
!
object_getstate
&&
PyErr_Occurred
())
{
goto
__PYX_BAD
;
}
#endif
#endif
if
(
object_getstate
!=
getstate
)
{
if
(
object_getstate
!=
getstate
)
{
goto
__PYX_GOOD
;
goto
__PYX_GOOD
;
...
...
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