madzientist a écrit :
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
madzientist 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
On Sep 10, 11:24 pm, madzientist [EMAIL PROTECTED] 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
-Original Message-
From: [EMAIL PROTECTED]
[mailto:python-
[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 8:26 AM
To: python-list@python.org
Subject: Re: newbie: stani's python editor if-else
On Sep 10, 11:24 pm, madzientist [EMAIL PROTECTED
[EMAIL PROTECTED] schrieb:
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.
emacs in python-mode
Just hit TAB and it unindents else in the given example.
Hit TAB again and it cylces
Hamilton, William wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:python-
[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 8:26 AM
To: python-list@python.org
Subject: Re: newbie: stani's python editor if-else
On Sep 10, 11:24 pm
Steve Holden a écrit :
madzientist 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
Thanks, everybody, for the very very useful and kind responses.
There is a second reason why I asked the question about automatic de-
indenting. I am teaching myself Python partly so I can then help my
technically astute, but blind friend learn programming. For the many
reasons that Pythonistas
madzientist schrieb:
Is Python a bad choice for the blind programmer, as a result of a
tight linkage between visual aspects of the code and its function ? I
wish the site blindprogramming.com weren't so lifeless...
There was a thread regarding blind people and python indentation shortly:
Thanks, Gregor. Very helpful thread.
Suresh
On Sep 11, 1:26 pm, Gregor Horvath [EMAIL PROTECTED] wrote:
madzientist schrieb:
Is Python a bad choice for the blind programmer, as a result of a
tight linkage between visual aspects of the code and its function ? I
wish the site
10 matches
Mail list logo