Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-12458: Fix line numbers for multiline expressions. (GH-8774) | Serhiy Storchaka | 2018-09-17 | 1 | -2/+6 |
| | |||||
* | bpo-33041: Rework compiling an "async for" loop. (#6142) | Serhiy Storchaka | 2018-03-23 | 1 | -2/+1 |
| | | | | | | | | * Added new opcode END_ASYNC_FOR. * Setting global StopAsyncIteration no longer breaks "async for" loops. * Jumping into an "async for" loop is now disabled. * Jumping out of an "async for" loop no longer corrupts the stack. * Simplify the compiler. | ||||
* | bpo-32970: Improve disassembly of the MAKE_FUNCTION instruction. (GH-5937) | Serhiy Storchaka | 2018-03-11 | 1 | -4/+4 |
| | |||||
* | bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter ↵ | Serhiy Storchaka | 2018-02-22 | 1 | -124/+123 |
| | | | | | | | | | to compiler. (GH-5006) Co-authored-by: Mark Shannon <mark@hotpy.org> Co-authored-by: Antoine Pitrou <antoine@python.org> | ||||
* | bpo-32550. Remove the STORE_ANNOTATION bytecode. (GH-5181) | Mark Shannon | 2018-01-29 | 1 | -17/+21 |
| | |||||
* | bpo-24340: Fix estimation of the code stack size. (#5076) | Serhiy Storchaka | 2018-01-09 | 1 | -8/+8 |
| | |||||
* | bpo-31183: `dis` now handles coroutines & async generators (GH-3077) | syncosmic | 2017-08-18 | 1 | -5/+27 |
| | | | | | | | | | | | | | | Coroutines and async generators use a distinct attribute name for their code objects, so this updates the `dis` module to correctly disassemble objects with those attributes. Due to the increase in the test module length, it also fixes some latent defects in the tests related to how the displayed source line numbers are extracted. https://bugs.python.org/issue31230 is a follow-up issue suggesting we may want to solve this a different way, by instead giving all these object types a common `__code__` attribute, avoiding the need for special casing in the `dis` module. | ||||
* | bpo-11822: Improve disassembly to show embedded code objects. (#1844) | Serhiy Storchaka | 2017-06-11 | 1 | -7/+82 |
| | | | The depth argument limits recursion. | ||||
* | bpo-22352: Adjust widths in the output of dis.dis() for large line numbers ↵ | Serhiy Storchaka | 2017-04-19 | 1 | -1/+51 |
| | | | | | | | and (#1153) instruction offsets. Add tests for widths of opcode names. | ||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | |||||
* | Issue #28317: The disassembler now decodes FORMAT_VALUE argument. | Serhiy Storchaka | 2016-10-08 | 1 | -0/+24 |
| | |||||
* | Rework CALL_FUNCTION* opcodes | Victor Stinner | 2016-09-09 | 1 | -18/+18 |
| | | | | | | | | | | | | | | | | | | | Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more efficient bytecode: * CALL_FUNCTION now only accepts position arguments * CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys of keyword arguments are packed into a constant tuple. * CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for positional and keyword arguments. CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed. 2 tests of test_traceback are currently broken: skip test, the issue #28050 was created to track the issue. Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka and Victor Stinner. | ||||
* | Issue #28003: Implement PEP 525 -- Asynchronous Generators. | Yury Selivanov | 2016-09-08 | 1 | -1/+1 |
| | |||||
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. | Yury Selivanov | 2016-09-08 | 1 | -0/+33 |
| | | | | Patch by Ivan Levkivskyi. | ||||
* | Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes. | Serhiy Storchaka | 2016-06-12 | 1 | -41/+39 |
| | | | | Patch by Demur Rumed. | ||||
* | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode. | Serhiy Storchaka | 2016-05-24 | 1 | -262/+262 |
| | | | | Patch by Demur Rumed. | ||||
* | Issue #26733: Disassembling a class now disassembles class and static methods. | Serhiy Storchaka | 2016-04-23 | 1 | -2/+50 |
| | | | | Patch by Xiang Zhang. | ||||
* | Issue #26733: Fixed formatting line numbers in test_dis. | Serhiy Storchaka | 2016-04-12 | 1 | -11/+11 |
| | | | | Based on patch by Xiang Zhang. | ||||
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-11 | 1 | -13/+33 |
| | |||||
* | Issue #21741: Update 147 test modules to use test discovery. | Zachary Ware | 2015-04-13 | 1 | -1/+1 |
| | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run. | ||||
* | merge 3.4 (#23048) | Benjamin Peterson | 2014-12-13 | 1 | -3/+4 |
|\ | |||||
| * | pop the loop block even for infinite while loops (closes #23048) | Benjamin Peterson | 2014-12-13 | 1 | -3/+4 |
| | | |||||
* | | Closes #11471: avoid generating a JUMP_FORWARD instruction at the end of an ↵ | Antoine Pitrou | 2014-09-18 | 1 | -88/+84 |
| | | | | | | | | | | | | if-block if there is no else-clause. Original patch by Eugene Toder. | ||||
* | | Issue #21947: handle generator-iterator objects in dis | Nick Coghlan | 2014-07-25 | 1 | -0/+8 |
|/ | | | | Patch by Clement Rouault. | ||||
* | Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had been | Zachary Ware | 2013-12-26 | 1 | -34/+31 |
|\ | | | | | | | disabled since 3.0 due to the changes in listcomp handling. | ||||
| * | Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had been | Zachary Ware | 2013-12-26 | 1 | -33/+30 |
| | | | | | | | | disabled since 3.0 due to the changes in listcomp handling. | ||||
* | | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -6/+8 |
|\ \ | |/ | |||||
| * | Normalize whitespace | Zachary Ware | 2013-12-08 | 1 | -1/+1 |
| | | |||||
| * | Issue 19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-08 | 1 | -6/+8 |
| | | |||||
* | | Close #17916: dis.Bytecode based replacement for distb | Nick Coghlan | 2013-11-23 | 1 | -0/+66 |
| | | | | | | | | | | | | | | - Bytecode.from_traceback() alternate constructor - current_offset parameter and attribute Patch by Claudiu Popa | ||||
* | | Remove incorrect comment from dis tests | Nick Coghlan | 2013-11-06 | 1 | -1/+0 |
| | | |||||
* | | Close #19378: address flaws in the new dis module APIs | Nick Coghlan | 2013-11-06 | 1 | -44/+83 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 3.3 (#19117) | Benjamin Peterson | 2013-09-29 | 1 | -4/+0 |
|\ \ | |/ | |||||
| * | fix duplicate test names in test_dis (closes #19117) | Benjamin Peterson | 2013-09-29 | 1 | -4/+0 |
| | | |||||
* | | Issue #11816: multiple improvements to the dis module | Nick Coghlan | 2013-05-06 | 1 | -33/+306 |
|/ | | | | | | | | * get_instructions generator * ability to redirect output to a file * Bytecode and Instruction abstractions Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver. | ||||
* | Issue #11823: disassembly now shows argument counts on calls with keyword args | Alexander Belopolsky | 2012-06-07 | 1 | -3/+3 |
| | |||||
* | Merge 3.2: Issue #13703 plus some related test suite fixes. | Georg Brandl | 2012-02-21 | 1 | -12/+13 |
|\ | |||||
| * | Another test_dis dict order dependency. | Georg Brandl | 2012-02-20 | 1 | -6/+6 |
| | | |||||
| * | Fix test_dis dependency on dict order. | Georg Brandl | 2012-02-20 | 1 | -6/+7 |
| | | |||||
* | | PEP 3155 / issue #13448: Qualified name for classes and functions. | Antoine Pitrou | 2011-11-25 | 1 | -0/+1 |
| | | |||||
* | | excise the remains of STOP_CODE, which hasn't done anything useful for years | Benjamin Peterson | 2011-07-17 | 1 | -1/+1 |
| | | |||||
* | | PyErr_Print can leave sys.last_traceback hanging around; kill it | Benjamin Peterson | 2011-03-15 | 1 | -10/+8 |
| | | |||||
* | | should use 'is' here | Benjamin Peterson | 2011-03-15 | 1 | -1/+1 |
| | | |||||
* | | improve dis test coverage (closes #11559) | Benjamin Peterson | 2011-03-15 | 1 | -8/+98 |
|/ | | | | Thanks Matias Bordese. (a few modifications of my own) | ||||
* | #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵ | Ezio Melotti | 2010-12-01 | 1 | -2/+2 |
| | | | | assertRaisesRegex. | ||||
* | #9964: Fix failure of test_dis under -OO. | Georg Brandl | 2010-10-14 | 1 | -13/+13 |
| | |||||
* | Another attempt at pacifying the windows buildbots by ignoring all the ↵ | Nick Coghlan | 2010-08-17 | 1 | -10/+9 |
| | | | | variable information in the dis.code_info tests | ||||
* | Ignore the exact ID value for the nested function in the dis.code_info tests | Nick Coghlan | 2010-08-17 | 1 | -4/+3 |
| | |||||
* | Issue 9147: Add dis.code_info() | Nick Coghlan | 2010-08-17 | 1 | -2/+156 |
| | |||||
* | Issue 6507: accept source strings directly in dis.dis(). Original patch by ↵ | Nick Coghlan | 2010-07-03 | 1 | -0/+45 |
| | | | | Daniel Urban |