Project

General

Profile

Actions

Bug #9297

open

Py3: Remove unnecessary conversions to list

Added by Joseph Pizzi over 2 years ago. Updated about 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/21/2021
Due date:
% Done:

0%

Estimated time:
0.50 h
Chirp Version:
daily
Model affected:
Development
Platform:
Windows
Debug Log:
I read the instructions above:

Description

Dispite 2to3's xrange converter, not all instances of range need to be wrapped in conversion to list.

For example,
@for i in reverse(range(0, len(bcd_array))):@
is just fine without the range being placed in a list.
2to3 replaces the above line with,
@for i in reversed(list(range(0,l len(bcd_array)))):@

Actions

Also available in: Atom PDF