Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:

>      Unless there has been a major change in the parser... (I still don't
> have Python 3.x installed)
> 
>      I believe <tab> is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF
> 8...
> 

Certainly in Python 2.7 that's not the case: the tab expands to the next 
multiple of 8 spaces.

>>> if 1:
...     print "yes" # space + tab
...         print "no" # eight spaces
...
yes
no

If tab expanded to exactly 8 spaces the leading space would have forced an 
indentation error, but it didn't.

-- 
Duncan Booth http://kupuguy.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to