Most such problems are caused by mixing tabs and spaces in the same
file. Pick one style and be consistent, and you'll be in good shape.
My approach is to always expand tabs. My tab key simply gets me to a
convenient column, there never are any tabs in my source files.
(I don't use either notepad++ or pydev, but most editors I have used or
written can be configured to use spaces)
Coonay wrote:
during last few days, i code python using notepad++ or pydev, the
compiler always complain there is a problem with Indentation,in my
eyes ,there is no Indentation problem at all,because i format the code
to make it comply with python style guide strictly,but after i change
the default tab length ,it works.
why is that?
--
http://mail.python.org/mailman/listinfo/python-list