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

Discussion in 'Python' started by Delaney, Timothy (Tim), Aug 7, 2007.

  1. 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.


    To warn about mixed tabs and spaces:
    python -t <script>

    To issue errors for mixed tabs and spaces:
    python -tt <script>

    Tim Delaney
    Delaney, Timothy (Tim), Aug 7, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,816
    Smokey Grindel
    Dec 2, 2006
  2. John Nagle
    Replies:
    4
    Views:
    591
    James Antill
    Aug 7, 2007
  3. John B. Matthews
    Replies:
    4
    Views:
    665
    John B. Matthews
    Sep 12, 2008
  4. Roedy Green
    Replies:
    3
    Views:
    620
  5. rantingrick

    Tabs -vs- Spaces: Tabs should have won.

    rantingrick, Jul 16, 2011, in forum: Python
    Replies:
    95
    Views:
    1,828
    Roy Smith
    Jul 19, 2011
Loading...

Share This Page