Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971) | Eric Snow | 2021-12-07 | 8 | -40/+42 | |
| | | | | | This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads. https://bugs.python.org/issue46008 | |||||
* | bpo-46008: Return void from _PyEval_InitState(). (gh-29970) | Eric Snow | 2021-12-07 | 3 | -10/+7 | |
| | | | | | This falls into the category of keep-allocation-and-initialization separate. It also allows us to use _PyEval_InitState() safely in functions that return void. https://bugs.python.org/issue46008 | |||||
* | bpo-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969) | Christian Heimes | 2021-12-07 | 5 | -479/+38 | |
| | ||||||
* | bpo-45582: Fix framework path and bootstrap build (GH-29954) | Christian Heimes | 2021-12-07 | 2 | -23/+14 | |
| | | | | | | | * Check NS API return values for NULL to prevent segfault in ``_bootstrap_python``. * Set modPathInitialized to 1 so the ``decode_to_dict`` path is used. Signed-off-by: Christian Heimes <christian@python.org> | |||||
* | Fix leak when an exception is raised during generator creation. (GH-29960) | Mark Shannon | 2021-12-07 | 1 | -20/+7 | |
| | ||||||
* | bpo-45635: standardize error handling in traceback.c (GH-29905) | Irit Katriel | 2021-12-07 | 1 | -66/+104 | |
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | |||||
* | bpo-45947: Place dict and values pointer at fixed (negative) offset just ↵ | Mark Shannon | 2021-12-07 | 19 | -281/+256 | |
| | | | | | | | | | | | | | | | | | | | before GC header. (GH-29879) * Place __dict__ immediately before GC header for plain Python objects. * Fix up lazy dict creation logic to use managed dict pointers. * Manage values pointer, placing them directly before managed dict pointers. * Convert hint-based load/store attr specialization target managed dict classes. * Specialize LOAD_METHOD for managed dict objects. * Remove unsafe _PyObject_GC_Calloc function. * Remove unsafe _PyObject_GC_Malloc() function. * Add comment explaning use of Py_TPFLAGS_MANAGED_DICT. | |||||
* | bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963) | Ken Jin | 2021-12-07 | 1 | -5/+5 | |
| | ||||||
* | bpo-46004: Fix error location for loops with invalid targets (GH-29959) | Pablo Galindo Salgado | 2021-12-07 | 3 | -1/+5 | |
| | ||||||
* | Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" ↵ | Victor Stinner | 2021-12-07 | 28 | -34/+3228 | |
| | | | | | (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57. | |||||
* | bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) | Vinay Sajip | 2021-12-07 | 1 | -0/+9 | |
| | ||||||
* | bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746) | Irit Katriel | 2021-12-07 | 2 | -2/+51 | |
| | ||||||
* | bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵ | James Gerity | 2021-12-07 | 3 | -5/+5 | |
| | | | | (GH-29943) | |||||
* | bpo-45798: Let libmpdec decide which archs to build on macOS as done ↵ | Ned Deily | 2021-12-07 | 2 | -22/+5 | |
| | | | | previously. (GH-29949) | |||||
* | bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861) | 180909 | 2021-12-07 | 1 | -2/+2 | |
| | | | Automerge-Triggered-By: GH:asvetlov | |||||
* | bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948) | Steve Dower | 2021-12-07 | 2 | -0/+32 | |
| | ||||||
* | bpo-23819: asyncio: Replace AssertionError with TypeError where it makes ↵ | Kumar Aditya | 2021-12-06 | 5 | -9/+15 | |
| | | | | sense (GH-29894) | |||||
* | removal of duplicated text paragraph (#29666) | Taras Sereda | 2021-12-06 | 1 | -6/+0 | |
| | ||||||
* | bpo-45847: Fix uuid detection on macOS (GH-29946) | Christian Heimes | 2021-12-06 | 2 | -3/+44 | |
| | ||||||
* | bpo-45582: framework build: modPath must not be const (GH-29944) | Christian Heimes | 2021-12-06 | 1 | -1/+1 | |
| | | | Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> | |||||
* | bpo-45582: Fix getpath_isxfile() and test_embed on Windows (GH-29930) | neonene | 2021-12-06 | 2 | -3/+11 | |
| | ||||||
* | bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936) | Christian Heimes | 2021-12-06 | 4 | -11/+21 | |
| | ||||||
* | bpo-44035: Check autoconf files thoroughly (GH-29935) | Christian Heimes | 2021-12-06 | 3 | -7/+20 | |
| | | | | | | | | | Check that users don't push changes with outdated or patched autoconf. The presence of runstatedir option and aclocal 1.16.3 are good markers. Use my container image to regenerate autoconf files. "Check for changes" will fail later when any file is regenerated. Use ccache in check_generated_files to speed up testing. | |||||
* | bpo-45963: Make space for the InterpreterFrame of a generator in that ↵ | Mark Shannon | 2021-12-06 | 7 | -144/+127 | |
| | | | | | | | generator. (GH-29891) * Make generator, coroutine and async gen structs all the same size. * Store interpreter frame in generator (and coroutine). Reduces the number of allocations neeeded for a generator from two to one. | |||||
* | bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29931) | Ned Deily | 2021-12-06 | 3 | -14/+5 | |
| | ||||||
* | bpo-45840: Improve cross-references in the data model documentation (GH-29633) | Alex Waygood | 2021-12-05 | 2 | -54/+77 | |
| | ||||||
* | bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as ↵ | Serhiy Storchaka | 2021-12-05 | 3 | -1/+19 | |
| | | | | a base (GH-29298) | |||||
* | bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of ↵ | Serhiy Storchaka | 2021-12-05 | 3 | -1/+15 | |
| | | | | types.GenericAlias (GH-29294) | |||||
* | bpo-45662: Fix the repr of InitVar with a type alias to the built-in class ↵ | Serhiy Storchaka | 2021-12-05 | 3 | -1/+7 | |
| | | | | | (GH-29291) For example, InitVar[list[int]]. | |||||
* | bpo-37295: Optimize math.comb() and math.perm() (GH-29090) | Serhiy Storchaka | 2021-12-05 | 3 | -93/+198 | |
| | | | | | | | | For very large numbers use divide-and-conquer algorithm for getting benefit of Karatsuba multiplication of large numbers. Do calculations completely in C unsigned long long instead of Python integers if possible. | |||||
* | bpo-45582: Fix signature of _Py_Get_Getpath_CodeObject (GH-29921) | Christian Heimes | 2021-12-05 | 1 | -1/+1 | |
| | ||||||
* | Delete orphaned comment (#29917) | Guido van Rossum | 2021-12-05 | 1 | -5/+0 | |
| | | | (The function this described was deleted by PR #23743, the comment was accidentally retained.) | |||||
* | bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) | Serhiy Storchaka | 2021-12-05 | 3 | -13/+25 | |
| | | | | | Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict. | |||||
* | bpo-13236: Flush the output stream more often in unittest (GH-29864) | Serhiy Storchaka | 2021-12-04 | 4 | -5/+54 | |
| | | | It can prevent some losses when output to buffered stream. | |||||
* | Fixed documentation typo in compileall.py (GH-29912) | Vishal Pandey | 2021-12-04 | 1 | -1/+1 | |
| | ||||||
* | bpo-45847: Update whatsnew and add place holder entries for missing ↵ | Christian Heimes | 2021-12-04 | 3 | -7/+23 | |
| | | | | extensions (GH-29914) | |||||
* | bpo-45847: Port _ctypes partly to PY_STDLIB_MOD (GH-29747) | Christian Heimes | 2021-12-04 | 5 | -36/+482 | |
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | |||||
* | bpo-45695: Test out-of-tree builds on GHA (GH-29904) | Christian Heimes | 2021-12-04 | 2 | -3/+19 | |
| | ||||||
* | bpo-20751: Replace method example with attribute example, matching the ↵ | Raymond Hettinger | 2021-12-04 | 1 | -4/+32 | |
| | | | | descriptor howto (GH-29909) | |||||
* | bpo-45582 Fix prototype of _Py_Get_Getpath_CodeObject. (GH-29907) | Benjamin Peterson | 2021-12-03 | 1 | -1/+1 | |
| | | | Automerge-Triggered-By: GH:tiran | |||||
* | bpo-45582: Add a NOT operator to the condition in getpath_isxfile (GH-29906) | neonene | 2021-12-03 | 1 | -3/+9 | |
| | ||||||
* | bpo-45607: Make it possible to enrich exception displays via setting their ↵ | Irit Katriel | 2021-12-03 | 10 | -5/+183 | |
| | | | | __note__ field (GH-29880) | |||||
* | bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577) | Crowthebird | 2021-12-03 | 5 | -4/+5 | |
| | ||||||
* | bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before ↵ | Irit Katriel | 2021-12-03 | 2 | -7/+13 | |
| | | | | they are stored as StackItem, which should be normalized (GH-29890) | |||||
* | bpo-45950: Introduce Bootstrap Python again (#29859) | Christian Heimes | 2021-12-03 | 9 | -71/+185 | |
| | | | | | | | | | The build system now uses a :program:`_bootstrap_python` interpreter for freezing and deepfreezing again. To speed up build process the build tools :program:`_bootstrap_python` and :program:`_freeze_module` are no longer build with LTO. Cross building depends on a build Python interpreter, which must have same version and bytecode as target host Python. | |||||
* | bpo-45582: Fix out-of-tree build issues with new getpath (GH-29902) | Christian Heimes | 2021-12-03 | 4 | -11/+9 | |
| | ||||||
* | bpo-45885: Specialize COMPARE_OP (GH-29734) | Dennis Sweeney | 2021-12-03 | 9 | -60/+289 | |
| | | | | | | | * Add COMPARE_OP_ADAPTIVE adaptive instruction. * Add COMPARE_OP_FLOAT_JUMP, COMPARE_OP_INT_JUMP and COMPARE_OP_STR_JUMP specialized instructions. * Introduce and use _PyUnicode_Equal | |||||
* | bpo-45582: Port getpath[p].c to Python (GH-29041) | Steve Dower | 2021-12-03 | 40 | -3668/+3516 | |
| | | | | | The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms. | |||||
* | bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896) | Zachary Ware | 2021-12-02 | 1 | -1/+1 | |
| | ||||||
* | bpo-40280: Update what's new (GH-29893) | Christian Heimes | 2021-12-02 | 1 | -0/+5 | |
| |