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
1a6cfa09
Commit
1a6cfa09
authored
Jul 04, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
2bd035ea
e692110d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+3
-1
Cython/Compiler/Parsing.pxd
Cython/Compiler/Parsing.pxd
+1
-0
Cython/Compiler/Tests/TestDecorators.py
Cython/Compiler/Tests/TestDecorators.py
+0
-1
No files found.
Cython/Compiler/Nodes.py
View file @
1a6cfa09
...
...
@@ -3390,6 +3390,8 @@ class DelStatNode(StatNode):
self
.
gil_check
(
env
)
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
pass
elif
arg
.
type
.
is_cpp_class
:
error
(
arg
.
pos
,
"Deletion of non-heap C++ object"
)
else
:
error
(
arg
.
pos
,
"Deletion of non-Python, non-C++ object"
)
#arg.release_target_temp(env)
...
...
@@ -3402,7 +3404,7 @@ class DelStatNode(StatNode):
arg
.
generate_deletion_code
(
code
)
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
arg
.
generate_result_code
()
code
.
putln
(
"delete %s"
%
arg
.
result
())
code
.
putln
(
"delete %s
;
"
%
arg
.
result
())
# else error reported earlier
def
annotate
(
self
,
code
):
...
...
Cython/Compiler/Parsing.pxd
View file @
1a6cfa09
...
...
@@ -27,6 +27,7 @@ cpdef p_typecast(PyrexScanner s)
cpdef
p_sizeof
(
PyrexScanner
s
)
cpdef
p_yield_expression
(
PyrexScanner
s
)
cpdef
p_power
(
PyrexScanner
s
)
cpdef
p_new_expr
(
PyrexScanner
s
)
cpdef
p_trailer
(
PyrexScanner
s
,
node1
)
cpdef
p_call
(
PyrexScanner
s
,
function
)
cpdef
p_index
(
PyrexScanner
s
,
base
)
...
...
Cython/Compiler/Tests/TestDecorators.py
View file @
1a6cfa09
...
...
@@ -12,7 +12,6 @@ class TestDecorator(TransformTest):
def decorated():
pass
"""
)
self
.
assertCode
(
u"""
def decorator(fun):
return fun
...
...
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