New submission from Scott Dial <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2831> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com