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
2ca582e4
Commit
2ca582e4
authored
Aug 30, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid generating a PyMethodDef entry for the newly implemented CyFunction methods
parent
2eb51aab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+2
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
2ca582e4
...
...
@@ -1975,12 +1975,13 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
generate_method_table
(
self
,
env
,
code
):
if
env
.
is_c_class_scope
and
not
env
.
pyfunc_entries
:
return
binding
=
env
.
directives
[
'binding'
]
code
.
putln
(
""
)
code
.
putln
(
"static PyMethodDef %s[] = {"
%
(
env
.
method_table_cname
))
for
entry
in
env
.
pyfunc_entries
:
if
not
entry
.
fused_cfunction
:
if
not
entry
.
fused_cfunction
and
not
(
binding
and
entry
.
is_overridable
)
:
code
.
put_pymethoddef
(
entry
,
","
)
code
.
putln
(
"{0, 0, 0, 0}"
)
...
...
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