[Python-checkins] r63538 - peps/trunk/pep-0007.txt

georg.brandl python-checkins at python.org
Thu May 22 20:50:30 CEST 2008


Author: georg.brandl
Date: Thu May 22 20:50:30 2008
New Revision: 63538

Log:
Clarify indentation policy for old and new files.


Modified:
   peps/trunk/pep-0007.txt

Modified: peps/trunk/pep-0007.txt
==============================================================================
--- peps/trunk/pep-0007.txt	(original)
+++ peps/trunk/pep-0007.txt	Thu May 22 20:50:30 2008
@@ -46,9 +46,13 @@
 
 Code lay-out
 
-    - Use single-tab indents, where a tab is worth 8 spaces.
-      (For Python 3000 and entirely new source files, see the section
-      Python 3000 below.)
+    - Use single-tab indents, where a tab is worth 8 spaces, in files
+      that already use tabs.  In new source files, and the few files
+      that were created after this rule was introduced, use 4-space
+      indents and no tabs at all.
+
+      At some point, the whole codebase may be converted to use only
+      4-space indents.
 
     - No line should be longer than 79 characters.  If this and the
       previous rule together don't give you enough room to code, your
@@ -194,13 +198,6 @@
       not all do; the MSVC compiler is known to complain about this.
 
 
-Python 3000
-
-    In Python 3000 (and in the 2.x series, in new source files),
-    we'll switch to a different indentation style: 4 spaces per indent,
-    all spaces (no tabs in any file).  The rest will remain the same.
-
-
 References
 
     [1] PEP 8, Style Guide for Python Code, van Rossum, Warsaw


More information about the Python-checkins mailing list