Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update test__opcode and _Py_GetSpecializationStats with recent ↵ | Irit Katriel | 2021-08-11 | 1 | -0/+1 | |
| | | | | specialization stat changes (GH-27728) | |||||
* | bpo-44878: Remove the switch from the main interpreter loop when using ↵ | Mark Shannon | 2021-08-11 | 1 | -177/+206 | |
| | | | | | | | | computed gotos. (GH-27726) * Refactor dispatch logic to make flow of control clearer. Moves lltrace and dxprofile instrumentation into DISPATCH macro. * Remove switch in interpreter loop when using computed gotos. There is no need for two nearly-duplicate dispatch tables. | |||||
* | bpo-44878: _PyEval_EvalFrameDefault readability improvements (GH-27725) | Mark Shannon | 2021-08-11 | 1 | -51/+49 | |
| | | | | | * Move a few variable declarations to point of definition. * Factor out tracing of function entry into helper function. | |||||
* | Add missing DISPATCH() (GH-27715) | Mark Shannon | 2021-08-11 | 1 | -0/+2 | |
| | ||||||
* | Classify specialization failures. Provides more useful stats, with lower ↵ | Mark Shannon | 2021-08-10 | 1 | -96/+83 | |
| | | | | overhead. (GH-27701) | |||||
* | Fix stats for STORE_ATTR specialization. (GH-27708) | Mark Shannon | 2021-08-10 | 1 | -0/+2 | |
| | ||||||
* | bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle ↵ | Irit Katriel | 2021-08-10 | 1 | -1/+15 | |
| | | | | | in its context chain (GH-27626) Co-authored-by: Dennis Sweeney 36520290+sweeneyde@users.noreply.github.com | |||||
* | bpo-44854: Remove trailing whitespaces (GH-27689) | Serhiy Storchaka | 2021-08-09 | 1 | -2/+2 | |
| | ||||||
* | Remove unused variable. (GH-27677) | Mark Shannon | 2021-08-09 | 1 | -3/+0 | |
| | ||||||
* | bpo-44826: Specialize STORE_ATTR (GH-27590) | Mark Shannon | 2021-08-09 | 3 | -78/+311 | |
| | | | | | | | * Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR. | |||||
* | bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to ↵ | Mark Shannon | 2021-08-09 | 4 | -6645/+6638 | |
| | | | | after CFG optimization. (GH-27656) | |||||
* | bpo-44856: Possible reference leak in error paths of update_bases() and ↵ | Pablo Galindo Salgado | 2021-08-07 | 1 | -22/+13 | |
| | | | | __build_class__ (GH-27647) | |||||
* | bpo-44849: Fix os.set_inheritable() on FreeBSD 14 with O_PATH (GH-27623) | Victor Stinner | 2021-08-06 | 1 | -3/+4 | |
| | | | | | Fix the os.set_inheritable() function on FreeBSD 14 for file descriptor opened with the O_PATH flag: ignore the EBADF error on ioctl(), fallback on the fcntl() implementation. | |||||
* | bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) | Victor Stinner | 2021-08-06 | 2 | -0/+24 | |
| | | | | | The threading debug (PYTHONTHREADDEBUG environment variable) is deprecated in Python 3.10 and will be removed in Python 3.12. This feature requires a debug build of Python. | |||||
* | Add option to write specialization stats to files and script to summarize. ↵ | Mark Shannon | 2021-08-04 | 2 | -12/+33 | |
| | | | | | | | (GH-27575) * Add option to write stats to random file in a directory. * Add script to summarize stats. | |||||
* | closes bpo-39091: Fix segfault when Exception constructor returns ↵ | Noah | 2021-08-03 | 1 | -4/+16 | |
| | | | | | non-exception for gen.throw. (#17658) Co-authored-by: Benjamin Peterson <benjamin@python.org> | |||||
* | Minor fixes to specialization stats. (GH-27457) | Mark Shannon | 2021-07-29 | 2 | -5/+11 | |
| | | | | | * Use class, not value for fail stats for BINARY_SUBSCR. * Fix counts for unquickened instructions. | |||||
* | bpo-44725 : expose specialization stats in python (GH-27192) | Irit Katriel | 2021-07-29 | 1 | -0/+78 | |
| | ||||||
* | bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator ↵ | Brandt Bucher | 2021-07-29 | 1 | -20/+28 | |
| | | | | (GH-27432) | |||||
* | bpo-43897: AST validation for pattern matching nodes (GH24771) | Batuhan Taskaya | 2021-07-28 | 1 | -31/+123 | |
| | ||||||
* | bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378) | Mariusz Felisiak | 2021-07-26 | 1 | -1/+1 | |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | bpo-44590: Lazily allocate frame objects (GH-27077) | Mark Shannon | 2021-07-26 | 8 | -272/+433 | |
| | | | | | | | | | | | | | | * Convert "specials" array to InterpreterFrame struct, adding f_lasti, f_state and other non-debug FrameObject fields to it. * Refactor, calls pushing the call to the interpreter upward toward _PyEval_Vector. * Compute f_back when on thread stack, only filling in value when frame object outlives stack invocation. * Move ownership of InterpreterFrame in generator from frame object to generator object. * Do not create frame objects for Python calls. * Do not create frame objects for generators. | |||||
* | bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346) | Charles Burkland | 2021-07-25 | 1 | -4/+12 | |
| | ||||||
* | bpo-43950: support some multi-line expressions for PEP 657 (GH-27339) | Batuhan Taskaya | 2021-07-25 | 1 | -9/+28 | |
| | | | | | | | | | | | | | | | | | | | | | This is basically something that I noticed up while fixing test runs for another issue. It is really common to have multiline calls, and when they fail the display is kind of weird since we omit the annotations. E.g; ``` $ ./python t.py Traceback (most recent call last): File "/home/isidentical/cpython/cpython/t.py", line 11, in <module> frame_1() ^^^^^^^^^ File "/home/isidentical/cpython/cpython/t.py", line 5, in frame_1 frame_2( File "/home/isidentical/cpython/cpython/t.py", line 2, in frame_2 return a / 0 / b / c ~~^~~ ZeroDivisionError: division by zero ``` This patch basically adds support for annotating the rest of the line, if the instruction covers multiple lines (start_line != end_line). Automerge-Triggered-By: GH:isidentical | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27338) | Filipe Laíns | 2021-07-24 | 1 | -1732/+1749 | |
| | ||||||
* | bpo-43950: check against the raw string, not the pyobject (GH-27337) | Batuhan Taskaya | 2021-07-24 | 1 | -1/+1 | |
| | ||||||
* | Revert "bpo-44717: improve AttributeError on circular imports of submodules ↵ | Pablo Galindo Salgado | 2021-07-24 | 1 | -1749/+1732 | |
| | | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072. | |||||
* | bpo-43950: ensure source_line is present when specialising the traceback ↵ | Batuhan Taskaya | 2021-07-24 | 1 | -2/+2 | |
| | | | | (GH-27313) | |||||
* | bpo-44717: improve AttributeError on circular imports of submodules (GH-27299) | Filipe Laíns | 2021-07-24 | 1 | -1732/+1749 | |
| | | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168) | Dong-hee Na | 2021-07-23 | 1 | -40/+8 | |
| | ||||||
* | bpo-44353: Implement typing.NewType __call__ method in C (#27262) | Yurii Karabas | 2021-07-22 | 1 | -0/+1 | |
| | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Denis Laxalde <denis@laxalde.org> | |||||
* | bpo-43950: Distinguish errors happening on character offset decoding (GH-27217) | Batuhan Taskaya | 2021-07-20 | 1 | -0/+10 | |
| | ||||||
* | bpo-44645: Check for interrupts on any potentially backwards edge (GH-27216) | Mark Shannon | 2021-07-19 | 1 | -1/+6 | |
| | ||||||
* | bpo-20291: Fix MSVC warnings in getargs.c (GH-27211) | Ken Jin | 2021-07-17 | 1 | -1/+2 | |
| | | | | | | | | | * Fix MSVC warnings in getargs.c * apply suggestions Co-Authored-By: Batuhan Taskaya <batuhan@python.org> Co-authored-by: Batuhan Taskaya <batuhan@python.org> | |||||
* | bpo-44655: Include the name of the type in unset __slots__ attribute errors ↵ | Pablo Galindo Salgado | 2021-07-16 | 1 | -4/+9 | |
| | | | | (GH-27199) | |||||
* | bpo-44655: Don't include suggestions for attributes that are the same as the ↵ | Pablo Galindo Salgado | 2021-07-16 | 1 | -0/+3 | |
| | | | | missing one (GH-27197) | |||||
* | Revert "bpo-44645: Check for interrupts on any potentially backwards edge. ↵ | Pablo Galindo Salgado | 2021-07-16 | 1 | -6/+1 | |
| | | | | | (GH-27167)" (#27194) This reverts commit 000e70ad5246732fcbd27cf59268185cbd5ad734. | |||||
* | bpo-20201: variadic arguments support for AC (GH-18609) | Batuhan Taskaya | 2021-07-16 | 3 | -39/+277 | |
| | | | Implement support for `*args` in AC, and port `print()` to use it. | |||||
* | bpo-44645: Check for interrupts on any potentially backwards edge. (GH-27167) | Mark Shannon | 2021-07-16 | 1 | -1/+6 | |
| | ||||||
* | bpo-43950: make BinOp specializations more reliable (GH-27126) | Batuhan Taskaya | 2021-07-15 | 1 | -1/+1 | |
| | ||||||
* | bpo-44626: Merge basic blocks earlier to enable better handling of exit ↵ | Mark Shannon | 2021-07-15 | 3 | -4317/+4361 | |
| | | | | blocks without line numbers (GH-27138) | |||||
* | Remove sys._deactivate_opcache() now that is not needed (GH-27154) | Pablo Galindo Salgado | 2021-07-15 | 3 | -49/+1 | |
| | ||||||
* | bpo-44622: Set line number of END_ASYNC_FOR to match that of iterator. ↵ | Mark Shannon | 2021-07-15 | 1 | -1/+3 | |
| | | | | (GH-27160) | |||||
* | bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter (GH-27043) | Irit Katriel | 2021-07-15 | 3 | -12/+174 | |
| | ||||||
* | bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal ↵ | Jack DeVries | 2021-07-15 | 1 | -4/+41 | |
| | | | | keys (GH-27131) | |||||
* | bpo-44616: Mark all clean up instructions at end of named exception block as ↵ | Mark Shannon | 2021-07-14 | 2 | -5/+4 | |
| | | | | artificial (GH-27109) | |||||
* | bpo-33346: Allow async comprehensions inside implicit async comprehensions ↵ | Serhiy Storchaka | 2021-07-13 | 2 | -7/+16 | |
| | | | | | (GH-6766) Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | |||||
* | bpo-43950: Specialize tracebacks for subscripts/binary ops (GH-27037) | Batuhan Taskaya | 2021-07-12 | 1 | -41/+225 | |
| | | | | Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | |||||
* | bpo-44570: Fix line tracing for forwards jumps to duplicated tails (GH-27068) | Mark Shannon | 2021-07-08 | 1 | -4/+2 | |
| | ||||||
* | bpo-44581: Don't execute quickened instructions if tracing is on (GH-27064) | Mark Shannon | 2021-07-08 | 1 | -1/+9 | |
| |