[2.5] Reading a two-column file into an array?

Erik Max Francis max at alcyone.com
Tue Jul 31 00:54:33 EDT 2007


Gilles Ganault wrote:

> I'm sure there's a much easier way to read a two-column, CSV file into
> an array, but I haven't found it in Google.
> 
> Should I use the Array module instead?

The csv module?  Or just .rstrip and .split?

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
   I get my kicks above the wasteline, sunshine
    -- The American, _Chess_



More information about the Python-list mailing list