Re: Indentation problems

2009-11-09 Thread r
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

Re: Indentation problems

2009-11-09 Thread Rhodri James
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

Indentation problems

2009-11-08 Thread Ray Holt
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

Re: Indentation problems

2009-11-08 Thread Tim Chase
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,

Re: Python Indentation Problems

2006-03-01 Thread Petr Jakes
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)

Re: Python Indentation Problems

2006-02-28 Thread bruno at modulix
[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

Re: Python Indentation Problems

2006-02-28 Thread Terry Hancock
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

Re: Python Indentation Problems

2006-02-28 Thread John M. Gabriele
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

Re: Python Indentation Problems

2006-02-27 Thread [EMAIL PROTECTED]
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

Python Indentation Problems

2006-02-26 Thread diffuser78
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

Re: Python Indentation Problems

2006-02-26 Thread gene tani
[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

Re: Python Indentation Problems

2006-02-26 Thread Renato
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