Skip to content

Commit

Permalink
Avoid useless copy. We only ever modify the current index, not anythi…
Browse files Browse the repository at this point in the history
…ng we still need for the iteration.
  • Loading branch information
scoder committed Nov 25, 2024
1 parent 1ca4dc9 commit 7bde3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Compiler/ExprNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5000,7 +5000,7 @@ def analyse_types(self, env, getting=True):
return self

axis_idx = 0
for i, index in enumerate(indices[:]):
for i, index in enumerate(indices):
index = index.analyse_types(env)
if index.is_none:
self.is_memview_slice = True
Expand Down

0 comments on commit 7bde3fa

Please sign in to comment.