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
10549143
Commit
10549143
authored
4 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleanup.
parent
fa0a316e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+2
-4
No files found.
Cython/Utility/ObjectHandling.c
View file @
10549143
...
...
@@ -318,17 +318,15 @@ static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
static
PyObject
*
__Pyx_PyObject_GetItem
(
PyObject
*
obj
,
PyObject
*
key
)
{
PyTypeObject
*
tp
=
Py_TYPE
(
obj
);
PySequenceMethods
*
sm
;
PyMappingMethods
*
mm
=
tp
->
tp_as_mapping
;
PySequenceMethods
*
sm
=
tp
->
tp_as_sequence
;
if
(
likely
(
mm
&&
mm
->
mp_subscript
))
{
return
mm
->
mp_subscript
(
obj
,
key
);
}
sm
=
tp
->
tp_as_sequence
;
if
(
likely
(
sm
&&
sm
->
sq_item
))
{
return
__Pyx_PyObject_GetIndex
(
obj
,
key
);
}
return
__Pyx_PyObject_GetItem_Slow
(
obj
,
key
);
}
#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