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
Xavier Thompson
cython
Commits
dbdfe3c6
Commit
dbdfe3c6
authored
Jul 13, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up comments for BoolBinopNode
parent
20e33d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+19
-6
No files found.
Cython/Compiler/ExprNodes.py
View file @
dbdfe3c6
...
...
@@ -9614,12 +9614,6 @@ class PowNode(NumBinopNode):
return
super
(
PowNode
,
self
).
py_operation_function
(
code
)
# Note: This class is temporarily "shut down" into an ineffective temp
# allocation mode.
#
# More sophisticated temp reuse was going on before, one could have a
# look at adding this again after /all/ classes are converted to the
# new temp scheme. (The temp juggling cannot work otherwise).
class
BoolBinopNode
(
ExprNode
):
# Short-circuiting boolean operation.
#
...
...
@@ -9747,6 +9741,18 @@ class BoolBinopNode(ExprNode):
class
BoolBinopResultNode
(
ExprNode
):
"""
Intermediate result of a short-circuiting and/or expression.
Tests the result for 'truthiness' and takes care of coercing the final result
of the overall expression to the target type.
Note that this node provides the same code generation method as
GenericBoolBinopNode to simplify expression nesting.
arg ExprNode the argument to test
value ExprNode the coerced result value node
"""
subexprs
=
[
'arg'
,
'value'
]
is_temp
=
True
arg
=
None
...
...
@@ -9826,6 +9832,13 @@ class BoolBinopResultNode(ExprNode):
class
GenericBoolBinopNode
(
BoolBinopNode
):
"""
BoolBinopNode with arbitrary non-bool result type.
Note that this node provides the same code generation method as
BoolBinopResultNode to simplify expression nesting.
operator string "and"/"or"
operand1 GenericBoolBinopNode/BoolBinopResultNode left operand
operand2 GenericBoolBinopNode/BoolBinopResultNode right operand
"""
subexprs
=
[
'operand1'
,
'operand2'
]
is_temp
=
True
...
...
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