]> granicus.if.org Git - python/commitdiff
merge 3.4 (#23561)
authorBenjamin Peterson <benjamin@python.org>
Mon, 2 Mar 2015 14:36:48 +0000 (09:36 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 2 Mar 2015 14:36:48 +0000 (09:36 -0500)
1  2 
Doc/library/dis.rst

index cdb635063270319beb06f1a78571717b99d7e07b,b816dcc4d32c23e6c5ac6d2d01b5c8d108afed58..2b107956b6c0fbc58aa51d677131546bd573a64e
@@@ -48,22 -48,21 +48,22 @@@ code
  
  .. class:: Bytecode(x, *, first_line=None, current_offset=None)
  
-    Analyse the bytecode corresponding to a function, generator, method,
-    string of source code, or a code object (as returned by :func:`compile`).
 -   Analyse the bytecode corresponding to a function, method, string of source
 -   code, or a code object (as returned by :func:`compile`).
 +
-    This is a convenience wrapper around many of the functions listed below,
-    most notably :func:`get_instructions`, as iterating over a
-    :class:`Bytecode` instance yields the bytecode operations as
-    :class:`Instruction` instances.
++   Analyse the bytecode corresponding to a function, generator, method, string
++   of source code, or a code object (as returned by :func:`compile`).
  
-    If *first_line* is not None, it indicates the line number that should
-    be reported for the first source line in the disassembled code.
-    Otherwise, the source line information (if any) is taken directly from
-    the disassembled code object.
+    This is a convenience wrapper around many of the functions listed below, most
+    notably :func:`get_instructions`, as iterating over a :class:`Bytecode`
+    instance yields the bytecode operations as :class:`Instruction` instances.
  
-    If *current_offset* is not None, it refers to an instruction offset
-    in the disassembled code. Setting this means :meth:`dis` will display
-    a "current instruction" marker against the specified opcode.
+    If *first_line* is not None, it indicates the line number that should be
+    reported for the first source line in the disassembled code.  Otherwise, the
+    source line information (if any) is taken directly from the disassembled code
+    object.
+    If *current_offset* is not None, it refers to an instruction offset in the
+    disassembled code. Setting this means :meth:`.dis` will display a "current
+    instruction" marker against the specified opcode.
  
     .. classmethod:: from_traceback(tb)