On Wed, 5 Jul 2017 06:34:26 -0700 (PDT), Sam Chats wrote:
> On Wednesday, July 5, 2017 at 6:56:06 PM UTC+5:30, Thomas Nyberg wrote:
> > On 07/05/2017 03:18 PM, YOUR_NAME_HERE wrote:
> > > On Wed, 5 Jul 2017 13:02:36 +0000 (UTC) YOUR_NAME_HERE wrote:
> > >> I can use either tsv or csv. Which one would be better?
> > > 
> > > 
> > > Some people complain that tsv has problems, so maybe csv would be the way 
> > > to go.
> > > 
> > I almost always use csv personally, but it's a preference. I'm not sure
> > what the problems are you're refering to, but I guess that points to
> > using commas as well. Either way, it's not hard to switch between the two:
> > 
> > import csv
> > 
> > # Using regular commas
> > with open('outfile.csv', 'w') as outfile:
> >     writer = csv.writer(outfile)
> >     writer.writerow(range(5))
> > 
> > # Using tabs
> > with open('outfile.tsv', 'w') as outfile:
> >     writer = csv.writer(outfile, delimiter='        ')
> >     writer.writerow(range(5))
> > 
> > Cheers,
> > Thomas
> 
> Just curious, is it better, performance wise, to read from a text file (css 
> or tsv) compared to reading from a binary pickle file?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to