summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-021-2/+11
| | | | (#111459)
* gh-107457: update dis documentation with changes in 3.12 (#108900)Matthieu Dartiailh2023-10-171-16/+43
|
* gh-108826: Document `dis` module CLI and rename `_test` function to `main` ↵Radislav Chugunov2023-10-101-0/+26
| | | | | | | (#108827) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)Brandt Bucher2023-09-131-25/+33
|
* Fix variable name in dis documentation example (GH-109343)Oleksandr Kravets2023-09-131-1/+1
| | | BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency.
* gh-109319: deprecate dis.HAVE_ARGUMENT (#109320)Irit Katriel2023-09-121-0/+2
|
* gh-109256: allocate opcode IDs for internal opcodes in their own range (#109269)Irit Katriel2023-09-121-2/+2
|
* Docs: Resolve Sphinx warnings in dis.rst (#108476)Erlend E. Aasland2023-08-251-9/+11
| | | | | - Link to the code objects reference - Suppress link to deliberately undocumented builtins.__build_class__ - Suppress links for example methods
* gh-107932: Fix dis module for bytecode that does not have an associated ↵Corvin2023-08-251-2/+13
| | | | source line (GH-107988)
* GH-105848: Simplify the arrangement of CALL's stack (GH-107788)Brandt Bucher2023-08-091-1/+1
|
* gh-107427: Update the description of UNPACK_SEQUENCE (gh-107429)Dong-hee Na2023-07-301-2/+3
|
* gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)Serhiy Storchaka2023-07-211-2/+2
|
* gh-105481: Generate the opcode lists in dis from data extracted from ↵Irit Katriel2023-07-181-7/+21
| | | | bytecodes.c (#106758)
* GH-106008: Make implicit boolean conversions explicit (GH-106003)Brandt Bucher2023-06-291-1/+22
|
* gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)hms2023-06-291-12/+11
| | | | | | This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
* gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and ↵Irit Katriel2023-06-171-0/+6
| | | | replace by their new versions (#105865)
* gh-105678: document SET_FUNCTION_ATTRIBUTE (#105843)Carl Meyer2023-06-161-9/+20
|
* bpo-44530: Document the change in MAKE_FUNCTION behavior (#93189)Alex Doe2023-06-161-2/+5
| | | | | * bpo-44530: Document the change in MAKE_FUNCTION behavior Fixes dis module documentation for MAKE_FUNCTION due to https://github.com/python/cpython/commit/2f180ce2cb6e6a7e3c517495e0f4873d6aaf5f2f (bpo-44530, released as part of 3.11) removes the qualified name at TOS
* GH-77273: Better bytecodes for f-strings (GH-6132)Mark Shannon2023-06-141-16/+37
|
* gh-102676: Add more convenience properties to `dis.Instruction` (#103969)Tomas R2023-06-111-0/+42
| | | | | | | | Adds start_offset, cache_offset, end_offset, baseopcode, baseopname, jump_target and oparg to dis.Instruction. Also slightly improves the disassembly output by allowing opnames to overflow into the space reserved for opargs.
* gh-103921: Document PEP 695 (#104642)Jelle Zijlstra2023-05-261-20/+91
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* docs: fix wrong indentation causing rendering error in dis page (#104661)Nyakku Shigure2023-05-191-2/+2
|
* gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)Carl Meyer2023-05-091-0/+8
| | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-97950: Use new-style index directive ('builtin') (#104164)Adam Turner2023-05-061-1/+1
| | | | | | | | | | | | | * Uncomment builtin removal in pairindextypes * Use new-style index directive ('builtin') - C API * Use new-style index directive ('builtin') - Extending * Use new-style index directive ('builtin') - Library * Use new-style index directive ('builtin') - Reference * Use new-style index directive ('builtin') - Tutorial
* Various small fixes to dis docs (#103923)Jelle Zijlstra2023-04-291-78/+79
| | | | | | | | - Fix description of MAKE_CELL, which appeared to be inverted from the actual behavior - Fix stray ".:" (sphinx-contrib/sphinx-lint#63) - Fix inconsistent indentation - Add some missing code blocks - Slight style improvements
* gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497)Carl Meyer2023-04-241-0/+18
| | | | | This speeds up `super()` (by around 85%, for a simple one-level `super().meth()` microbenchmark) by avoiding allocation of a new single-use `super()` object on each use.
* GH-88691: Shrink the CALL caches (GH-103230)Brandt Bucher2023-04-051-1/+1
|
* GH-100982: Break up COMPARE_AND_BRANCH (GH-102801)Brandt Bucher2023-03-231-9/+0
|
* gh-102859: Remove JUMP_IF_FALSE_OR_POP and JUMP_IF_TRUE_OR_POP (#102870)Irit Katriel2023-03-221-24/+0
|
* GH-90997: Shrink the LOAD_GLOBAL caches (#102569)Brandt Bucher2023-03-111-3/+3
|
* gh-101799: implement PREP_RERAISE_STAR as an intrinsic function (#101800)Irit Katriel2023-02-141-11/+15
|
* gh-101632: Add the new RETURN_CONST opcode (#101633)penguin_wwy2023-02-071-0/+7
|
* gh-101454: fix documentation for END_ASYNC_FOR (#101455)Irit Katriel2023-02-011-4/+3
|
* GH-100762: Don't call `gen.throw()` in `gen.close()`, unless necessary. ↵Mark Shannon2023-01-241-1/+4
| | | | | | (GH-101013) * Store exception stack depth in YIELD_VALUE's oparg and use it avoid expensive gen.throw() in gen.close() where possible.
* GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983)Mark Shannon2023-01-161-0/+9
|
* gh-96461: Improve docs for bytecode instructions (GH-96462)Matthieu Dartiailh2023-01-121-123/+236
| | | | | | | | | * Clarify the meaning of the oparg for CACHE and COPY opcode in dis doc * Use STACK to describe stack operation in analogy with a Python list * Remove (delta) from BEFORE_WITH since BEFORE_WITH does not take an argument * Fix the description of the stack impact of multiple opcodes
* GH-99005: More intrinsics (GH-100774)Mark Shannon2023-01-061-19/+3
| | | * Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics.
* GH-99005: Add `CALL_INTRINSIC_1` instruction (GH-100771)Mark Shannon2023-01-051-23/+16
| | | | | | | | * Remove PRINT_EXPR instruction * Remove STOPITERATION_ERROR instruction * Remove IMPORT_STAR instruction
* GH-96793: Implement PEP 479 in bytecode. (GH-99006)Mark Shannon2022-11-031-0/+9
| | | | | * Handle converting StopIteration to RuntimeError in bytecode. * Add custom instruction for converting StopIteration into RuntimeError.
* GH-96793: Change `FOR_ITER` to not pop the iterator on exhaustion. (GH-96801)Mark Shannon2022-10-271-1/+12
| | | | Change FOR_ITER to have the same stack effect regardless of whether it branches or not. Performance is unchanged as FOR_ITER (and specialized forms jump over the cleanup code).
* gh-97937: dis docs: add adaptive=False (#97939)Jelle Zijlstra2022-10-251-13/+29
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* gh-71316: Update dis documentation to include changes to jump arguments ↵Christopher Chianelli2022-10-071-0/+4
| | | | (GH-95798)
* Docs: Fix backtick errors found by sphinx-lint (#97998)Hugo van Kemenade2022-10-071-1/+1
| | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-93554: Conditional jump opcodes only jump forward (GH-96318)Irit Katriel2022-09-011-36/+20
|
* GH-90997: Wrap yield from/await in a virtual try/except StopIteration (GH-96010)Brandt Bucher2022-08-191-3/+18
|
* GH-90997: Document CACHEs (GH-95694)Brandt Bucher2022-08-051-0/+18
|
* no-issue: Fix typo of "thrid" instead of "third" in dis docs (gh-95510)Alex Hedges2022-08-011-1/+1
|
* Remove out of date reference to YIELD_FROM from docs. (#94966)Mark Shannon2022-07-181-6/+0
|
* gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)Irit Katriel2022-07-011-2/+80
|
* gh-89038: [doc] update dis.findlinestarts documentation for changes related ↵Irit Katriel2022-06-301-4/+6
| | | | to PEP-626 (GH-94247)