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
74812b83
Commit
74812b83
authored
Jun 07, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When doing lock analysis on slices, check the lock of start and end as rhs, not lhs
parent
88a80f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+7
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
74812b83
...
...
@@ -5032,6 +5032,13 @@ class SliceIndexNode(ExprNode):
index
=
not_a_constant
return
self
.
base
.
inferable_item_node
(
index
)
def
ensure_subexpr_lhs_locked
(
self
,
env
):
self
.
base
.
ensure_lhs_locked
(
env
)
if
self
.
start
:
self
.
start
.
ensure_rhs_locked
(
env
)
elif
self
.
stop
:
self
.
stop
.
ensure_rhs_locked
(
env
)
def
may_be_none
(
self
):
base_type
=
self
.
base
.
type
if
base_type
:
...
...
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