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


Groups > comp.lang.python > #16721

Re: whitespace cleanup

References <4EDDFC48.2000903@gmail.com> <4EDE0166.1030006@gmail.com> <4EDE03BD.2030106@gmail.com>
Date 2011-12-06 23:06 +1100
Subject Re: whitespace cleanup
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3343.1323173218.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Dec 6, 2011 at 10:59 PM, Andrea Crotti
<andrea.crotti.0@gmail.com> wrote:
> Well it's not so simple, I clearly don't want to strip out whitespace in the
> beginning of the line,
> or my nice code will break miserably ;)

The question is: What is "wrong" whitespace? Whatever you declare to
be wrong, you can probably come up with a regexp or other spec that
will catch it (or conversely, declare some pattern to be "right" and
look for anything else).

ChrisA

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


Thread

Re: whitespace cleanup Chris Angelico <rosuav@gmail.com> - 2011-12-06 23:06 +1100

csiph-web