Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2514)

Side by Side Diff: Doc/library/dis.rst

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 7 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Doc/library/exceptions.rst » ('j') | Modules/parsermodule.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`dis` --- Disassembler for Python bytecode 1 :mod:`dis` --- Disassembler for Python bytecode
2 =============================================== 2 ===============================================
3 3
4 .. module:: dis 4 .. module:: dis
5 :synopsis: Disassembler for Python bytecode. 5 :synopsis: Disassembler for Python bytecode.
6 6
7 **Source code:** :source:`Lib/dis.py` 7 **Source code:** :source:`Lib/dis.py`
8 8
9 -------------- 9 --------------
10 10
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 422
423 423
424 .. opcode:: RETURN_VALUE 424 .. opcode:: RETURN_VALUE
425 425
426 Returns with TOS to the caller of the function. 426 Returns with TOS to the caller of the function.
427 427
428 428
429 .. opcode:: YIELD_VALUE 429 .. opcode:: YIELD_VALUE
430 430
431 Pops ``TOS`` and yields it from a :term:`generator`. 431 Pops ``TOS`` and yields it from a :term:`generator`.
432
433
434 .. opcode:: YIELD_FROM
435
436 Pops ``TOS`` and delegates to it as a subiterator from a :term:`generator`.
437
438 .. versionadded:: 3.3
432 439
433 440
434 .. opcode:: IMPORT_STAR 441 .. opcode:: IMPORT_STAR
435 442
436 Loads all symbols not starting with ``'_'`` directly from the module TOS to t he 443 Loads all symbols not starting with ``'_'`` directly from the module TOS to t he
437 local namespace. The module is popped after loading all names. This opcode 444 local namespace. The module is popped after loading all names. This opcode
438 implements ``from module import *``. 445 implements ``from module import *``.
439 446
440 447
441 .. opcode:: POP_BLOCK 448 .. opcode:: POP_BLOCK
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 element on the stack contains the keyword arguments dictionary, followed by t he 804 element on the stack contains the keyword arguments dictionary, followed by t he
798 variable-arguments tuple, followed by explicit keyword and positional argumen ts. 805 variable-arguments tuple, followed by explicit keyword and positional argumen ts.
799 806
800 807
801 .. opcode:: HAVE_ARGUMENT 808 .. opcode:: HAVE_ARGUMENT
802 809
803 This is not really an opcode. It identifies the dividing line between opcode s 810 This is not really an opcode. It identifies the dividing line between opcode s
804 which don't take arguments ``< HAVE_ARGUMENT`` and those which do ``>= 811 which don't take arguments ``< HAVE_ARGUMENT`` and those which do ``>=
805 HAVE_ARGUMENT``. 812 HAVE_ARGUMENT``.
806 813
OLDNEW
« no previous file with comments | « no previous file | Doc/library/exceptions.rst » ('j') | Modules/parsermodule.c » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+