Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
cython
Commits
ee3d1ccb
Commit
ee3d1ccb
authored
5 years ago
by
gsamain
Browse files
Options
Download
Email Patches
Plain Diff
When doing lock analysis on slices, check the lock of start and end as rhs, not lhs
parent
2f61c5d5
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 @
ee3d1ccb
...
...
@@ -4897,6 +4897,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:
...
...
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