Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GH-94036: Fix more attribute location quirks (GH-95028) | Brandt Bucher | 2022-07-22 | 1 | -20/+23 |
| | |||||
* | GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121) | Brandt Bucher | 2022-07-22 | 3 | -3/+14 |
| | |||||
* | GH-91409: Don't overwrite valid locations with NOP locations (GH-95067) | Brandt Bucher | 2022-07-20 | 1 | -1/+4 |
| | |||||
* | gh-91102: Port 8-argument _warnings.warn_explicit to Argument Clinic (#92891) | Oleg Iarygin | 2022-07-20 | 2 | -25/+105 |
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | GH-94851: fix immortal objects refcounting in compiler (gh-95040) | Kumar Aditya | 2022-07-20 | 1 | -1/+1 |
| | |||||
* | gh-91256: Ensure help text has the program name even before getpath is ↵ | Steve Dower | 2022-07-19 | 1 | -0/+3 |
| | | | | called (GH-94929) | ||||
* | gh-93678: move normalize_basic_block and extend_block call into optimize_cfg ↵ | Irit Katriel | 2022-07-19 | 1 | -31/+26 |
| | | | | (GH-95002) | ||||
* | GH-94822: Don't specialize when metaclasses are involved (GH-94892) | Brandt Bucher | 2022-07-18 | 1 | -6/+5 |
| | |||||
* | gh-94930: skipitem() in getargs.c should return non-NULL on error (GH-94931) | Serhiy Storchaka | 2022-07-18 | 1 | -3/+1 |
| | |||||
* | GH-94739: Mark stacks of exception handling blocks for setting ↵ | Mark Shannon | 2022-07-18 | 1 | -14/+0 |
| | | | | frame.f_lineno in the debugger. (GH-94958) | ||||
* | gh-91348: Restore frame argument to sys._getframe audit event (GH-94928) | Steve Dower | 2022-07-17 | 1 | -5/+7 |
| | |||||
* | gh-93939: Build C extensions without setup.py (GH-94474) | Christian Heimes | 2022-07-14 | 1 | -1/+0 |
| | | | Combines GH-93940, GH-94452, and GH-94433 | ||||
* | gh-93883: elide traceback indicators when possible (#93994) | John Belmonte | 2022-07-11 | 1 | -4/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered). | ||||
* | GH-94694: Fix column offsets for multi-line method lookups (GH-94697) | Brandt Bucher | 2022-07-10 | 1 | -2/+9 |
| | |||||
* | GH-93252: Fix error handling for failed Python calls (GH-94693) | Brandt Bucher | 2022-07-09 | 1 | -1/+5 |
| | |||||
* | gh-94215: Fix error handling for line-tracing events (GH-94681) | Brandt Bucher | 2022-07-08 | 1 | -5/+14 |
| | | | | | * Re-enable crasher * Fix error handling for line-tracing events * blurb add | ||||
* | gh-92228: disable the compiler's 'small exit block inlining' optimization ↵ | Irit Katriel | 2022-07-07 | 1 | -0/+14 |
| | | | | | | | for blocks that have a line number (GH-94592) Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature. This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None". | ||||
* | gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace ↵ | Pablo Galindo Salgado | 2022-07-05 | 1 | -2/+24 |
| | | | | | (GH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-94485: Set line number of module's RESUME instruction to 0, as specified ↵ | Irit Katriel | 2022-07-05 | 1 | -1/+4 |
| | | | | | by PEP 626 (GH-94552) Co-authored-by: Mark Shannon <mark@hotpy.org> | ||||
* | gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241) | Irit Katriel | 2022-07-01 | 2 | -39/+12 |
| | |||||
* | GH-94262: Don't create frame objects for frames that aren't yet complete. ↵ | Mark Shannon | 2022-07-01 | 2 | -5/+17 |
| | | | | (GH-94371) | ||||
* | gh-91719: Reload opcode on unknown error so that C can optimize the ↵ | neonene | 2022-06-30 | 1 | -0/+3 |
| | | | | dispatching in ceval.c (#94364) | ||||
* | GH-94329: Don't raise on excessive stack consumption (GH-94421) | Mark Shannon | 2022-06-30 | 1 | -6/+1 |
| | |||||
* | gh-94332: make it safe to call assemble_free when assemble_init has not been ↵ | Irit Katriel | 2022-06-30 | 1 | -1/+2 |
| | | | | called (GH-94389) | ||||
* | GH-94163: Add BINARY_SLICE and STORE_SLICE instructions. (GH-94168) | Mark Shannon | 2022-06-27 | 4 | -45/+139 |
| | |||||
* | gh-77560: Report possible errors in restoring builtins at finalization ↵ | Serhiy Storchaka | 2022-06-25 | 1 | -1/+1 |
| | | | | | | | (GH-94255) Seems in the past the copy of builtins was not made in some scenarios, and the error was silenced. Write it now to stderr, so we have a chance to see it. | ||||
* | GH-93841: Allow stats to be turned on and off, cleared and dumped at ↵ | Mark Shannon | 2022-06-21 | 4 | -9/+193 |
| | | | | runtime. (GH-93843) | ||||
* | gh-74953: _PyThread_cond_after() uses _PyTime_t (#94056) | Victor Stinner | 2022-06-21 | 2 | -29/+16 |
| | | | | | | pthread _PyThread_cond_after() implementation now uses the _PyTime_t type to handle properly overflow: clamp to the maximum value. Remove MICROSECONDS_TO_TIMESPEC() function. | ||||
* | GH-91432: Specialize FOR_ITER (GH-91713) | Dennis Sweeney | 2022-06-21 | 3 | -37/+118 |
| | | | | | * Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations. * Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints. | ||||
* | GH-93678: refactor compiler so that optimizer does not need the assembler ↵ | Irit Katriel | 2022-06-21 | 1 | -160/+169 |
| | | | | and compiler structs (GH-93842) | ||||
* | gh-94021: Address unreachable code warning in specialize code (GH-94022) | Christian Heimes | 2022-06-21 | 1 | -1/+2 |
| | |||||
* | gh-93937: PyOS_StdioReadline() uses PyConfig.legacy_windows_stdio (#94024) | Victor Stinner | 2022-06-20 | 1 | -0/+3 |
| | | | | | | | On Windows, PyOS_StdioReadline() now gets PyConfig.legacy_windows_stdio from _PyOS_ReadlineTState, rather than using the deprecated global Py_LegacyWindowsStdioFlag variable. Fix also a compiler warning in Py_SetStandardStreamEncoding(). | ||||
* | GH-93516: Speedup line number checks when tracing. (GH-93763) | Mark Shannon | 2022-06-20 | 1 | -7/+9 |
| | | | | * Use a lookup table to reduce overhead of getting line numbers during tracing. | ||||
* | GH-93897: Store frame size in code object and de-opt if insufficient space ↵ | Mark Shannon | 2022-06-20 | 3 | -41/+15 |
| | | | | on thread frame stack. (GH-93908) | ||||
* | gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) | Victor Stinner | 2022-06-19 | 6 | -6/+4 |
| | | | | | | | | | | | | | | | | Move the follow functions and type from frameobject.h to pyframe.h, so the standard <Python.h> provide frame getter functions: * PyFrame_Check() * PyFrame_GetBack() * PyFrame_GetBuiltins() * PyFrame_GetGenerator() * PyFrame_GetGlobals() * PyFrame_GetLasti() * PyFrame_GetLocals() * PyFrame_Type Remove #include "frameobject.h" from many C files. It's no longer needed. | ||||
* | gh-74953: Reformat PyThread_acquire_lock_timed() (#93947) | Victor Stinner | 2022-06-19 | 1 | -46/+62 |
| | | | | | | | | Reformat the pthread implementation of PyThread_acquire_lock_timed() using a mutex and a conditioinal variable. * Add goto to avoid multiple indentation levels and exit quickly * Use "while(1)" and make the control flow more obvious. * PEP 7: Add braces around if blocks. | ||||
* | gh-93911: Specialize `LOAD_ATTR_PROPERTY` (GH-93912) | Ken Jin | 2022-06-17 | 3 | -22/+97 |
| | |||||
* | gh-77782: Deprecate global configuration variable (#93943) | Victor Stinner | 2022-06-17 | 2 | -0/+24 |
| | | | | | | | Deprecate global configuration variable like Py_IgnoreEnvironmentFlag: the Py_InitializeFromConfig() API should be instead. Fix declaration of Py_GETENV(): use PyAPI_FUNC(), not PyAPI_DATA(). | ||||
* | gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout ↵ | Victor Stinner | 2022-06-17 | 1 | -1/+1 |
| | | | | | (#93941) Set timeout, don't create a local variable with the same name. | ||||
* | gh-74953: Add _PyTime_FromMicrosecondsClamp() function (#93942) | Victor Stinner | 2022-06-17 | 2 | -16/+17 |
| | |||||
* | gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916) | Victor Stinner | 2022-06-17 | 4 | -14/+17 |
| | |||||
* | gh-91985: Ensure in-tree builds override platstdlib_dir in every path ↵ | neonene | 2022-06-16 | 1 | -1/+22 |
| | | | | calculation (GH-93641) | ||||
* | Fix BINARY_SUBSCR_GETITEM stats (GH-93903) | Ken Jin | 2022-06-16 | 2 | -7/+7 |
| | |||||
* | Rename 'LOAD_METHOD' specialization stat consts to 'ATTR'. (GH-93812) | Mark Shannon | 2022-06-14 | 1 | -17/+14 |
| | |||||
* | Remove LOAD_METHOD stats. (GH-93807) | Mark Shannon | 2022-06-14 | 1 | -1/+0 |
| | |||||
* | GH-93678: reduce boilerplate and code repetition in the compiler (GH-93682) | Irit Katriel | 2022-06-14 | 1 | -261/+150 |
| | |||||
* | GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430) | Ken Jin | 2022-06-14 | 4 | -243/+194 |
| | |||||
* | GH-93516: Store offset of first traceable instruction in code object (GH-93769) | Mark Shannon | 2022-06-14 | 1 | -52/+37 |
| | |||||
* | GH-93662: Make sure that column offsets are correct in multi-line method ↵ | Mark Shannon | 2022-06-14 | 1 | -4/+16 |
| | | | | calls. (GH-93673) | ||||
* | gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) | Serhiy Storchaka | 2022-06-14 | 2 | -29/+45 |
| | | | | | | It combines PyImport_ImportModule() and PyObject_GetAttrString() and saves 4-6 lines of code on every use. Add also _PyImport_GetModuleAttr() which takes Python strings as arguments. |