re best way to enumerate something in Python

David Stockwell winexpert at hotmail.com
Wed May 26 09:39:38 EDT 2004


I'm going to try using the range function.

as in:

ID_COL, ANIMAL_COL, HOUSING_COL = range(3)

This appears to assign assign those vars as 'constants' with values of 0,1,2


David Stockwell
-------
Cell: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html

_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/





More information about the Python-list mailing list