summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) (GH-808)Brett Cannon2017-03-241-2/+16
| | | (cherry picked from commit 8f9e1bbf2dbdf46a0bf920279568a31460043376)
* bpo-28810: Document changes to CALL_FUNCTION opcodes (GH-607)Brett Cannon2017-03-101-30/+39
| | | (cherry picked from commit 4b2a2a425a906c8e4eb8daee14ab1793e225f726)
* bpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode (GH-605)Brett Cannon2017-03-101-4/+15
| | | (cherry picked from commit 7e52c3e7aefb4cdaa0662fc01ff68a5e976b77ca)
* bpo-26213: Document _UNPACK bytecodes and BUILD_MAP changes (GH-440)Brett Cannon2017-03-031-2/+53
| | | (cherry picked from commit 0705f66eb369aa6a6cdb699e24ff61e1ab2e0c56)
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-5/+5
|\
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-5/+5
| |
* | Issue #28394: More typo fixes for 3.6+Martin Panter2016-10-101-1/+1
| |
* | Add missing versionadded directivesBerker Peksag2016-09-121-0/+4
| |
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-091-0/+11
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.Serhiy Storchaka2016-09-061-0/+8
| |
* | Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.Serhiy Storchaka2016-06-121-17/+6
| | | | | | | | Patch by Demur Rumed.
* | Issue #27140: Added BUILD_CONST_KEY_MAP opcode.Serhiy Storchaka2016-06-111-0/+9
| |
* | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.Serhiy Storchaka2016-05-241-5/+4
| | | | | | | | Patch by Demur Rumed.
* | Issue #26733: Disassembling a class now disassembles class and static methods.Serhiy Storchaka2016-04-231-5/+5
|\ \ | |/ | | | | Patch by Xiang Zhang.
| * Issue #26733: Disassembling a class now disassembles class and static methods.Serhiy Storchaka2016-04-231-5/+5
| | | | | | | | Patch by Xiang Zhang.
* | Merge typo fixes from 3.5Martin Panter2016-04-051-1/+1
|\ \ | |/
| * Fix typos in documentation and commentsMartin Panter2016-04-051-1/+1
| |
* | For FORMAT_VALUE opcode, make it clear that the result of PyObject_Format is ↵Eric V. Smith2015-11-041-1/+2
| | | | | | | | pushed on the stack.
* | Issue 25483: Fix doc typo and added versionadded. Thanks, Berker Peksag.Eric V. Smith2015-11-031-1/+3
| |
* | Issue 25483: Update dis.rst with FORMAT_VALUE opcode description.Eric V. Smith2015-11-031-0/+19
|/
* Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban.Antoine Pitrou2015-08-131-2/+2
|\
| * Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban.Antoine Pitrou2015-08-131-2/+2
| |
* | Issue #24439: Improve PEP 492 related docs.Yury Selivanov2015-06-241-3/+5
| | | | | | | | Patch by Martin Panter.
* | Issue #24400: Introduce a distinct type for 'async def' coroutines.Yury Selivanov2015-06-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: 1. Coroutines now have a distinct, separate from generators type at the C level: PyGen_Type, and a new typedef PyCoroObject. PyCoroObject shares the initial segment of struct layout with PyGenObject, making it possible to reuse existing generators machinery. The new type is exposed as 'types.CoroutineType'. As a consequence of having a new type, CO_GENERATOR flag is no longer applied to coroutines. 2. Having a separate type for coroutines made it possible to add an __await__ method to the type. Although it is not used by the interpreter (see details on that below), it makes coroutines naturally (without using __instancecheck__) conform to collections.abc.Coroutine and collections.abc.Awaitable ABCs. [The __instancecheck__ is still used for generator-based coroutines, as we don't want to add __await__ for generators.] 3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to allow passing native coroutines to the YIELD_FROM opcode. Before this change, 'yield from o' expression was compiled to: (o) GET_ITER LOAD_CONST YIELD_FROM Now, we use GET_YIELD_FROM_ITER instead of GET_ITER. The reason for adding a new opcode is that GET_ITER is used in some contexts (such as 'for .. in' loops) where passing a coroutine object is invalid. 4. Add two new introspection functions to the inspec module: getcoroutinestate(c) and getcoroutinelocals(c). 5. inspect.iscoroutine(o) is updated to test if 'o' is a native coroutine object. Before this commit it used abc.Coroutine, and it was requested to update inspect.isgenerator(o) to use abc.Generator; it was decided, however, that inspect functions should really be tailored for checking for native types. 6. sys.set_coroutine_wrapper(w) API is updated to work with only native coroutines. Since types.coroutine decorator supports any type of callables now, it would be confusing that it does not work for all types of coroutines. 7. Exceptions logic in generators C implementation was updated to raise clearer messages for coroutines: Before: TypeError("generator raised StopIteration") After: TypeError("coroutine raised StopIteration")
* | remove STORE_MAP, since it's unusedBenjamin Peterson2015-05-281-4/+0
| |
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-2/+40
| |
* | Add versionadded directives for the matmul operator.Berker Peksag2015-03-121-0/+4
| |
* | merge 3.4 (#23561)Benjamin Peterson2015-03-021-100/+100
|\ \ | |/
| * wrap everything at 80 charsBenjamin Peterson2015-03-021-98/+97
| |
| * link to the correct dis method or function (closes #23561)Benjamin Peterson2015-03-021-3/+3
| |
* | Issue #20521: Change ``TOS`` to TOS in dis documentation.Berker Peksag2015-03-021-4/+4
|\ \ | |/ | | | | | | | | TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse.
| * Issue #20521: Change ``TOS`` to TOS in dis documentation.Berker Peksag2015-03-021-4/+4
| | | | | | | | | | | | TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse.
* | Issue #22845: Improved formatting of dis documentation.Serhiy Storchaka2014-11-111-23/+24
|\ \ | |/
| * Issue #22845: Improved formatting of dis documentation.Serhiy Storchaka2014-11-111-23/+24
| |
* | Issue #21947: handle generator-iterator objects in disNick Coghlan2014-07-251-8/+8
| | | | | | | | Patch by Clement Rouault.
* | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-101-0/+10
|/
* whatsnew: expand 'dis' entry.R David Murray2014-01-071-0/+2
| | | | Also add one missing versionadded.
* Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-1/+1
|\
* | Issue #19722: Added opcode.stack_effect(), which accuratelyLarry Hastings2013-11-231-0/+7
| | | | | | | | computes the stack effect of bytecode instructions.
* | Close #17916: dis.Bytecode based replacement for distbNick Coghlan2013-11-221-1/+11
| | | | | | | | | | | | | | - Bytecode.from_traceback() alternate constructor - current_offset parameter and attribute Patch by Claudiu Popa
* | Fix typo in updated dis docsNick Coghlan2013-11-061-1/+1
| |
* | Close #19378: address flaws in the new dis module APIsNick Coghlan2013-11-061-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - confusing line_offset parameter -> first_line parameter - systematically test and fix new file parameter - remove redundant Bytecode.show_info() API - rename Bytecode.display_code() to Bytecode.dis() and have it return the multi-line string rather than printing it directly - eliminated some not-so-helpful helpers from the bytecode_helper test support module Also fixed a longstanding defect (worked around in the test suite) where lines emitted by the dis module could include trailing white space. That no longer happens, allowing the formatting tests to be simplified to use plain string comparisons.
* | merge with 3.3Georg Brandl2013-10-121-4/+11
|\ \ | |/
| * Closes #13026: fix documentation of MAKE_FUNCTION for 3.x.Georg Brandl2013-10-121-4/+11
| |
* | #18796: improve documentation of the file argument of dis.show_code. ↵Ezio Melotti2013-08-231-1/+2
| | | | | | | | Initial patch by Vajrasky Kok.
* | rather than passing locals to the class body, just execute the class body in ↵Benjamin Peterson2013-05-161-6/+0
| | | | | | | | the proper environment
* | Issue #11816: multiple improvements to the dis moduleNick Coghlan2013-05-061-35/+184
| | | | | | | | | | | | | | | | * get_instructions generator * ability to redirect output to a file * Bytecode and Instruction abstractions Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
* | check local class namespace before reaching for cells (closes #17853)Benjamin Peterson2013-04-301-0/+7
|/
* Issue #16538: correctly describe MAKE_CLOSURE in docs.Andrew Svetlov2012-11-231-3/+4
| | | | Patch by Daniel Urban
* merge 3.2Benjamin Peterson2012-10-121-4/+4
|\