From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2752 invoked from network); 17 Mar 2004 03:40:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Mar 2004 03:40:25 -0000 Received: (qmail 17112 invoked by alias); 17 Mar 2004 03:40:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7190 Received: (qmail 6468 invoked from network); 17 Mar 2004 03:25:11 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 17 Mar 2004 03:25:11 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [207.71.22.231] by sunsite.dk (MessageWall 1.0.8) with SMTP; 17 Mar 2004 3:25:10 -0000 Received: from elm.home.teratorn.org (unknown [10.0.0.11]) by oak.home.teratorn.org (Postfix) with ESMTP id 188742E5 for ; Tue, 16 Mar 2004 21:56:30 -0600 (CST) To: "zsh-users@sunsite.dk" Subject: Re: [OT]Python/zsh/perl [was: named directory expansion on strings] References: <20040315070400.81487.qmail@web12405.mail.yahoo.com> Message-ID: From: Eric Mangold Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 16 Mar 2004 21:03:09 -0700 In-Reply-To: <20040315070400.81487.qmail@web12405.mail.yahoo.com> User-Agent: Opera7.23/Linux M2 build 518 On Sun, 14 Mar 2004 23:04:00 -0800 (PST), Bob Schmertz wrote: > --- Vincent Stemen wrote: > [quoted text "juggled around" a bit] > >> I agree. This surprising discovery is the primary reason I never put >> any serious consideration into learning Python. > >> I use the auto indentation features of xemacs all the time. I see no >> way you could do that without code block delimiters. Seems like a step >> backward in time. > > Emacs seems to be the most popular editor for Python programmers. It > knows when to start a new indent level, because the if, while, class, > etc. lines all end with a colon. It can't tell when you want to close > the > block, of course, but if you're typing new code, that's a simple matter > of > hitting the backspace key once for every block you want to close out. I > wouldn't /think/ of coding in Python if I didn't have Emacs or something > equally smart. > >> Seems like it would be a nightmare to fix if you get your indentation >> messed up (which is extremely common when juggling code around). > > Not sure exactly what you mean by "juggling around"; if you mean cutting > a > section from a file and moving it elsewhere in the file, or to a > different > file, at a point that starts out at a different indent level, there's a > key sequence to add or subtract an indent level from that entire block of > code, so that the pasted code will be consisent with itself as well as > fitting all under the appropriate if statement or whatever. If you're > talking about code from someone else, esp. via email and things like > that, > then there are more variables, of course. > > Do I think blocking by indentation is the greatest thing since sliced > bread? No. But I've been surprised to find that it has rarely, if ever, > been a problem for me Yeah. It's a complete non-issue. There are much better things to fault python for. (not that having faults makes it a bad choice for various things)