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
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers