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
547102ea
Commit
547102ea
authored
Jan 13, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type inference comments, enable test.
parent
714f5e86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-0
tests/run/py_ucs4_type.pyx
tests/run/py_ucs4_type.pyx
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
547102ea
...
@@ -1759,6 +1759,8 @@ class NameNode(AtomicExprNode):
...
@@ -1759,6 +1759,8 @@ class NameNode(AtomicExprNode):
self
.
inferred_type
.
is_builtin_type
):
self
.
inferred_type
.
is_builtin_type
):
# assume that type inference is smarter than the static entry
# assume that type inference is smarter than the static entry
type
=
self
.
inferred_type
type
=
self
.
inferred_type
if
entry
.
type
!=
self
.
inferred_type
:
print
self
.
pos
,
entry
.
type
,
self
.
inferred_type
self
.
type
=
type
self
.
type
=
type
def
check_identifier_kind
(
self
):
def
check_identifier_kind
(
self
):
...
...
tests/run/py_ucs4_type.pyx
View file @
547102ea
...
@@ -253,7 +253,7 @@ def iter_and_in():
...
@@ -253,7 +253,7 @@ def iter_and_in():
print
c
print
c
#
@cython.test_fail_if_path_exists('//ForInStatNode')
@
cython
.
test_fail_if_path_exists
(
'//ForInStatNode'
)
def
iter_inferred
():
def
iter_inferred
():
"""
"""
>>> iter_inferred()
>>> iter_inferred()
...
...
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