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
Gwenaël Samain
cython
Commits
4510467d
Commit
4510467d
authored
6 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair name lookup in classes for Py3.6+ after optimising module name lookups.
parent
340bad0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+9
-1
No files found.
Cython/Utility/ObjectHandling.c
View file @
4510467d
...
@@ -1122,12 +1122,14 @@ static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name); /*pro
...
@@ -1122,12 +1122,14 @@ static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name); /*pro
//@requires: Exceptions.c::PyErrExceptionMatches
//@requires: Exceptions.c::PyErrExceptionMatches
static
PyObject
*
__Pyx_GetGlobalNameAfterAttributeLookup
(
PyObject
*
name
)
{
static
PyObject
*
__Pyx_GetGlobalNameAfterAttributeLookup
(
PyObject
*
name
)
{
PyObject
*
result
;
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_PyThreadState_assign
if
(
unlikely
(
!
__Pyx_PyErr_ExceptionMatches
(
PyExc_AttributeError
)))
if
(
unlikely
(
!
__Pyx_PyErr_ExceptionMatches
(
PyExc_AttributeError
)))
return
NULL
;
return
NULL
;
__Pyx_PyErr_Clear
();
__Pyx_PyErr_Clear
();
return
__Pyx__GetModuleGlobalName
(
name
);
__Pyx_GetModuleGlobalNameUncached
(
result
,
name
);
return
result
;
}
}
static
PyObject
*
__Pyx__GetNameInClass
(
PyObject
*
nmspace
,
PyObject
*
name
)
{
static
PyObject
*
__Pyx__GetNameInClass
(
PyObject
*
nmspace
,
PyObject
*
name
)
{
...
@@ -1165,9 +1167,15 @@ static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
...
@@ -1165,9 +1167,15 @@ static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
(likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) : \
(likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) : \
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value); \
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value); \
}
}
#define __Pyx_GetModuleGlobalNameUncached(var, name) { \
PY_UINT64_T __pyx_dict_version; \
PyObject *__pyx_dict_cached_value; \
(var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value); \
}
static
PyObject
*
__Pyx__GetModuleGlobalName
(
PyObject
*
name
,
PY_UINT64_T
*
dict_version
,
PyObject
**
dict_cached_value
);
/*proto*/
static
PyObject
*
__Pyx__GetModuleGlobalName
(
PyObject
*
name
,
PY_UINT64_T
*
dict_version
,
PyObject
**
dict_cached_value
);
/*proto*/
#else
#else
#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
static
CYTHON_INLINE
PyObject
*
__Pyx__GetModuleGlobalName
(
PyObject
*
name
);
/*proto*/
static
CYTHON_INLINE
PyObject
*
__Pyx__GetModuleGlobalName
(
PyObject
*
name
);
/*proto*/
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
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