[New-bugs-announce] [issue31417] Use the enumerate function where appropriate

Mark Byrne report at bugs.python.org
Mon Sep 11 06:43:46 EDT 2017


New submission from Mark Byrne:

To make code explicit and more readable

Use the enumerate function to replace occurrences of the pattern:

for i in range(len(sources)):
    src = sources[i]

----------
messages: 301871
nosy: Mark Byrne
priority: normal
severity: normal
status: open
title: Use the enumerate function where appropriate
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31417>
_______________________________________


More information about the New-bugs-announce mailing list