GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] Adding start to enumerate()
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Adding start to enumerate()

[Python-Dev] Adding start to enumerate()

Georg Brandl g.brandl at gmx.net
Mon May 12 00:20:51 CEST 2008

  • Previous message: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.
  • Next message: [Python-Dev] Adding start to enumerate()
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

I believe the following is a common use-case for enumerate()
(at least, I've used it quite some times):

for lineno, line in enumerate(fileobject):
     ...

For this, it would be nice to have a start parameter for enumerate().
The changes are minimal -- okay for 2.6?

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.


  • Previous message: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.
  • Next message: [Python-Dev] Adding start to enumerate()
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.