[Python-checkins] r65763 - python/branches/tlee-ast-optimize/Lib/compiler/pyassem.py

thomas.lee python-checkins at python.org
Sun Aug 17 15:38:41 CEST 2008


Author: thomas.lee
Date: Sun Aug 17 15:38:40 2008
New Revision: 65763

Log:
Clean up the docstring -- contained a lot of irrelevant stuff.

Modified:
   python/branches/tlee-ast-optimize/Lib/compiler/pyassem.py

Modified: python/branches/tlee-ast-optimize/Lib/compiler/pyassem.py
==============================================================================
--- python/branches/tlee-ast-optimize/Lib/compiler/pyassem.py	(original)
+++ python/branches/tlee-ast-optimize/Lib/compiler/pyassem.py	Sun Aug 17 15:38:40 2008
@@ -644,19 +644,7 @@
     return divmod(val, 256)
 
 class LineAddrTable:
-    """lnotab
-
-    This class builds the lnotab, which is documented in compile.c.
-    Here's a brief recap:
-
-    For each SET_LINENO instruction after the first one, two bytes are
-    added to lnotab.  (In some cases, multiple two-byte entries are
-    added.)  The first byte is the distance in bytes between the
-    instruction for the last SET_LINENO and the current SET_LINENO.
-    The second byte is offset in line numbers.  If either offset is
-    greater than 255, multiple two-byte entries are added -- see
-    compile.c for the delicate details.
-    """
+    """This class builds the lnotab."""
 
     def __init__(self):
         self.code = []


More information about the Python-checkins mailing list