The built-in csv module is good for this.  You can specify the  
delimiter (ie: tabs instead of commas) and it handles a bunch of edge  
cases (like quoted values containing the delimiter) that makes it a  
better solution than string.split('\t').

Cheers
CM

On 16 Nov 2007, at 19:29, Jeremy Nicoll - pyuk wrote:

> Is there a simple way to read a whole (modest sized, parameter) file  
> of
> lines of tab-separated lines into one Python data-structure?

_______________________________________________
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk

Reply via email to