On Wed, 2003-08-27 at 15:45, Anthony Roberts wrote:
If I end indentation levels with "pass" statements, will I piss off people
that have to read my code? eg:
for i in xrange(0,5):
if i:
print i
pass
print i * -1
pass
I do this myself at times, to help emacs. But I'd suggest you not
overdo it. It is more "pythonic" to simply leave the line blank (ie.
vertical whitespace), than have "pass" everywhere.
Pressing backspace once (to undo the auto-indent that emacs gives inside
loops) is less typing than 'pass'. And if you need to reindent large
chunks of code, you are better off using emacs block indent/dedent
feature than relying on "pass" as defacto block delimiter (this has been
my experience)
Also, look into the pindent.py script (included in Python's "Tools"
directory with the distribution), for another way of producing block
closing tokens.
--
Chad Netzer
From n/a Thu Aug 28 01:26:06 2003
From: n/a (Mike Thompson)
Date: Thu, 28 Aug 2003 09:26:06 +1000
Subject: My future Python IDE article
References: <mailman.1061920192.21278.python-list@python.org><3f4ca68c$0$4190$afc38c87@news.optusnet.com.au> <mailman.1061989090.23114.python-list@python.org>
Message-ID: <3f4d3e12$0$4190$afc38c87@news.optusnet.com.au>
"Gerhard H?ring" <gh at ghaering.de> wrote in message
news:mailman.1061989090.23114.python-list at python.org...
Mike Thompson wrote:
"David Mertz" wrote:
So c.l.py readers... make the case for your favorite one getting on the
list.
I'm surprised no one has mentioned Boa. I tryed Wing & Komodo, before
finding
Boa.
Boa is far from finished. Depending on your wxPython version and how you
use the IDE, it could work surprisingly well or annoy you to no end in
my experience.
I'd recommend to not review alpha software like Boa.
That's not my experience. I've found Boa both stable, functional and well
priced.
I tried Wing and generally liked it, except that I'm used to an editor with
tabs for each open file and I found Wing's "one file at a time arrangement"
didn't match my way of working.
I tried Komodo, which has an enormous feature set that goes well beyond python,
which I liked until I came to run my first wxPython based program under the
debugger and it froze. I never did get to the bottom of why.
In between all this I attempted to use Eric but had difficulty getting it
setup. From memory, after some googling around, I found a few similar reports
and abandoned the effort.
I then tried Boa and haven't moved since.
My search has occurred over the last six months. About twelve months ago I also
tried the Secret Labs IDE (can't remember the name) which I found a bit of work
initially, but ended up quite liking. However this product now seems to have
been withdrawn from the market.
If you have to restrict it to 3, my suggestion would be:
Wing
Boa
IDLE
That would give you a mix of commerical and free. All are cross-platform.
If not IDLE, then Komodo which has a very inexpensive licence for personal
use..
--
Mike