summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)Gareth Rees2021-12-131-0/+3
|
* bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with ↵Kumar Aditya2021-12-126-11/+11
| | | | PyImport_ImportModule (GH-30046)
* bpo-46049: Fixes ._pth support on non-Windows (GH-30051)Steve Dower2021-12-112-19/+17
|
* bpo-46048: Fix parsing of single character lines in getpath readlines() ↵Steve Dower2021-12-111-3/+3
| | | | (GH-30048)
* bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)neonene2021-12-101-1/+1
| | | This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.
* bpo-46023: Fix makesetup handling of disabled rule (GH-30001)Christian Heimes2021-12-101-0/+3
|
* bpo-46000: Improve NetBSD curses compatibility (GH-29947)Thomas Klausner2021-12-101-2/+2
|
* bpo-43931: Export Python version as API data (GH-25577)Gabriele N. Tornetta2021-12-101-0/+1
| | | | | When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...). Automerge-Triggered-By: GH:pablogsal
* bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)Steve Dower2021-12-091-2/+6
|
* bpo-46025: Fix a crash in the atexit module for auto-unregistering functions ↵Pablo Galindo Salgado2021-12-091-1/+4
| | | | (GH-30002)
* bpo-46016: fcntl module add FreeBSD's F_DUP2FD_CLOEXEC flag support (GH-29993)David CARLIER2021-12-081-0/+8
|
* bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992)Steve Dower2021-12-082-9/+12
| | | Also ensures that pybuilddir.txt is written early enough in the build to be picked up by later steps.
* bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build ↵Steve Dower2021-12-081-0/+4
| | | | directories (GH-29979)
* bpo-46008: Add _PyInterpreterState_Main(). (gh-29978)Eric Snow2021-12-081-2/+2
| | | | | 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-081-2/+2
| | | | | 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: Move thread-related interpreter state into a sub-struct. (gh-29971)Eric Snow2021-12-071-4/+4
| | | | | 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-45847: Revert Port _ctypes partly to PY_STDLIB_MOD (GH-29747) (GH-29969)Christian Heimes2021-12-071-1/+1
|
* bpo-45582: Fix framework path and bootstrap build (GH-29954)Christian Heimes2021-12-071-9/+12
| | | | | | | * 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>
* bpo-45947: Place dict and values pointer at fixed (negative) offset just ↵Mark Shannon2021-12-072-40/+41
| | | | | | | | | | | | | | | | | | | 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-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)Steve Dower2021-12-071-0/+2
|
* 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-061-1/+1
|
* bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936)Christian Heimes2021-12-061-1/+2
|
* bpo-37295: Optimize math.comb() and math.perm() (GH-29090)Serhiy Storchaka2021-12-051-93/+192
| | | | | | | | 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
|
* bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)Serhiy Storchaka2021-12-051-13/+10
| | | | | Getting an attribute via attrib.get() simultaneously with replacing the attrib dict can lead to access to deallocated dict.
* bpo-45847: Update whatsnew and add place holder entries for missing ↵Christian Heimes2021-12-041-0/+12
| | | | extensions (GH-29914)
* bpo-45847: Port _ctypes partly to PY_STDLIB_MOD (GH-29747)Christian Heimes2021-12-041-0/+4
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45582: Add a NOT operator to the condition in getpath_isxfile (GH-29906)neonene2021-12-031-3/+9
|
* bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before ↵Irit Katriel2021-12-031-7/+12
| | | | they are stored as StackItem, which should be normalized (GH-29890)
* bpo-45582: Fix out-of-tree build issues with new getpath (GH-29902)Christian Heimes2021-12-031-1/+1
|
* bpo-45582: Port getpath[p].c to Python (GH-29041)Steve Dower2021-12-037-1407/+1538
| | | | | 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-45917: Add math.exp2() method - return 2 raised to the power of x (GH-29829)Gideon2021-11-291-0/+4
| | | Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)Erlend Egeberg Aasland2021-11-291-1/+1
|
* bpo-45786: Allocate space for frame in frame object. (GH-29729)Mark Shannon2021-11-291-1/+0
|
* bpo-45847: Fix _multiprocessing on platforms without sem_open (GH-29833)Christian Heimes2021-11-294-11/+84
|
* bpo-45847: Port _multiprocessing to PY_STDLIB_MOD (GH-29768)Erlend Egeberg Aasland2021-11-281-0/+1
|
* bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587)Ma Lin2021-11-271-2/+3
| | | | | * Fix thread lock in zlib.Decompress.flush() may go wrong Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
* bpo-40280: Move hard-coded feature checks to configure (GH-29789)Christian Heimes2021-11-261-20/+0
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-40280: Add configure check for socket shutdown (GH-29795)Christian Heimes2021-11-261-0/+4
|
* bpo-40280: Use Setup.stdlib static for wasm builds (GH-29784)Christian Heimes2021-11-261-2/+2
| | | ``Modules/Setup.stdlib`` contains ``Setup`` lines for all stdlib extension modules for which ``configure`` has detected their dependencies. The file is not used yet and still under development. To use the file, do ``ln -sfr Modules/Setup.stdlib Modules/Setup.local``.
* bpo-41498: Fix build on platforms without sigset_t (GH-29770)Christian Heimes2021-11-254-18/+31
|
* bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750)Pablo Galindo Salgado2021-11-241-1/+1
|
* bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741)Christian Heimes2021-11-242-4/+8
|
* bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738)Erlend Egeberg Aasland2021-11-241-0/+3
|
* bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720)Christian Heimes2021-11-231-0/+5
|
* bpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727)Christian Heimes2021-11-231-0/+5
|
* bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725)Christian Heimes2021-11-231-0/+2
|
* bpo-45847: Port _socket to PY_STDLIB_MOD (GH-29713)Erlend Egeberg Aasland2021-11-231-0/+1
|
* bpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707)Erlend Egeberg Aasland2021-11-221-0/+5
|