projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9423a65
)
cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 29 Apr 2009 19:10:33 +0000
(21:10 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 29 Apr 2009 19:10:33 +0000
(21:10 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index dc405545cda76d42035d5b4776d9014ca118c117..1ea30e08c7c95a0b7a531b83ca7ac037cbce2848 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-1203,11
+1203,9
@@
class NameNode(AtomicExprNode):
code.put_xdecref(self.result(), self.ctype())
else:
code.put_decref(self.result(), self.ctype())
- if entry.is_cglobal:
+ if entry.is_cglobal
or entry.in_closure
:
code.put_giveref(rhs.py_result())
code.putln('%s = %s;' % (self.result(), rhs.result_as(self.ctype())))
- if self.type.is_pyobject and self.entry.in_closure:
- code.put_giveref(self.result())
if debug_disposal_code:
print("NameNode.generate_assignment_code:")
print("...generating post-assignment code for %s" % rhs)