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
2bd035ea
Commit
2bd035ea
authored
Jul 02, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to del
parent
6ee3cf6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-3
No files found.
Cython/Compiler/Nodes.py
View file @
2bd035ea
...
...
@@ -3386,10 +3386,12 @@ class DelStatNode(StatNode):
def
analyse_expressions
(
self
,
env
):
for
arg
in
self
.
args
:
arg
.
analyse_target_expression
(
env
,
None
)
if
arg
.
type
.
is_pyobject
or
(
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
)
:
if
arg
.
type
.
is_pyobject
:
self
.
gil_check
(
env
)
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
pass
else
:
error
(
arg
.
pos
,
"Deletion of non-Python object"
)
error
(
arg
.
pos
,
"Deletion of non-Python
, non-C++
object"
)
#arg.release_target_temp(env)
gil_message
=
"Deleting Python object"
...
...
@@ -3399,7 +3401,8 @@ class DelStatNode(StatNode):
if
arg
.
type
.
is_pyobject
:
arg
.
generate_deletion_code
(
code
)
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
code
.
putln
(
"delete %s"
%
arg
.
name
)
arg
.
generate_result_code
()
code
.
putln
(
"delete %s"
%
arg
.
result
())
# else error reported earlier
def
annotate
(
self
,
code
):
...
...
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