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
Kirill Smelkov
cython
Commits
8cbdb269
Commit
8cbdb269
authored
Nov 24, 2017
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treat entries with constant type as constant
parent
20ff6c2a
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 @
8cbdb269
...
@@ -2074,7 +2074,11 @@ class NameNode(AtomicExprNode):
...
@@ -2074,7 +2074,11 @@ class NameNode(AtomicExprNode):
def
check_const
(
self
):
def
check_const
(
self
):
entry
=
self
.
entry
entry
=
self
.
entry
if
entry
is
not
None
and
not
(
entry
.
is_const
or
entry
.
is_cfunction
or
entry
.
is_builtin
):
if
entry
is
not
None
and
not
(
entry
.
is_const
or
entry
.
is_cfunction
or
entry
.
is_builtin
or
entry
.
type
.
is_const
):
self
.
not_const
()
self
.
not_const
()
return
False
return
False
return
True
return
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