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
eb40e5d1
Commit
eb40e5d1
authored
5 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let TempResultFromStatNode know when its result cannot be None.
parent
477c152e
nogil_cypclass_acthon_on_rc8v3
snippets_article
nogil_cypclass_rc8
nogil_cypclass_lock_on_rc8v3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cython/Compiler/UtilNodes.py
Cython/Compiler/UtilNodes.py
+3
-0
No files found.
Cython/Compiler/UtilNodes.py
View file @
eb40e5d1
...
...
@@ -354,6 +354,9 @@ class TempResultFromStatNode(ExprNodes.ExprNode):
self
.
body
=
self
.
body
.
analyse_expressions
(
env
)
return
self
def
may_be_none
(
self
):
return
self
.
result_ref
.
may_be_none
()
def
generate_result_code
(
self
,
code
):
self
.
result_ref
.
result_code
=
self
.
result
()
self
.
body
.
generate_execution_code
(
code
)
This diff is collapsed.
Click to expand it.
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