Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) (GH-808) | Brett Cannon | 2017-03-24 | 1 | -2/+16 |
| | | | (cherry picked from commit 8f9e1bbf2dbdf46a0bf920279568a31460043376) | ||||
* | bpo-28810: Document changes to CALL_FUNCTION opcodes (GH-607) | Brett Cannon | 2017-03-10 | 1 | -30/+39 |
| | | | (cherry picked from commit 4b2a2a425a906c8e4eb8daee14ab1793e225f726) | ||||
* | bpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode (GH-605) | Brett Cannon | 2017-03-10 | 1 | -4/+15 |
| | | | (cherry picked from commit 7e52c3e7aefb4cdaa0662fc01ff68a5e976b77ca) | ||||
* | bpo-26213: Document _UNPACK bytecodes and BUILD_MAP changes (GH-440) | Brett Cannon | 2017-03-03 | 1 | -2/+53 |
| | | | (cherry picked from commit 0705f66eb369aa6a6cdb699e24ff61e1ab2e0c56) | ||||
* | Issue #19795: Mark up None as literal text. | Serhiy Storchaka | 2016-10-19 | 1 | -5/+5 |
|\ | |||||
| * | Issue #19795: Mark up None as literal text. | Serhiy Storchaka | 2016-10-19 | 1 | -5/+5 |
| | | |||||
* | | Issue #28394: More typo fixes for 3.6+ | Martin Panter | 2016-10-10 | 1 | -1/+1 |
| | | |||||
* | | Add missing versionadded directives | Berker Peksag | 2016-09-12 | 1 | -0/+4 |
| | | |||||
* | | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. | Yury Selivanov | 2016-09-09 | 1 | -0/+11 |
| | | | | | | | | Patch by Ivan Levkivskyi. | ||||
* | | Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation. | Serhiy Storchaka | 2016-09-06 | 1 | -0/+8 |
| | | |||||
* | | Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes. | Serhiy Storchaka | 2016-06-12 | 1 | -17/+6 |
| | | | | | | | | Patch by Demur Rumed. | ||||
* | | Issue #27140: Added BUILD_CONST_KEY_MAP opcode. | Serhiy Storchaka | 2016-06-11 | 1 | -0/+9 |
| | | |||||
* | | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode. | Serhiy Storchaka | 2016-05-24 | 1 | -5/+4 |
| | | | | | | | | Patch by Demur Rumed. | ||||
* | | Issue #26733: Disassembling a class now disassembles class and static methods. | Serhiy Storchaka | 2016-04-23 | 1 | -5/+5 |
|\ \ | |/ | | | | | Patch by Xiang Zhang. | ||||
| * | Issue #26733: Disassembling a class now disassembles class and static methods. | Serhiy Storchaka | 2016-04-23 | 1 | -5/+5 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Merge typo fixes from 3.5 | Martin Panter | 2016-04-05 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix typos in documentation and comments | Martin Panter | 2016-04-05 | 1 | -1/+1 |
| | | |||||
* | | For FORMAT_VALUE opcode, make it clear that the result of PyObject_Format is ↵ | Eric V. Smith | 2015-11-04 | 1 | -1/+2 |
| | | | | | | | | pushed on the stack. | ||||
* | | Issue 25483: Fix doc typo and added versionadded. Thanks, Berker Peksag. | Eric V. Smith | 2015-11-03 | 1 | -1/+3 |
| | | |||||
* | | Issue 25483: Update dis.rst with FORMAT_VALUE opcode description. | Eric V. Smith | 2015-11-03 | 1 | -0/+19 |
|/ | |||||
* | Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban. | Antoine Pitrou | 2015-08-13 | 1 | -2/+2 |
|\ | |||||
| * | Issue #16554: fix description for MAKE_CLOSURE. Initial patch by Daniel Urban. | Antoine Pitrou | 2015-08-13 | 1 | -2/+2 |
| | | |||||
* | | Issue #24439: Improve PEP 492 related docs. | Yury Selivanov | 2015-06-24 | 1 | -3/+5 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 1 | -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 unused | Benjamin Peterson | 2015-05-28 | 1 | -4/+0 |
| | | |||||
* | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -2/+40 |
| | | |||||
* | | Add versionadded directives for the matmul operator. | Berker Peksag | 2015-03-12 | 1 | -0/+4 |
| | | |||||
* | | merge 3.4 (#23561) | Benjamin Peterson | 2015-03-02 | 1 | -100/+100 |
|\ \ | |/ | |||||
| * | wrap everything at 80 chars | Benjamin Peterson | 2015-03-02 | 1 | -98/+97 |
| | | |||||
| * | link to the correct dis method or function (closes #23561) | Benjamin Peterson | 2015-03-02 | 1 | -3/+3 |
| | | |||||
* | | Issue #20521: Change ``TOS`` to TOS in dis documentation. | Berker Peksag | 2015-03-02 | 1 | -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 Peksag | 2015-03-02 | 1 | -4/+4 |
| | | | | | | | | | | | | TOS is an abbreviation of top-of-stack. Patch by Sven Berkvens-Matthijsse. | ||||
* | | Issue #22845: Improved formatting of dis documentation. | Serhiy Storchaka | 2014-11-11 | 1 | -23/+24 |
|\ \ | |/ | |||||
| * | Issue #22845: Improved formatting of dis documentation. | Serhiy Storchaka | 2014-11-11 | 1 | -23/+24 |
| | | |||||
* | | Issue #21947: handle generator-iterator objects in dis | Nick Coghlan | 2014-07-25 | 1 | -8/+8 |
| | | | | | | | | Patch by Clement Rouault. | ||||
* | | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) | Benjamin Peterson | 2014-04-10 | 1 | -0/+10 |
|/ | |||||
* | whatsnew: expand 'dis' entry. | R David Murray | 2014-01-07 | 1 | -0/+2 |
| | | | | Also add one missing versionadded. | ||||
* | Issue #19795: Improved markup of True/False constants. | Serhiy Storchaka | 2013-11-29 | 1 | -1/+1 |
|\ | |||||
* | | Issue #19722: Added opcode.stack_effect(), which accurately | Larry Hastings | 2013-11-23 | 1 | -0/+7 |
| | | | | | | | | computes the stack effect of bytecode instructions. | ||||
* | | Close #17916: dis.Bytecode based replacement for distb | Nick Coghlan | 2013-11-22 | 1 | -1/+11 |
| | | | | | | | | | | | | | | - Bytecode.from_traceback() alternate constructor - current_offset parameter and attribute Patch by Claudiu Popa | ||||
* | | Fix typo in updated dis docs | Nick Coghlan | 2013-11-06 | 1 | -1/+1 |
| | | |||||
* | | Close #19378: address flaws in the new dis module APIs | Nick Coghlan | 2013-11-06 | 1 | -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.3 | Georg Brandl | 2013-10-12 | 1 | -4/+11 |
|\ \ | |/ | |||||
| * | Closes #13026: fix documentation of MAKE_FUNCTION for 3.x. | Georg Brandl | 2013-10-12 | 1 | -4/+11 |
| | | |||||
* | | #18796: improve documentation of the file argument of dis.show_code. ↵ | Ezio Melotti | 2013-08-23 | 1 | -1/+2 |
| | | | | | | | | Initial patch by Vajrasky Kok. | ||||
* | | rather than passing locals to the class body, just execute the class body in ↵ | Benjamin Peterson | 2013-05-16 | 1 | -6/+0 |
| | | | | | | | | the proper environment | ||||
* | | Issue #11816: multiple improvements to the dis module | Nick Coghlan | 2013-05-06 | 1 | -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 Peterson | 2013-04-30 | 1 | -0/+7 |
|/ | |||||
* | Issue #16538: correctly describe MAKE_CLOSURE in docs. | Andrew Svetlov | 2012-11-23 | 1 | -3/+4 |
| | | | | Patch by Daniel Urban | ||||
* | merge 3.2 | Benjamin Peterson | 2012-10-12 | 1 | -4/+4 |
|\ |