summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-114616: Improve docs regarding changes to caches representation in ↵Miss Islington (bot)2024-06-041-3/+4
| | | | | | | | dis (GH-120033) (#120079) gh-114616: Improve docs regarding changes to caches representation in dis (GH-120033) (cherry picked from commit 770f3c1eadd3392c72fd55be47770234dd143a14) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] docs: module page titles should not start with a link to themselves ↵Miss Islington (bot)2024-05-081-2/+2
| | | | | | | | (GH-117099) (#118790) docs: module page titles should not start with a link to themselves (GH-117099) (cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* Fix several typos in documentation (GH-118625)Xie Yanbo2024-05-071-1/+1
|
* gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs (GH-117343)Christopher Chianelli2024-03-281-1/+1
|
* docs: use consistent .append() in dis.rst (#115434)Ned Batchelder2024-02-151-4/+4
| | | The STACK variable is described as like a Python list, so pushing to it should be done with .append() consistently throughout.
* GH-112354: `END_FOR` instruction to only pop one value. (GH-114247)Mark Shannon2024-01-241-2/+2
| | | | * Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
* Docs: Fix typo in code snippet (GH-114421)Kirill Podoprigora2024-01-221-1/+1
|
* Document the `co_lines` method on code objects (#113682)Alex Waygood2024-01-031-4/+5
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* fix bullet-list in `LOAD_SUPER_ATTR` documentation on `dis` page (#113461)denballakh2023-12-241-3/+4
|
* gh-112962: in dis module, put cache information in the Instruction instead ↵Irit Katriel2023-12-131-3/+15
| | | | of creating fake Instructions to represent it (#113016)
* gh-101100: Improve documentation of code object attributes (#112781)Alex Waygood2023-12-061-9/+10
|
* gh-101100: Properly document frame object attributes (#112735)Alex Waygood2023-12-051-2/+2
|
* gh-112137: change dis output to display labels instead of offsets (#112138)Irit Katriel2023-11-221-9/+27
|
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-031-1/+2
| | | | frame state (#111648)
* 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