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
Boxiang Sun
cython
Commits
90a46cc8
Commit
90a46cc8
authored
Sep 05, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #59: compiler crash when special signatures where declared with cdef
parent
1daed6c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-1
tests/errors/cdefspecial.pyx
tests/errors/cdefspecial.pyx
+12
-0
No files found.
Cython/Compiler/ModuleNode.py
View file @
90a46cc8
...
...
@@ -872,7 +872,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
else
:
code
.
put_init_var_to_py_none
(
entry
,
"p->%s"
)
entry
=
scope
.
lookup_here
(
"__new__"
)
if
entry
:
if
entry
and
entry
.
is_special
:
if
entry
.
trivial_signature
:
cinit_args
=
"o, %s, NULL"
%
Naming
.
empty_tuple
else
:
...
...
tests/errors/cdefspecial.pyx
0 → 100644
View file @
90a46cc8
cdef
class
Test
:
cdef
__cinit__
(
self
):
pass
cdef
__len__
(
self
):
pass
_ERRORS
=
u"""
3:9: Special methods must be declared with 'def', not 'cdef'
6:9: Special methods must be declared with 'def', not 'cdef'
"""
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