indetation problem
Fuming Wang
fumingw at yahoo.com
Mon Jul 30 17:23:11 EDT 2001
Skip Montanaro <skip at pobox.com> wrote in message news:<mailman.996177883.10560.python-list at python.org>...
> 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>?
Yes, I recently changed Tab size from 8 to 4 on my editor. That explains it.
Thanks!
Fuming Wang
More information about the Python-list
mailing list