Python 'for' loop is memory inefficient
David Robinow
drobinow at gmail.com
Mon Aug 17 10:04:14 EDT 2009
On Sun, Aug 16, 2009 at 11:10 PM, Nobody<nobody at nowhere.com> 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