[Python-Dev] Making 'python -t' the default. (original) (raw)
Georg Brandl g.brandl at gmx.net
Wed Aug 16 14:19:55 CEST 2006
- Previous message: [Python-Dev] Making 'python -t' the default.
- Next message: [Python-Dev] Making 'python -t' the default.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Wouters wrote:
Can I suggest making 'python -t' the default, in 2.6? It makes python warn about mixing tabs and spaces in indentation.
+1.
In Py3k, '-tt' (the error-raising version) will be the default, instead.
Or disallow tabs altogether.
I see too many newsbies with problems they can't figure out because they mix tabs and spaces (usually not even consciously, but just because their editor isn't playing along.) There probably should be an option to turn the warning off again (although I won't fight for it ;) -- but I don't know what that option should be.
Perhaps -T.
Georg
- Previous message: [Python-Dev] Making 'python -t' the default.
- Next message: [Python-Dev] Making 'python -t' the default.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]