How to get TabError?
Jeff Epler
jepler at unpythonic.net
Sun Mar 27 11:26:44 EST 2005
When running with "-tt", you can get this error.
[jepler at sofa src]$ python -tt
Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exec "def f():\n\ta\n b"
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "<string>", line 3
b
^
TabError: inconsistent use of tabs and spaces in indentation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050327/c084e6be/attachment.sig>
More information about the Python-list
mailing list