suppress newlines in my script
Dave Angel
davea at davea.name
Fri May 24 15:24:26 EDT 2013
On 05/24/2013 09:59 AM, sloan949 at gmail.com wrote:
>
<SNIP massive double-spaced nonsense from googlegroups misuse,
see http://wiki.python.org/moin/GoogleGroupsPython >
>> print PE2.format(count)
>
> Thanks for the tip about the CSV module. I did not know about that.
So why aren't you using it? There's not much point in solving "the
newlines problem" if you're going to later switch to a library which
doesn't have the problem. The csv module will eliminate the newlines,
and the commas, organizing your data for you directly (assuming this
really is a csv file, and that the separator is comma). None of your
present code seems to believe it's a csv file, so maybe that's just a
misdirection.
--
DaveA
More information about the Python-list
mailing list