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
84380456
Commit
84380456
authored
Aug 16, 2010
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set CYTHON_UNUSED modifier for __index__ special method
parent
19cf712c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+3
-1
No files found.
Cython/Compiler/Nodes.py
View file @
84380456
...
@@ -1216,7 +1216,9 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -1216,7 +1216,9 @@ class FuncDefNode(StatNode, BlockNode):
is_releasebuffer_slot
=
(
self
.
entry
.
name
==
"__releasebuffer__"
and
is_releasebuffer_slot
=
(
self
.
entry
.
name
==
"__releasebuffer__"
and
self
.
entry
.
scope
.
is_c_class_scope
)
self
.
entry
.
scope
.
is_c_class_scope
)
is_buffer_slot
=
is_getbuffer_slot
or
is_releasebuffer_slot
is_buffer_slot
=
is_getbuffer_slot
or
is_releasebuffer_slot
if
is_buffer_slot
:
is_index_slot
=
(
self
.
entry
.
name
==
"__index__"
and
self
.
entry
.
scope
.
is_c_class_scope
)
if
is_buffer_slot
or
is_index_slot
:
if
'cython_unused'
not
in
self
.
modifiers
:
if
'cython_unused'
not
in
self
.
modifiers
:
self
.
modifiers
=
self
.
modifiers
+
[
'cython_unused'
]
self
.
modifiers
=
self
.
modifiers
+
[
'cython_unused'
]
...
...
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