Re: tabs and spaces in py3k

2008-12-08 Thread Terry Reedy
[EMAIL PROTECTED] wrote: Do the Py3k docs need correction? -tt option in python 2.x is now default in python 3.0. Apparently it got slipped from any documentation, including what's new. http://bugs.python.org/issue4603 -- http://mail.python.org/mailman/listinfo/python-list

Re: tabs and spaces in py3k

2008-12-07 Thread inyeol . lee
On Dec 7, 8:51 pm, [EMAIL PROTECTED] wrote: > The following code works under 2.6 > > def foo(): > a = 1 > <.tab..>b = 1 > > but results in a TabError in Python 3k > > File "x.py", line 3 > b = 3 > ^ > TabError: inconsistent use of tabs and spaces in indentation > > T

Re: tabs and spaces in py3k

2008-12-07 Thread Lie Ryan
On Sun, 07 Dec 2008 20:51:50 -0800, rurpy wrote: > Do the Py3k docs need correction? If I were the maintainer of the parser, I'd add something like this: tab_width = random.randint(0, 1000) -- http://mail.python.org/mailman/listinfo/python-list

tabs and spaces in py3k

2008-12-07 Thread rurpy
The following code works under 2.6 def foo(): a = 1 <.tab..>b = 1 but results in a TabError in Python 3k File "x.py", line 3 b = 3 ^ TabError: inconsistent use of tabs and spaces in indentation The py3k docs say the same thing as the 2.6 docs, namely that tabs are