[Tutor] arrangement of datafile

Albert-Jan Roskam fomcl at yahoo.com
Fri Jan 10 18:11:23 CET 2014


Ok, it's clear already that the OP has a csv file so the following is OFF-TOPIC. I was reading Python Cookbook and I saw a recipe to read fixed width files using struct.unpack. Much shorter and faster (esp. if you use compiled structs) than indexing. I thought this is a pretty cool approach: http://code.activestate.com/recipes/65224-accessing-substrings/.

regards,
Albert-Jan



More information about the Tutor mailing list