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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1de01311
Commit
1de01311
authored
Apr 07, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
e0fc3131
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+2
-0
No files found.
Cython/Compiler/TypeInference.py
View file @
1de01311
...
@@ -255,6 +255,7 @@ class SimpleAssignmentTypeInferer(object):
...
@@ -255,6 +255,7 @@ class SimpleAssignmentTypeInferer(object):
entries_by_dependancy
[
dep
].
add
(
entry
)
entries_by_dependancy
[
dep
].
add
(
entry
)
else
:
else
:
ready_to_infer
.
append
(
entry
)
ready_to_infer
.
append
(
entry
)
def
resolve_dependancy
(
dep
):
def
resolve_dependancy
(
dep
):
if
dep
in
entries_by_dependancy
:
if
dep
in
entries_by_dependancy
:
for
entry
in
entries_by_dependancy
[
dep
]:
for
entry
in
entries_by_dependancy
[
dep
]:
...
@@ -263,6 +264,7 @@ class SimpleAssignmentTypeInferer(object):
...
@@ -263,6 +264,7 @@ class SimpleAssignmentTypeInferer(object):
if
not
entry_deps
and
entry
!=
dep
:
if
not
entry_deps
and
entry
!=
dep
:
del
dependancies_by_entry
[
entry
]
del
dependancies_by_entry
[
entry
]
ready_to_infer
.
append
(
entry
)
ready_to_infer
.
append
(
entry
)
# Try to infer things in order...
# Try to infer things in order...
while
True
:
while
True
:
while
ready_to_infer
:
while
ready_to_infer
:
...
...
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