Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45912

Re: suppress newlines in my script

Date 2013-05-24 15:24 -0400
From Dave Angel <davea@davea.name>
Subject Re: suppress newlines in my script
References <52c74908-8bac-498e-9549-5b9500b152f1@googlegroups.com> <b52fcbed-3ea6-4352-99de-c6274c557016@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2074.1369423480.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 05/24/2013 09:59 AM, sloan949@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

suppress newlines in my script sloan949@gmail.com - 2013-05-23 13:49 -0700
  Re: suppress newlines in my script Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-23 19:11 -0400
  Re: suppress newlines in my script sloan949@gmail.com - 2013-05-24 06:59 -0700
    Re: suppress newlines in my script Dave Angel <davea@davea.name> - 2013-05-24 15:24 -0400
    Re: suppress newlines in my script Jason Friedman <jsf80238@gmail.com> - 2013-05-24 21:49 -0600
    Re: suppress newlines in my script Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-25 13:33 -0400

csiph-web