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
90e852c4
Commit
90e852c4
authored
Jul 29, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generalise error message that disallows 'yield'/'await'/etc. inside of parallel sections
parent
9e65851e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+1
-2
tests/errors/e_cython_parallel.pyx
tests/errors/e_cython_parallel.pyx
+2
-2
No files found.
Cython/Compiler/TypeInference.py
View file @
90e852c4
...
...
@@ -250,8 +250,7 @@ class MarkParallelAssignments(EnvTransform):
def
visit_YieldExprNode
(
self
,
node
):
if
self
.
parallel_block_stack
:
error
(
node
.
pos
,
"Yield not allowed in parallel sections"
)
error
(
node
.
pos
,
"'%s' not allowed in parallel sections"
%
node
.
expr_keyword
)
return
node
def
visit_ReturnStatNode
(
self
,
node
):
...
...
tests/errors/e_cython_parallel.pyx
View file @
90e852c4
...
...
@@ -168,8 +168,8 @@ e_cython_parallel.pyx:55:9: local variable 'y' referenced before assignment
e_cython_parallel.pyx:60:6: Reduction operator '*' is inconsistent with previous reduction operator '+'
e_cython_parallel.pyx:62:36: cython.parallel.parallel() does not take positional arguments
e_cython_parallel.pyx:65:36: Invalid keyword argument: invalid
e_cython_parallel.pyx:73:12:
Yield
not allowed in parallel sections
e_cython_parallel.pyx:77:16:
Yield
not allowed in parallel sections
e_cython_parallel.pyx:73:12:
'yield'
not allowed in parallel sections
e_cython_parallel.pyx:77:16:
'yield'
not allowed in parallel sections
e_cython_parallel.pyx:97:19: Cannot assign to private of outer parallel block
e_cython_parallel.pyx:98:19: Cannot assign to private of outer parallel block
e_cython_parallel.pyx:104:6: Reductions not allowed for parallel blocks
...
...
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