Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Wednesday, July 21st, 2004

Subject:rockin' with itertools
Time:12:11 pm.
I have four very large related ascii files. They contain four different components of an image, in (row, column) format. I want an iterator which returns a list:
[r, c, file0[r,c], file1[r,c], file2[r,c], file3[r,c]]
without loading all four files into memory.
Abuse of itertools behind this cutCollapse )
Comments: Read 2 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image