projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82249f2
)
don't loose outer closure scope while we still need it
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 30 Apr 2009 16:23:32 +0000
(18:23 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 30 Apr 2009 16:23:32 +0000
(18:23 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 0f784d811740aaeffb23a877b57157b9f2479c68..a43e5168cb4d3ef86c49163cb30cd1770bbc79a3 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-1069,6
+1069,8
@@
class FuncDefNode(StatNode, BlockNode):
outer_scope_cname,
env.scope_class.type.declaration_code(''),
Naming.self_cname))
+ code.put_incref(outer_scope_cname, py_object_type)
+ code.put_giveref(outer_scope_cname)
# ----- Fetch arguments
self.generate_argument_parsing_code(env, code)
# If an argument is assigned to in the body, we must