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 thr

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),

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 > checke

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-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

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 shifting

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

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 agai