Stephen Thorne step...@thorne.id.au added the comment:
In discussion with GvR, we've decided we're not interested in intentionally
rejecting code that is valid for tab width values between 1 and 8 inclusive.
Thanks for the bug report!
--
nosy: +jerub
Guido van Rossum gu...@python.org added the comment:
The -t feature is not technically about rejecting all code that mixes tabs and
spaces. It is only about detecting code that mixes tabs and spaces IN SUCH A
WAY THAT THE TAB SIZE AFFECTS THE VALIDITY OR MEANING OF THE CODE.
The sample
New submission from Jérôme Radix jerome.ra...@gmail.com:
The attached example mixes tabs and spaces but python does not report any
warning when used with -t.
Line 4 contains 1 tab. Lines after line 4 contains spaces.
Tested using :
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500