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


Groups > comp.lang.python > #31521

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

From "Alex" <foo@email.invalid>
Newsgroups comp.lang.python
Subject Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?
Date 2012-10-17 15:34 +0000
Organization A noiseless patient Spider
Message-ID <k5mj5e$lmv$1@dont-email.me> (permalink)
References <k18vgg$sp9$1@dont-email.me> <a3ba743e-85df-42de-90bc-33bf5cf96c02@googlegroups.com> <k2a99q$vam$1@dont-email.me> <mailman.2351.1350486665.27098.python-list@python.org>

Show all headers | View raw


Fabio Zadrozny wrote:

> On Thu, Sep 6, 2012 at 10:43 AM, Alex <foo@email.invalid> wrote:
> > Ramchandra Apte wrote:
> > 
> >> On Saturday, 25 August 2012 04:03:52 UTC+5:30, Alex  wrote:
> >> > I'm new to Python and have been using IDLE 3.2.3 to experiment
> with >> >
> >> > code as I learn. Despite being configured to use a 4 space
> >> > indentation
> >> >
> >> > width, sometimes IDLE's "smart" indentation insists upon using
> >> > width-8
> >> >
> >> > tabs.
> >> >
> >> >
> >> >
> >> > From what I've been able to find on Google, this is due to a
> >> >
> >> > shortcoming in Tk. While it's not that big a deal in the grand
> >> > scheme
> >> >
> >> > of things, I think it looks like poop, and I'd like to change
> IDLE >> > to
> >> >
> >> > use 4-space indentation instead of tabs for all indentation
> levels.  >> >
> >> >
> >> >
> >> > Is there any way for me to achieve what I want in IDLE, or do I
> >> > have to
> >> >
> >> > start up my full-blown IDE if I want consistent 4-space
> indentation?  >> >
> >> >
> >> >
> >> > Alex
> > > 
> >> I think an IDE is better than IDLE. Try NINJA IDE.
> >> http://ninja-ide.org
> > 
> > Agreed. I like PyDev in Eclipse, but sometimes I just want to try
> > out something quick in the interpreter, to ensure I understand it
> > or do a quick experiment. Since indentation is syntactically
> > significant in Python, I think fixing the interpreter to produce
> > good, readable, cut-and-pasteable, and Pythonic code is more
> > important than a cosmetic feature, but less important than true
> > bugs.
> > --
> 
> 
> Actually, if you're in PyDev/Eclipse already, you can just use the
> interactive shell that PyDev provides:
> http://pydev.org/manual_adv_interactive_console.html
> 
> Cheers,
> 
> Fabio

Awesome. Exactly what I was looking for. Thanks.

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


Thread

Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-08-24 22:33 +0000
  Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Terry Reedy <tjreedy@udel.edu> - 2012-08-25 07:29 -0400
    Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-08-25 12:50 +0000
      Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-25 14:20 +0100
        Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-08-25 14:17 +0000
          Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Terry Reedy <tjreedy@udel.edu> - 2012-08-25 14:36 -0400
  Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Ramchandra Apte <maniandram01@gmail.com> - 2012-09-05 06:04 -0700
    Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-09-06 13:43 +0000
      Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Ramchandra Apte <maniandram01@gmail.com> - 2012-09-06 06:54 -0700
      Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Terry Reedy <tjreedy@udel.edu> - 2012-09-06 14:11 -0400
        Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-09-07 01:40 +0000
      Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? Fabio Zadrozny <fabiofz@gmail.com> - 2012-10-17 12:10 -0300
        Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? "Alex" <foo@email.invalid> - 2012-10-17 15:34 +0000

csiph-web