[Python-Dev] an oddball alternative name for enumerate()

Fred L. Drake, Jr. fdrake@acm.org
Fri, 26 Apr 2002 10:45:09 -0400

Andrew Koenig writes:
 > What does the function do?  It attaches a serial number to each
 > element of a sequence.  So my first thought was that it should
 > be named serialize(), but of course that sounds like it's related
 > to parallel processing.

Or still worse, marshaling data to a stream.

 > But what about inventory()?  My mental image is of someone going
 > around with a bunch of numbered stickers, attaching one to
 > every relevant object.

Hmmm...  sounds like this function, whatever it gets called, will
require a cartoon in the manual.  ;-)


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation