[New-bugs-announce] [issue2831] Adding start to enumerate()

Scott Dial report at bugs.python.org
Mon May 12 05:49:35 CEST 2008

New submission from Scott Dial <scott at scottdial.com>:

Georg Brandel suggested enumerate() should have the ability to start on
an arbitrary number (instead of always starting at 0). I suggest such a
parameter should be keyword-only. Attached is a patch to add such a
feature along with added test cases. Documentation still needs to be
updated, but I wasn't sure how best to handle that anyways.

I wasn't sure how best to handle a keyword-only argument, so I'd be
interested to know if there is a better way.

components: Interpreter Core
files: enumerate.diff
keywords: patch
messages: 66705
nosy: scottdial
severity: normal
status: open
title: Adding start to enumerate()
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10299/enumerate.diff

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list