newbie: stani's python editor if-else
Steve Holden
steve at holdenweb.com
Tue Sep 11 10:44:10 EDT 2007
Hamilton, William wrote:
>> -----Original Message-----
>> From: python-list-bounces+whamil1=entergy.com at python.org
> [mailto:python-
>> list-bounces+whamil1=entergy.com at python.org] On Behalf Of
>> kyosohma at gmail.com
>> Sent: Tuesday, September 11, 2007 8:26 AM
>> To: python-list at python.org
>> Subject: Re: newbie: stani's python editor if-else
>>
>> On Sep 10, 11:24 pm, madzientist <madzient... at gmail.com> wrote:
>>> hi,
>>>
>>> two quick questions:
>>>
>>> a) i am using SPE (latest version) and for some reason, when i type,
>>> say
>>>
>>> if 1==2:
>>> print "not equal"
>>> else:
>>> print "equal"
>>>
>>> the else is at the same indentation level as the preceding print
>>> statement, and i get a syntax error
>>>
>>> why doesn't spe automatically put the else at the level of the if
>>> statement ? what am i dong wrong ? once i manually change the
>>> indentation, the code snippet runs perfectly.
>>>
>>> b) if this is not the group for such elementary questions, please do
>>> let me know.
>>>
>>> thanks !!!!
>>>
>>> suresh
>> I agree with Steve. I have yet to see an IDE for Python (or anything
>> else) that unindents statements. Even IDLE, the Official IDE for
>> Python, doesn't do that.
>>
>
> IDLE (At least, IDLE 1.0.5) unindents in obvious situations. I think
> it's only on break, continue, pass, and return statements, but there may
> be others.
>
Wing and Scite also do that, but Emacs seems to have the nicest behavior.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
More information about the Python-list
mailing list