[issue11319] Command line option -t (and -tt) does not work for a particular case

Guido van Rossum report at bugs.python.org
Sat Jul 7 17:43:12 CEST 2012


Guido van Rossum <guido at 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 program is only invalid if the tab size is >= 12 (or zero).

I don't think we should care about people who set their tab size > 8 -- realistically what people do is set it to values <= 8 (but >= 1), and their mistakes will be adequately caught.

----------
nosy: +gvanrossum
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11319>
_______________________________________


More information about the Python-bugs-list mailing list