ANN: Dao Language v.0.9.6-beta is release!

Micah Elliott mde at micah.elliott.name
Fri Dec 2 16:04:13 EST 2005


On Dec 02, Dave Hansen wrote:
> Python recognizes the TAB character as valid indentation.  TAB
> characters are evil.  They should be banned from Python source code.

AGREE!  AGREE!  AGREE! 

> The interpreter should stop translation of code and throw an
> exception when one is encountered.

You could file a "Parser/Compiler" Feature Request for this (Hmm,
sf.net appears to have just renamed "Request For Enhancment" to
"Feature Request").  Seems the present enformencement of
disallowing tab/space mixing is with -t and -tt.  From PEP-8
<URL:http://www.python.org/peps/pep-0008.html>:

    ...
    Tabs or Spaces?

        Never mix tabs and spaces.  The most popular way of indenting
        Python is with spaces only.  ... Code indented with a mixture
        of tabs and spaces should be converted to using spaces
        exclusively. ... When invoking the python command line
        interpreter with the -t option, it issues warnings about code
        that illegally mixes tabs and spaces.  When using -tt these
        warnings become errors. These options are highly recommended!

        For new projects, spaces-only are strongly recommended over
        tabs. Most editors have features that make this easy to do.

If your "FR" is approved, -t and -tt could apply to any use of tabs.
+1 from me.

-- 
_ _     ___
|V|icah |- lliott             <><             mde at micah.elliott.name
" "     """



More information about the Python-list mailing list