Preserving program structure

David Dawkins david_j_dawkins at spamless.hotmail.com
Fri Dec 14 21:37:21 EST 2001


"Chris Barker" <chrishbarker at attbi.com> wrote in message
news:3C1A5960.4A27136D at attbi.com...
> David Dawkins wrote:
> > So I'm using IDLE, and Alt-F5 tells me I have a problem with
> > indentation.
> >
> > It seems I had (inadvertently) mixed tab and space characters.
> > No amount of "tabbifying" and "untabbifying" resolved the issue,
> > so I had to shift *everything* to the left-margin, and re-create
> > the indentation with a consistent scheme (8 space hard tabs).
>
> I'm confused. How is it that "untabbifying" didn't resolve it? While you
> may have had a couple of indentations messed up, I would think that
> would be a whole lot easier to fix than re-indenting the entire code!

You'd think so wouldn't you.

> By the way, I don't know about IDLE, but PythonWin (and other editors)
> has a mode that allows you to see tabs and spaces, so you can easily go
> in a clean out the ones that you don't want.

The impression I get is "avoid IDLE". I'm a vi fan, so I'll find a way to
emulate
the "Ctrl-F5" (run script) feature.

Thanks for everyone's input.

David





More information about the Python-list mailing list