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


Groups > comp.lang.python > #37431 > unrolled thread

Re: Any algorithm to preserve whitespaces?

Started bySantosh Kumar <sntshkmr60@gmail.com>
First post2013-01-23 14:50 +0530
Last post2013-01-23 14:50 +0530
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Any algorithm to preserve whitespaces? Santosh Kumar <sntshkmr60@gmail.com> - 2013-01-23 14:50 +0530

#37431 — Re: Any algorithm to preserve whitespaces?

FromSantosh Kumar <sntshkmr60@gmail.com>
Date2013-01-23 14:50 +0530
SubjectRe: Any algorithm to preserve whitespaces?
Message-ID<mailman.874.1358932816.2939.python-list@python.org>
I am in a problem.

    words = line.split(' ')

preserve whitespaces but the problem is it writes an additional line
after every line.


And:

    words = line.split()

works as I expect (does not adds addition line after every line) but
does not preserves whitespaces.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web