indetation problem
Skip Montanaro
skip at pobox.com
Thu Jul 26 16:03:28 EDT 2001
Fuming> I am experiencing indentation problems when mixing tabs and
Fuming> spaces in my code. They appear in correct indentation in my
Fuming> editor, but cause error when running them. I am using Python
Fuming> 2.2a1. I reproduced the problem in following interactive
Fuming> sequence:
You probably shouldn't mix tabs and spaces in your code. If you do, you
will need to define a tab as 8 spaces, I believe. That's what the Python
lexer expects.
Fuming> Question: is this something new, or it has always been there. It
Fuming> is strange that I have been using Python for several years, but
Fuming> only notice this behavior recently.
I think it's been that way for quite some time now, perhaps ten years or
so. ;-) Maybe you only recently changed to <tab> == <sp><sp>?
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list