On Nov 8, 1:48 pm, Tim Chase python.l...@tim.thechases.com wrote:
I am having problems with indentation some times. When I hit the enter key
after if statements or while statemt there are times when the indentation is
too much and other times too little.
Check for omitted brackets, braces
I'm going to make a whole bunch of wild guesses here, since you don't give
us a lot to go on.
Wild Guess #1: you're using IDLE.
On Sun, 08 Nov 2009 19:01:37 -, Ray Holt mrhol...@sbcglobal.net
wrote:
I am having problems with indentation some times. When I hit the enter
key
after if
I am having problems with indentation some times. When I hit the enter key
after if statements or while statemt there are times when the indentation is
too much and other times too little. When I try to manually make sure the
indentation is correct and try to print, I ge the error message of
I am having problems with indentation some times. When I hit the enter key
after if statements or while statemt there are times when the indentation is
too much and other times too little.
Which editor are you using? On which operating system? Check
for settings regarding spaces-per-tab,
Eric3 works great with spaces, tabs and even when imported code
indentation is mixed. I have got problems trying to import mixed)
code from other people.
Settings Preferences Editor General
Tab width 8 Indentation width 4 (reasons why 8 and 4 are mentioned in
previous postings in this thread)
[EMAIL PROTECTED] wrote:
I am a newbie to Python. I am mainly using Eric as the IDE for coding.
Also, using VIM and gedit sometimes.
I had this wierd problem of indentation. My code was 100% right but it
wont run because indentation was not right.
If indentation is not right, then your
On 26 Feb 2006 22:21:26 -0800
[EMAIL PROTECTED] wrote:
I am a newbie to Python. I am mainly using Eric as the IDE
for coding. Also, using VIM and gedit sometimes.
I had this wierd problem of indentation. My code was 100%
right but it wont run because indentation was not right. I
checked
Renato wrote:
If you use vi (vim, I hope), then place something like this in your
.vimrc
set ts=4
set sw=4
set expandtab
set ai
Or, more verbose:
set tabstop=4
set shiftwidth=4
set autoindent
There are a lot more tricks for python in vim (and plugins, and
helpers, and so on), but
As far as i know, gedit is the weak link, this is because of the way it
handles its whitespaces, had that trouble myself though not this
*severe*
--
http://mail.python.org/mailman/listinfo/python-list
I am a newbie to Python. I am mainly using Eric as the IDE for coding.
Also, using VIM and gedit sometimes.
I had this wierd problem of indentation. My code was 100% right but it
wont run because indentation was not right. I checked time and again
but still no success. I rewrote the code over
[EMAIL PROTECTED] wrote:
I am a newbie to Python. I am mainly using Eric as the IDE for coding.
Also, using VIM and gedit sometimes.
I had this wierd problem of indentation. My code was 100% right but it
wont run because indentation was not right. I checked time and again
but still no
If you use vi (vim, I hope), then place something like this in your
.vimrc
set ts=4
set sw=4
set expandtab
set ai
There are a lot more tricks for python in vim (and plugins, and
helpers, and so on), but this is the starting point: tabstops of 4
places, autoconverted in spaces. Also, when
12 matches
Mail list logo