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
5fd59aa5
Commit
5fd59aa5
authored
Nov 30, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix method signatures
parent
4d7dd100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+9
-7
No files found.
Cython/Compiler/ExprNodes.py
View file @
5fd59aa5
...
@@ -3219,10 +3219,12 @@ class DictItemNode(ExprNode):
...
@@ -3219,10 +3219,12 @@ class DictItemNode(ExprNode):
def
generate_evaluation_code
(
self
,
code
):
def
generate_evaluation_code
(
self
,
code
):
self
.
key
.
generate_evaluation_code
(
code
)
self
.
key
.
generate_evaluation_code
(
code
)
self
.
value
.
generate_evaluation_code
(
code
)
self
.
value
.
generate_evaluation_code
(
code
)
def
generate_disposal_code
(
self
,
code
):
def
generate_disposal_code
(
self
,
code
,
free_temp
=
True
,
decref
=
True
):
self
.
key
.
generate_disposal_code
(
code
)
self
.
key
.
generate_disposal_code
(
self
.
value
.
generate_disposal_code
(
code
)
code
,
free_temp
=
free_temp
,
decref
=
decref
)
self
.
value
.
generate_disposal_code
(
code
,
free_temp
=
free_temp
,
decref
=
decref
)
def
__iter__
(
self
):
def
__iter__
(
self
):
return
iter
([
self
.
key
,
self
.
value
])
return
iter
([
self
.
key
,
self
.
value
])
...
@@ -4765,7 +4767,7 @@ class CloneNode(CoercionNode):
...
@@ -4765,7 +4767,7 @@ class CloneNode(CoercionNode):
def
generate_result_code
(
self
,
code
):
def
generate_result_code
(
self
,
code
):
pass
pass
def
generate_disposal_code
(
self
,
code
):
def
generate_disposal_code
(
self
,
code
,
free_temp
=
True
,
decref
=
True
):
pass
pass
def
allocate_temps
(
self
,
env
):
def
allocate_temps
(
self
,
env
):
...
@@ -4811,9 +4813,9 @@ class PersistentNode(ExprNode):
...
@@ -4811,9 +4813,9 @@ class PersistentNode(ExprNode):
self
.
arg
.
generate_disposal_code
(
code
)
self
.
arg
.
generate_disposal_code
(
code
)
self
.
generate_counter
+=
1
self
.
generate_counter
+=
1
def
generate_disposal_code
(
self
,
code
):
def
generate_disposal_code
(
self
,
code
,
free_temp
=
True
,
decref
=
True
):
if
self
.
generate_counter
==
self
.
uses
:
if
self
.
generate_counter
==
self
.
uses
:
if
self
.
type
.
is_pyobject
:
if
self
.
type
.
is_pyobject
and
decref
:
code
.
put_decref_clear
(
self
.
result
(),
self
.
ctype
())
code
.
put_decref_clear
(
self
.
result
(),
self
.
ctype
())
def
allocate_temps
(
self
,
env
,
result
=
None
):
def
allocate_temps
(
self
,
env
,
result
=
None
):
...
...
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