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
e0e71d4f
Commit
e0e71d4f
authored
Dec 18, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better error messages during constant folding, forward constants also through type coercion
parent
475bc21b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
e0e71d4f
...
...
@@ -27,7 +27,8 @@ try:
except
NameError
:
from
sets
import
Set
as
set
not_a_constant
=
object
()
class
NotConstant
(
object
):
pass
# just for the name
not_a_constant
=
NotConstant
()
constant_value_not_set
=
object
()
class
ExprNode
(
Node
):
...
...
@@ -4839,6 +4840,9 @@ class CoercionNode(NewTempExprNode):
self
.
arg
=
arg
if
debug_coercion
:
print
(
"%s Coercing %s"
%
(
self
,
self
.
arg
))
def
calculate_constant_result
(
self
):
self
.
constant_result
=
self
.
arg
.
constant_result
def
annotate
(
self
,
code
):
self
.
arg
.
annotate
(
code
)
...
...
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