Non-Indented python

Steve Lamb grey at despair.dmiyu.org
Wed Nov 21 19:25:38 EST 2001


On Thu, 22 Nov 2001 10:19:24 +1100, Delaney, Timothy <tdelaney at avaya.com> wrote:
> If you use spaces everywhere, you are at the mercy of other code that
> doesn't use the *same number* of spaces for indentation. For example, if you
> use four spaces for indentation, and you cut and paste code that uses two
> spaces per indentation, nothing will work. You will need to reformat one or
> the other before copying the code.

    Or just reformat after copying.  You know, something like this:

%s/  /    /g
or
%s/    /  /g

    Not perfect, no, but hey, it's just before Thanksgiving and don't want to
get more involved.  Point is tabs are evil.

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
    To email: Don't despair!   |  -- Lenny Nero, Strange Days
-------------------------------+---------------------------------------------



More information about the Python-list mailing list