Re: Python CSV writer confusion.

2005-09-15 Thread William Park
googleboy <[EMAIL PROTECTED]> wrote: > Hi. I am trying to write out a csv file with | instead of comma, > because I have a field that may have many commas in it. I read in a > csv file, sort it, and want to write it out again. CSV can handle comma within the field. -- William Park <[EMAIL PRO

Re: Python CSV writer confusion.

2005-09-15 Thread Larry Bates
The someiterable should be something that has a .next method. That would be a list or any object with such a method. In your case it would be the images list. The writer method will iterate over the list and write everything out for you. Don't put it inside a loop yourself. More like (not teste

Python CSV writer confusion.

2005-09-15 Thread googleboy
Hi. I am trying to write out a csv file with | instead of comma, because I have a field that may have many commas in it. I read in a csv file, sort it, and want to write it out again. I read the example that says: import csv writer = csv.writer(open("some.csv", "wb")) writer.writerows(someiter