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
5ae635eb
Commit
5ae635eb
authored
May 05, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor convenience change in temp code
parent
ac7755f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Compiler/UtilNodes.py
Cython/Compiler/UtilNodes.py
+5
-2
No files found.
Cython/Compiler/UtilNodes.py
View file @
5ae635eb
...
@@ -14,9 +14,12 @@ class TempHandle(object):
...
@@ -14,9 +14,12 @@ class TempHandle(object):
# THIS IS DEPRECATED, USE LetRefNode instead
# THIS IS DEPRECATED, USE LetRefNode instead
temp
=
None
temp
=
None
needs_xdecref
=
False
needs_xdecref
=
False
def
__init__
(
self
,
type
):
def
__init__
(
self
,
type
,
needs_cleanup
=
None
):
self
.
type
=
type
self
.
type
=
type
self
.
needs_cleanup
=
type
.
is_pyobject
if
needs_cleanup
is
None
:
self
.
needs_cleanup
=
type
.
is_pyobject
else
:
self
.
needs_cleanup
=
needs_cleanup
def
ref
(
self
,
pos
):
def
ref
(
self
,
pos
):
return
TempRefNode
(
pos
,
handle
=
self
,
type
=
self
.
type
)
return
TempRefNode
(
pos
,
handle
=
self
,
type
=
self
.
type
)
...
...
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