aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules
Commit message (Collapse)AuthorAge
* gh-132987: Support __index__() in the socket module (GH-133093)Serhiy Storchaka26 hours
| | | | | | | | ntohl(), htonl(), if_indextoname(), getaddrinfo() now use __index__() if available. Also fix the Argument Clinic names for module-level functions (although this does not affect the user).
* gh-132987: Support __index__() in the stat module (GH-133097)Serhiy Storchaka26 hours
| | | Use it for the mode arguments in filemode(), S_IMODE(), S_ISDIR(), etc.
* gh-130317: Fix strict aliasing in PyFloat_Pack8() (#133150)Victor Stinner28 hours
| | | | * Fix strict aliasing in PyFloat_Pack8() and PyFloat_Pack4(). * Fix _testcapi.float_set_snan() on x86 (32-bit).
* gh-132987: Support __index__() in the lzma module (GH-133099)Serhiy Storchaka28 hours
|
* gh-132987: Support __index__() in the select.kqueue_event constructor ↵Serhiy Storchaka29 hours
| | | | (GH-133094)
* gh-132987: Support __index__() in the ssl.SSLContext.options setter (GH-133098)Serhiy Storchaka29 hours
|
* gh-132987: Support __index__() in hashlib.scrypt() (GH-133100)Serhiy Storchaka29 hours
| | | | Even if such signature is not supported by PyArg_ParseTupleAndKeywords(), Argument Clinic supports it with inlined converters.
* gh-132987: Support __index__() in the posix module (GH-133096)Serhiy Storchaka29 hours
| | | | | | Support it for the dev_t values in mknod(), major(), minor() and makedev(), CPU numbers in sched_setaffinity(), group numbers in setgroups(), configuration name in fpathconf(), pathconf(), confstr(), and sysconf().
* gh-87859: Track Code Object Local Kinds For Arguments (gh-132980)Eric Snow40 hours
| | | | | Doing this was always the intention. I was finally motivated to find the time to do it. See #87859 (comment).
* gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)Eric Snow40 hours
| | | | | The function indicates whether or not the function has a return statement. This is used by a later change related treating some functions like scripts.
* gh-132775: Add _PyMarshal_GetXIData() (gh-133108)Eric Snow43 hours
| | | Note that the bulk of this change is tests.
* gh-122320: Limit dict key versions used by test_opcache. (gh-132961)Neil Schemenauer47 hours
| | | | | The `test_load_global_module()` test consumes a lot of dict key versions. Skip the test if we have consumed half of the available versions that can be used for the "load global" cache.
* gh-132775: Cleanup Related to crossinterp.c Before Further Changes (gh-132974)Eric Snow2 days
| | | This change consists of adding tests and moving code around, with some renaming thrown in.
* gh-132952: Speed up startup by importing _io instead of io (#132957)Jelle Zijlstra2 days
|
* gh-132915: Try to detect a buffer overflow in fcntl() and ioctl() (GH-132919)Serhiy Storchaka2 days
| | | | | SystemError is raised when buffer overflow is detected. The stack and memory can already be corrupted, so treat this error as fatal.
* gh-87135: Raise PythonFinalizationError when joining a blocked daemon thread ↵Petr Viktorin2 days
| | | | | | | | | | | | | | | | (gh-130402) If `Py_IsFinalizing()` is true, non-daemon threads (other than the current one) are done, and daemon threads are prevented from running, so they cannot finalize themselves and become done. Joining them (without timeout) would block forever. Raise PythonFinalizationError instead of hanging. Raise even when a timeout is given, for consistency with trying to join your own thread. See gh-123940 for a use case: calling `join()` from `__del__`. This is ill-advised, but an exception should at least make it easier to diagnose.
* gh-130317: Fix PyFloat_Pack/Unpack[24] for NaN's with payload (#130452)Sergey B Kirpichev2 days
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-53032: support IEEE 754 contexts in the decimal module (#122003)Sergey B Kirpichev2 days
| | | | | | | | This was in C version from beginning, but available only on conditional compilation (EXTRA_FUNCTIONALITY). Current patch adds function to create IEEE contexts to the pure-python module as well. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-133061: do not mention `UINT32_MAX` in HMAC user-facing messages (#133062)Bénédikt Tran3 days
|
* gh-132993: expose `HASHLIB_GIL_MINSIZE` to private extension modules (#132999)Bénédikt Tran3 days
|
* gh-132991: Add socket.IP_FREEBIND constant (GH-132998)Alyssa Ross4 days
|
* gh-131298: update `Modules/Setup` after HACL* static linking changes (#133012)Anthony Sottile4 days
| | | This was overlooked in 5f2ba152a0471f6f556ca2d9486e5ba486fcfbde.
* gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse ↵Serhiy Storchaka4 days
| | | | (GH-132988)
* gh-132781: Cleanup Code Related to NotShareableError (gh-132782)Eric Snow5 days
| | | | | | | | | | The following are added to the internal C-API: * _PyErr_FormatV() * _PyErr_SetModuleNotFoundError() * _PyXIData_GetNotShareableErrorType() * _PyXIData_FormatNotShareableError() We also drop _PyXIData_lookup_context_t and _PyXIData_GetLookupContext().
* gh-91048: Prevent optimizing away the asyncio debug offsets structure on ↵Pablo Galindo Salgado5 days
| | | | | | | | | Windows (#132963) To avoid having the debug sections being optimised away by the compiler we use __attribute__((used)) on gcc and clang but in Windows this is not supported by the Microsoft compiler and there is no equivalent flag. Unfortunately Windows offers almost no alternative other than exporting the symbol in the dynamic table or using it somehow.
* gh-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960)Eric Snow5 days
| | | This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
* gh-91048: Fix _testexternalinspection.c on FreeBSD (#132945)Victor Stinner5 days
|
* gh-132527: Added missing `w` typecode to array() error message (#132529)Christian Veenhuis5 days
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
* gh-91048: Refactor _testexternalinspection and add Windows support (#132852)Pablo Galindo Salgado5 days
|
* gh-131423: Update OpenSSL data to 3.4.1 on Linux (#131618)Bénédikt Tran5 days
| | | | | | | | | | | | OpenSSL 3.4.1 mnemonics are not compatible with OpenSSL 3.4.0 ones since they were renumbered [1, 2]. Consequently, `_ssl_data_34.h` is renamed to `_ssl_data_340.h` and `_ssl_data_34.h` now contains OpenSSL 3.4.1 mnemonics. We also refine the mnemonics that are selected, discarding those that are mnemonic-like but should not be used as such. More precisely, we remove the ERR_LIB_MASK and ERR_LIB_OFFSET entries from OpenSSL 1.1.1 data. [1]: https://github.com/openssl/openssl/issues/26316 [2]: https://github.com/openssl/openssl/issues/26388
* gh-132868: use `_Alignof()` C11 operator in the `struct` module (#132872)Sergey B Kirpichev5 days
|
* gh-131591: Reset RemoteDebuggerSuupport state after fork (#132793)Nadeshiko Manju6 days
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-132776: Cleanup for XIBufferViewType (gh-132821)Eric Snow6 days
| | | | | * add notes * rename XIBufferViewObject to xibufferview * move memoryview XIData code to memoryobject.c
* gh-127385: Add F_DUPFD_QUERY to fcntl (GH-127386)RUANG (James Roy)6 days
|
* gh-132742: Refactor fcntl.fcntl() and fcntl.ioctl() (GH-132768)Serhiy Storchaka6 days
| | | | | | | | | | | * Support arbitrary bytes-like objects, not only bytes, in fcntl(). * The fcntl() buffer argument is now null-terminated. * Automatically retry an ioctl() system calls failing with EINTR. * Release the GIL for an ioctl() system call even for large bytes-like object. * Do not silence arbitrary errors whet try to get a buffer. * Optimize argument parsing, check the argument type before trying to get a buffer or convert it to integer. * Fix some error messages.
* gh-132162: Add tests for Py_UniversalNewlineFgets() (#132164)alexey semenyuk6 days
|
* gh-121249: fix naming of struct tagPyCArgObject members (#132863)Sergey B Kirpichev6 days
| | | | | | | It seems, no code actually uses these names, only sizes of the unnamed union members are important. Though, I think it's good to be here consistent wrt type codes ('g' for long double, etc). This amends 85f89cb3e6.
* gh-131591: Check for remote debug in PyErr_CheckSignals (#132853)Pablo Galindo Salgado7 days
| | | | | | | | For the same reasons as running the GC, this will allow sections that run in native code for long periods without executing bytecode to also run the remote debugger protocol without having to wait until bytecode is executed Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-91048: Add ability to list all pending asyncio tasks in a process ↵Łukasz Langa7 days
| | | | remotely (#132807)
* gh-127604: Fix refleak in faulthandler_dump_c_stack_py() (#132840)Victor Stinner7 days
|
* gh-121249: adjust formatting codes for complex types in struct/ctypes (#132827)Sergey B Kirpichev7 days
| | | | | * F - for float _Complex * D - for double _Complex * G - for long double _Complex (not supported by the struct module)
* gh-132734: Fix build on FreeBSD and old Linux (GH-132829)Serhiy Storchaka7 days
|
* gh-132776: Minor Fixes for XIBufferViewType (gh-132779)Eric Snow8 days
| | | | | | | | This change covers the following: * dealloc: no cleanup if no buffer set * dealloc: handle already-destroyed interpreter correctly * handle errors in _memoryview_from_xid() correctly * clean up the buffer if the xidata is never used
* gh-132470: Prevent crash in ctypes.CField when `byte_size` is incorrect ↵dura0ok8 days
| | | | | | | | | | | (#132475) Fix: Prevent crash in ctypes.CField when byte_size does not match type size (gh-132470) When creating a ctypes.CField with an incorrect byte_size (e.g., using `byte_size=2` for `ctypes.c_byte`), the code would previously abort due to the failed assertion `byte_size == info->size`. This commit replaces the assertion with a proper error handling mechanism that raises a `ValueError` when `byte_size` does not match the expected type size. This prevents the crash and provides a more informative error message to the us Co-authored-by: sobolevn <mail@sobolevn.me>
* GH-131296: Avoid invalid signed char comparison in getpath.c assertion ↵Chris Eibl8 days
| | | | (GH-131594)
* gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703)Sergey B Kirpichev8 days
|
* gh-132734: Add new constants for Bluetooth sockets (GH-132735)Serhiy Storchaka8 days
|
* gh-101410: Customize error messages for 1-arg math functions (#129497)Sergey B Kirpichev8 days
| | | | | | This also reverts loghelper() change in 75f59bb629 for integer input. The error message shouldn't include argument value here. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-127604: Add C stack dumps to `faulthandler` (#128159)Peter Bierma9 days
|
* gh-132753: Argument Clinic: Fix support of c_default for the bool converter ↵Serhiy Storchaka10 days
| | | | (GH-132754)