Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'interpreter': 0.04; 'subject:IDLE': 0.04; 'python': 0.09; 'ide': 0.09; 'interpreter,': 0.09; 'sep': 0.09; 'already,': 0.16; 'bugs.': 0.16; 'experiment.': 0.16; 'fabio': 0.16; 'idle,': 0.16; 'idle.': 0.16; 'pythonic': 0.16; 'subject: \n ': 0.16; 'subject:configure': 0.16; 'tabs': 0.16; 'tk.': 0.16; 'to:name:python list': 0.16; 'url:pydev': 0.16; 'width,': 0.16; 'wrote:': 0.17; 'alex': 0.17; 'thu,': 0.17; 'shell': 0.18; 'fixing': 0.22; "i'd": 0.22; 'cheers,': 0.23; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'agreed.': 0.29; 'feature,': 0.29; 'indentation': 0.29; 'things,': 0.29; "i'm": 0.29; 'code': 0.31; 'google,': 0.32; 'idle': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'consistent': 0.35; 'sometimes': 0.35; 'subject:?': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'being': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'space': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'more': 0.63; 'subject:there': 0.65; 'due': 0.66; 'august': 0.66; '10:43': 0.84; 'actually,': 0.84; 'cosmetic': 0.84; 'experiment': 0.84; 'subject:tabs': 0.84; 'good,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KWTNiY5/MCS6/Cc1RmgTXrZd5fJLou42pL61LHqQ9Cs=; b=sW3HtLyQcgoiHTErQJBvKklduNBo/BfOBGbPgFswXIPOvPYG5xYjXc6Y+8WG924rPd QZCJ/uX/CToIVDQoG4J5a6D/J5E557M0MuCvX1mjwkss5l70dB8zKJI4yr40wGaoh0kZ eCBVyi3FAQM0suUUM6hlgwNJWiiOqSC68Yl7naP7dWb69iMPooAPhCK1o42OqmQ+5YF1 0zzDP5OvtcEwObqJW2K+/A4j+jGPFVLVEjANKPt5XrO9/Ax1RMKhrkyAhesCXeJ7BK5S kGe04cH4YKW1i+gTBoJ3DwmlMfCXv7wXG9BXqPm3gJTTfCDsqLnd64YOqSd9p4kmv+0F TT0A== MIME-Version: 1.0 In-Reply-To: References: From: Fabio Zadrozny Date: Wed, 17 Oct 2012 12:10:38 -0300 Subject: Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting? To: python list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350486665 news.xs4all.nl 6936 [2001:888:2000:d::a6]:35468 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31518 On Thu, Sep 6, 2012 at 10:43 AM, Alex 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