for loop
Diez B. Roggisch
deetsNOSPAM at web.de
Sun Dec 12 13:04:03 EST 2004
More information about the Python-list mailing list
Sun Dec 12 13:04:03 EST 2004
- Previous message (by thread): Web form validators for Python (RequiredFieldValidator anyone?)
- Next message (by thread): for loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> for i in range(morethanzero, n): > ... > >> for i= 5 to len(var) > > for i in range(5, len(var)): > ... Better use xrange - it doesn't create an actual list, but instead an iterator enumerating the elements. That way more memory and cpu efficient. -- Regards, Diez B. Roggisch
- Previous message (by thread): Web form validators for Python (RequiredFieldValidator anyone?)
- Next message (by thread): for loop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list