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
db9591ab
Commit
db9591ab
authored
8 years ago
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes a bug with unanalysed ResultRefNodes.
This fixes #1523.
parent
f5b89afa
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Cython/Compiler/UtilNodes.py
Cython/Compiler/UtilNodes.py
+1
-0
tests/run/unpack.pyx
tests/run/unpack.pyx
+10
-0
No files found.
Cython/Compiler/UtilNodes.py
View file @
db9591ab
...
@@ -149,6 +149,7 @@ class ResultRefNode(AtomicExprNode):
...
@@ -149,6 +149,7 @@ class ResultRefNode(AtomicExprNode):
def
analyse_types
(
self
,
env
):
def
analyse_types
(
self
,
env
):
if
self
.
expression
is
not
None
:
if
self
.
expression
is
not
None
:
self
.
expression
=
self
.
expression
.
analyse_types
(
env
)
self
.
type
=
self
.
expression
.
type
self
.
type
=
self
.
expression
.
type
return
self
return
self
...
...
This diff is collapsed.
Click to expand it.
tests/run/unpack.pyx
View file @
db9591ab
...
@@ -393,3 +393,13 @@ def unpack_literal_none_to_exttype():
...
@@ -393,3 +393,13 @@ def unpack_literal_none_to_exttype():
cdef
ExtType
a
,
b
,
c
,
d
cdef
ExtType
a
,
b
,
c
,
d
a
,
b
=
c
,
d
=
None
,
None
a
,
b
=
c
,
d
=
None
,
None
return
a
,
b
,
c
,
d
return
a
,
b
,
c
,
d
# Github issue #1523
def
test_unpack_resultref
():
"""
>>> test_unpack_resultref()
((1, set([])), 1, set([]))
"""
a
=
b
,
c
=
1
,
set
()
return
a
,
b
,
c
This diff is collapsed.
Click to expand it.
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