Python 'for' loop is memory inefficient

David Robinow drobinow at
Mon Aug 17 16:04:14 CEST 2009

On Sun, Aug 16, 2009 at 11:10 PM, Nobody<nobody at> wrote:
> Java also has iterators; it's more a case of people coming from C and BASIC.
> Although, some of those may have come *through* Java without abandoning
> old habits. You see the same thing with people coming from BASIC to C and
> writing:
>        #define NUM_DATES 50
>        int day[NUM_DATES], month[NUM_DATES], year[NUM_DATES];
> rather than defining a "struct".
> Sometimes referred to as "I know ten languages and can write in BASIC in
> all of them".

Ha, ha. I learned that pattern in Fortran. I confess to having written
code like that in C. I think I've gotten over it.

More information about the Python-list mailing list