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
79b46211
Commit
79b46211
authored
Dec 19, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable return value saving in finally clauses that only change the GIL status
parent
71f693f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+3
-1
No files found.
Cython/Compiler/Nodes.py
View file @
79b46211
...
...
@@ -6463,7 +6463,9 @@ class TryFinallyStatNode(StatNode):
ret_temp
=
None
if
old_label
==
return_label
and
not
self
.
finally_clause
.
is_terminator
:
# store away return value for later reuse
if
self
.
func_return_type
:
if
(
self
.
func_return_type
and
not
self
.
is_try_finally_in_nogil
and
not
isinstance
(
self
.
finally_clause
,
GILExitNode
)):
ret_temp
=
code
.
funcstate
.
allocate_temp
(
self
.
func_return_type
,
manage_ref
=
False
)
code
.
putln
(
"%s = %s;"
%
(
ret_temp
,
Naming
.
retval_cname
))
...
...
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