summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-46009: Do not exhaust generator when send() method raises (GH-29986)Mark Shannon2021-12-085-21/+30
|
* doc: Add link issue 44010 (GH-29454)Rafael Fontenelle2021-12-081-1/+1
|
* bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967)Christian Heimes2021-12-083-67/+85
|
* Fix double-space in exception message (GH-29955)Ned Batchelder2021-12-081-1/+1
|
* bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START ↵Irit Katriel2021-12-081-1/+3
| | | | (GH-29975)
* bpo-20751: Match variable name to the example. (GH-29980)Raymond Hettinger2021-12-081-4/+8
|
* bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build ↵Steve Dower2021-12-083-6/+6
| | | | directories (GH-29979)
* bpo-46008: Move Py*State init into distinct functions. (gh-29977)Eric Snow2021-12-084-103/+299
| | | | | Previously, basic initialization of PyInterprterState happened in PyInterpreterState_New() (along with allocation and adding the new interpreter to the runtime state). This prevented us from initializing interpreter states that were allocated separately (e.g. statically or in a free list). We've addressed that here by factoring out a separate function just for initialization. We've done the same for PyThreadState. _PyRuntimeState was sorted out when we added it since _PyRuntime is statically allocated. However, here we update the existing init code to line up with the functions for PyInterpreterState and PyThreadState. https://bugs.python.org/issue46008
* bpo-46008: Add _PyInterpreterState_Main(). (gh-29978)Eric Snow2021-12-084-9/+13
| | | | | PyInterpreterState_Main() is a plain function exposed in the public C-API. For internal usage we can take the more efficient approach in this PR. https://bugs.python.org/issue46008
* bpo-46008: Stop calling _PyThreadState_Init() in new_threadstate(). (gh-29973)Eric Snow2021-12-083-9/+17
| | | | | This simplifies new_threadstate(). We also rename _PyThreadState_Init() to _PyThreadState_SetCurrent() to reflect what it actually does. https://bugs.python.org/issue46008
* bpo-46008: Use PyMem_RawCalloc() to allocate PyThreadState. (GH-29972)Eric Snow2021-12-071-38/+2
| | | | | Doing so allows us to stop assigning various fields to `NULL` and 0. It also more closely matches the behavior of a static initializer. Automerge-Triggered-By: GH:ericsnowcurrently
* bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)Eric Snow2021-12-078-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 Snow2021-12-073-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 Heimes2021-12-075-479/+38
|
* bpo-45582: Fix framework path and bootstrap build (GH-29954)Christian Heimes2021-12-072-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 Shannon2021-12-071-20/+7
|
* bpo-45635: standardize error handling in traceback.c (GH-29905)Irit Katriel2021-12-071-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 Shannon2021-12-0719-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 Jin2021-12-071-5/+5
|
* bpo-46004: Fix error location for loops with invalid targets (GH-29959)Pablo Galindo Salgado2021-12-073-1/+5
|
* Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" ↵Victor Stinner2021-12-0728-34/+3228
| | | | | (GH-29951) This reverts commit 9bf2cbc4c498812e14f20d86acb61c53928a5a57.
* bpo-35821: Add an example to Logger.propagate documentation. (GH-29841)Vinay Sajip2021-12-071-0/+9
|
* bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746)Irit Katriel2021-12-072-2/+51
|
* bpo-46001: Change OverflowError to RecursionError in JSON library docstrings ↵James Gerity2021-12-073-5/+5
| | | | (GH-29943)
* bpo-45798: Let libmpdec decide which archs to build on macOS as done ↵Ned Deily2021-12-072-22/+5
| | | | previously. (GH-29949)
* bpo-28953: Use `raise from` when raising new IncompleteRead (GH-29861)1809092021-12-071-2/+2
| | | Automerge-Triggered-By: GH:asvetlov
* bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)Steve Dower2021-12-072-0/+32
|
* bpo-23819: asyncio: Replace AssertionError with TypeError where it makes ↵Kumar Aditya2021-12-065-9/+15
| | | | sense (GH-29894)
* removal of duplicated text paragraph (#29666)Taras Sereda2021-12-061-6/+0
|
* bpo-45847: Fix uuid detection on macOS (GH-29946)Christian Heimes2021-12-062-3/+44
|
* bpo-45582: framework build: modPath must not be const (GH-29944)Christian Heimes2021-12-061-1/+1
| | | Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-45582: Fix getpath_isxfile() and test_embed on Windows (GH-29930)neonene2021-12-062-3/+11
|
* bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936)Christian Heimes2021-12-064-11/+21
|
* bpo-44035: Check autoconf files thoroughly (GH-29935)Christian Heimes2021-12-063-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 Shannon2021-12-067-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 Deily2021-12-063-14/+5
|
* bpo-45840: Improve cross-references in the data model documentation (GH-29633)Alex Waygood2021-12-052-54/+77
|
* bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as ↵Serhiy Storchaka2021-12-053-1/+19
| | | | a base (GH-29298)
* bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of ↵Serhiy Storchaka2021-12-053-1/+15
| | | | types.GenericAlias (GH-29294)
* bpo-45662: Fix the repr of InitVar with a type alias to the built-in class ↵Serhiy Storchaka2021-12-053-1/+7
| | | | | (GH-29291) For example, InitVar[list[int]].
* bpo-37295: Optimize math.comb() and math.perm() (GH-29090)Serhiy Storchaka2021-12-053-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 Heimes2021-12-051-1/+1
|
* Delete orphaned comment (#29917)Guido van Rossum2021-12-051-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 Storchaka2021-12-053-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 Storchaka2021-12-044-5/+54
| | | It can prevent some losses when output to buffered stream.
* Fixed documentation typo in compileall.py (GH-29912)Vishal Pandey2021-12-041-1/+1
|
* bpo-45847: Update whatsnew and add place holder entries for missing ↵Christian Heimes2021-12-043-7/+23
| | | | extensions (GH-29914)
* bpo-45847: Port _ctypes partly to PY_STDLIB_MOD (GH-29747)Christian Heimes2021-12-045-36/+482
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45695: Test out-of-tree builds on GHA (GH-29904)Christian Heimes2021-12-042-3/+19
|
* bpo-20751: Replace method example with attribute example, matching the ↵Raymond Hettinger2021-12-041-4/+32
| | | | descriptor howto (GH-29909)