All leading tabs or all leading spaces - why isn't that enforced? - Python

This is a discussion on All leading tabs or all leading spaces - why isn't that enforced? - Python ; One can argue over tab vs. space indentation, but mixing the two is just wrong. Why not have CPython report an error if a file has both leading tabs and leading spaces? I know that was proposed at some point, ...

+ Reply to Thread
Results 1 to 2 of 2

All leading tabs or all leading spaces - why isn't that enforced?

  1. Default All leading tabs or all leading spaces - why isn't that enforced?

    One can argue over tab vs. space indentation, but mixing the two
    is just wrong. Why not have CPython report an error if a file has
    both leading tabs and leading spaces? I know that was proposed at
    some point, but I don't think it ever went in. That would catch a
    common error introduced during maintenance.

    John Nagle

  2. Default Re: All leading tabs or all leading spaces - why isn't that enforced?

    John Nagle wrote:
    > One can argue over tab vs. space indentation, but mixing the two
    > is just wrong. Why not have CPython report an error if a file has
    > both leading tabs and leading spaces? I know that was proposed at
    > some point, but I don't think it ever went in. That would catch a
    > common error introduced during maintenance.
    >

    I suppose we Pythonistas are just too permissive for our own good.
    Consider the opportunity to use mixed tabs and spaces a piece of rope of
    your preferred length ...

    regards
    Steve
    --
    Steve Holden +1 571 484 6266 +1 800 494 3119
    Holden Web LLC/Ltd http://www.holdenweb.com
    Skype: holdenweb http://del.icio.us/steve.holden
    --------------- Asciimercial ------------------
    Get on the web: Blog, lens and tag the Internet
    Many services currently offer free registration
    ----------- Thank You for Reading -------------


+ Reply to Thread

Similar Threads

  1. Trimming leading spaces from fields
    By Application Development in forum ADO DAO RDO RDS
    Replies: 4
    Last Post: 08-21-2007, 11:12 AM
  2. Replies: 0
    Last Post: 08-06-2007, 10:51 PM
  3. how to preserve trailing and leading blank spaces?
    By Application Development in forum XML SOAP
    Replies: 1
    Last Post: 07-17-2007, 08:00 PM
  4. [VB][CS][WIN] Leading value ...
    By Application Development in forum Adobe Indesign
    Replies: 0
    Last Post: 08-29-2004, 06:36 PM
  5. Perl variable "leading white spaces" Please help
    By Application Development in forum Perl
    Replies: 2
    Last Post: 07-20-2003, 07:28 PM