[BangPypers] BangPypers Digest, Vol 8, Issue 15

Biju Chacko botsie at nixcartel.org
Fri May 2 08:16:56 CEST 2008


Anand Balachandran Pillai wrote:
> This is a common pitfall encountered by the brand-newbie.
> Use a good editor which does a good job of "untabifying"
> your code.
> 
> I use emacs+python-mode. I use tabs for writing my code
> since it is easy to indent code using tabs in emacs. I have defined
> a macro which converts tabs to spaces when saving the file.
> 
> Make sure you use some good editor which allows you
> complete control over your tabs and spaces. Refer to previous
> discussions on Python editors in this list if you want some guidance.

If you are a vim user you can add:

set expandtabs

to your .vimrc to ensure that vim indents with only spaces.

-- b


More information about the BangPypers mailing list