Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-46996: Remove support of Tcl/Tk < 8.5.12 (GH-31839) | Serhiy Storchaka | 2022-03-17 | 1 | -24/+4 |
| | |||||
* | bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695) | Erlend Egeberg Aasland | 2022-03-17 | 2 | -5/+7 |
| | | | | | | | | | | | | * Improve exception compliance with PEP 249 * Raise InterfaceError instead of ProgrammingError for SQLITE_MISUSE. If SQLITE_MISUSE is raised, it is a sqlite3 module bug. Users of the sqlite3 module are not responsible for using the SQLite C API correctly. * Don't overwrite BufferError with ValueError when conversion to BLOB fails. * Raise ProgrammingError instead of Warning if user tries to execute() more than one SQL statement. * Raise ProgrammingError instead of ValueError if an SQL query contains null characters. * Make sure `_pysqlite_set_result` raises an exception if it returns -1. | ||||
* | bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950) | Andrew Svetlov | 2022-03-17 | 2 | -91/+22 |
| | |||||
* | bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898) | Christian Heimes | 2022-03-15 | 1 | -1/+3 |
| | |||||
* | bpo-46920: Remove code that has explainers why it was disabled (GH-31813) | Oleg Iarygin | 2022-03-14 | 2 | -34/+0 |
| | |||||
* | bpo-46920: Remove code that has no explainer why it was disabled (GH-31814) | Oleg Iarygin | 2022-03-14 | 1 | -39/+2 |
| | |||||
* | bpo-40280: select: Use NULL for empty fdset (GH-31865) | Christian Heimes | 2022-03-14 | 1 | -1/+6 |
| | | | | | wasm32-emscripten does not support exceptfds and requires NULL. Python now passes NULL instead of a fdset pointer when the input list is empty. This works fine on all platforms and might even be a tiny bit faster. | ||||
* | bpo-46994: Accept explicit contextvars.Context in asyncio create_task() API ↵ | Andrew Svetlov | 2022-03-14 | 2 | -12/+25 |
| | | | | (GH-31837) | ||||
* | bpo-47003: Cleanup _overlapped module (GH-31848) | Andrew Svetlov | 2022-03-13 | 2 | -81/+99 |
| | |||||
* | bpo-46805: Add low level UDP socket functions to asyncio (GH-31455) | Alex Grönholm | 2022-03-13 | 2 | -5/+167 |
| | |||||
* | bpo-46906: Add PyFloat_Pack8() to the C API (GH-31657) | Victor Stinner | 2022-03-11 | 5 | -30/+103 |
| | | | | | | | | | | | | | | | | | | | | | | Add new functions to pack and unpack C double (serialize and deserialize): * PyFloat_Pack2(), PyFloat_Pack4(), PyFloat_Pack8() * PyFloat_Unpack2(), PyFloat_Unpack4(), PyFloat_Unpack8() Document these functions and add unit tests. Rename private functions and move them from the internal C API to the public C API: * _PyFloat_Pack2() => PyFloat_Pack2() * _PyFloat_Pack4() => PyFloat_Pack4() * _PyFloat_Pack8() => PyFloat_Pack8() * _PyFloat_Unpack2() => PyFloat_Unpack2() * _PyFloat_Unpack4() => PyFloat_Unpack4() * _PyFloat_Unpack8() => PyFloat_Unpack8() Replace the "unsigned char*" type with "char*" which is more common and easy to use. | ||||
* | bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829) | Christian Heimes | 2022-03-11 | 2 | -1/+16 |
| | | | Emscripten's socket emulation is limited. AF_UNIX, AF_PACKET, setsockopt(), and most SO_* constants are not supported. | ||||
* | bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) | Oleksandr Pavlyk | 2022-03-11 | 1 | -6/+20 |
| | | | | | | | | | | | In Linux kernel 5.14 one can dynamically request size of altstacksize based on hardware capabilities with getauxval(AT_MINSIGSTKSZ). This changes allows for Python extension's request to Linux kernel to use AMX_TILE instruction set on Sapphire Rapids Xeon processor to succeed, unblocking use of the ISA in frameworks. Introduced HAVE_LINUX_AUXVEC_H in configure.ac and pyconfig.h.in Used cpython_autoconf:269 docker container to generate configure. | ||||
* | bpo-46968: Add os.sysconf_names['SC_MINSIGSTKSZ'] (GH-31824) | Victor Stinner | 2022-03-11 | 1 | -0/+3 |
| | |||||
* | Remove an old, elementtree-specific leak detector (GH-31811) | Oleg Iarygin | 2022-03-11 | 1 | -13/+0 |
| | |||||
* | sqlite3: normalise pre-acronym determiners (GH-31772) | Erlend Egeberg Aasland | 2022-03-11 | 2 | -7/+7 |
| | | | For consistency, replace "a SQL" with "an SQL". | ||||
* | bpo-45138: Revert GH-28240: Expand traced SQL statements (GH-31788) | Erlend Egeberg Aasland | 2022-03-09 | 1 | -35/+14 |
| | | | | | This reverts commit d1777515f9f53b452a4231d68196a7c0e5deb879. Automerge-Triggered-By: GH:JelleZijlstra | ||||
* | bpo-45138: Expand traced SQL statements in `sqlite3` trace callback (GH-28240) | Erlend Egeberg Aasland | 2022-03-09 | 1 | -14/+35 |
| | |||||
* | Docstring: replace pysqlite with sqlite3 (GH-31758) | Erlend Egeberg Aasland | 2022-03-09 | 2 | -7/+7 |
| | | | | Replace two instances of "pysqlite" with "sqlite3" in sqlite3 docstrings. Also reword "is a no-op" to "does nothing" for clarity. | ||||
* | bpo-23325: Fix SIG_IGN and SIG_DFL int comparison in signal module (GH-31759) | Christian Heimes | 2022-03-08 | 1 | -13/+23 |
| | |||||
* | bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) | Erlend Egeberg Aasland | 2022-03-08 | 6 | -69/+67 |
| | |||||
* | bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736) | Steve Dower | 2022-03-07 | 2 | -14/+155 |
| | |||||
* | bpo-46933: Make pwd module optional (GH-31700) | Christian Heimes | 2022-03-07 | 1 | -1/+1 |
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
* | bpo-46937: convert remaining functions to AC in _weakref (GH-31705) | Kumar Aditya | 2022-03-07 | 2 | -22/+73 |
| | |||||
* | bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699) | Christian Heimes | 2022-03-06 | 1 | -1/+1 |
| | |||||
* | Remove trailing spaces (GH-31695) | Serhiy Storchaka | 2022-03-05 | 1 | -1/+2 |
| | |||||
* | bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631) | slateny | 2022-03-04 | 2 | -3/+2 |
| | |||||
* | bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683) | Dong-hee Na | 2022-03-04 | 1 | -10/+10 |
| | |||||
* | bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) | Victor Stinner | 2022-03-03 | 1 | -16/+18 |
| | | | | Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null(). | ||||
* | bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) | Victor Stinner | 2022-03-03 | 1 | -2/+20 |
| | | | | Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe(). | ||||
* | bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604) | Erlend Egeberg Aasland | 2022-03-03 | 3 | -4/+9 |
| | |||||
* | bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642) | Victor Stinner | 2022-03-02 | 1 | -0/+1 |
| | | | | | | Move _PyBytes_Find() and _PyBytes_ReverseFind() functions to the internal C API. bytesobject.c now includes pycore_bytesobject.h. | ||||
* | bpo-46848: Use stringlib/fastsearch in mmap (GH-31625) | Dennis Sweeney | 2022-03-02 | 1 | -19/+13 |
| | | | Speed up mmap.find(). Add _PyBytes_Find() and _PyBytes_ReverseFind(). | ||||
* | bpo-46541: remove usage of _Py_IDENTIFIER from _ssl module (GH-31599) | Kumar Aditya | 2022-03-01 | 2 | -10/+37 |
| | |||||
* | bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475) | Dong-hee Na | 2022-03-01 | 2 | -25/+103 |
| | |||||
* | bpo-46771: Remove two controversial lines from Task.cancel() (GH-31623) | Guido van Rossum | 2022-02-28 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | Also from the _asyncio C accelerator module, and adjust one test that the change caused to fail. For more discussion see the discussion starting here: https://github.com/python/cpython/pull/31394#issuecomment-1053545331 (Basically, @asvetlov proposed to return False from cancel() when there is already a pending cancellation, and I went along, even though it wasn't necessary for the task group implementation, and @agronholm has come up with a counterexample that fails because of this change. So now I'm changing it back to the old semantics (but still bumping the counter) until we can have a proper discussion about this.) | ||||
* | bpo-46541: Remove unneeded visits from sqlite3 (GH-31609) | Erlend Egeberg Aasland | 2022-02-28 | 1 | -7/+0 |
| | |||||
* | bpo-46541: Remove unnecessary Py_VISIT (GH-31608) | Dong-hee Na | 2022-02-28 | 2 | -6/+0 |
| | |||||
* | bpo-46606: os.getgroups() doesn't overallocate (GH-31569) | Victor Stinner | 2022-02-26 | 1 | -32/+25 |
| | |||||
* | bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583) | Victor Stinner | 2022-02-25 | 3 | -6/+6 |
| | | | | | Rename also struct _interpreter_frame to struct _PyInterpreterFrame. Reduce risk of name conflicts if a project includes pycore_frame.h. | ||||
* | bpo-46748: Don't import <stdbool.h> in public headers (GH-31553) | Petr Viktorin | 2022-02-25 | 1 | -0/+3 |
| | | | | | | | <stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included. It's OK to use stdbool outside the public headers, though. https://bugs.python.org/issue46748 | ||||
* | bpo-46606: Remove redundant +1. (GH-31561) | Inada Naoki | 2022-02-25 | 1 | -1/+1 |
| | |||||
* | bpo-46656: Remove Py_NO_NAN macro (GH-31160) | Victor Stinner | 2022-02-25 | 2 | -4/+4 |
| | | | | Building Python now requires support for floating point Not-a-Number (NaN): remove the Py_NO_NAN macro. | ||||
* | bpo-45898: Remove duplicate symbols from _ctypes/cfield.c (GH-29791) | Christian Heimes | 2022-02-24 | 1 | -124/+103 |
| | |||||
* | bpo-46771: Implement task cancel requests counter (GH-31513) | Tin Tvrtković | 2022-02-24 | 2 | -37/+27 |
| | | | | | This changes cancelling() and uncancel() to return the count of pending cancellations. This can be used to avoid bugs in certain edge cases (e.g. two timeouts going off at the same time). | ||||
* | bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171) | Victor Stinner | 2022-02-23 | 2 | -11/+13 |
| | | | | | | | | | | Remove the HAVE_PY_SET_53BIT_PRECISION macro (moved to the internal C API). * Move HAVE_PY_SET_53BIT_PRECISION macro to pycore_pymath.h. * Replace PY_NO_SHORT_FLOAT_REPR macro with _PY_SHORT_FLOAT_REPR macro which is always defined. gcc -Wundef emits a warning when using _PY_SHORT_FLOAT_REPR but the macro is not defined, if pycore_pymath.h include was forgotten. | ||||
* | bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487) | Dong-hee Na | 2022-02-23 | 5 | -62/+132 |
| | |||||
* | bpo-46765: Replace Locally Cached Strings with Statically Initialized ↵ | Eric Snow | 2022-02-23 | 7 | -221/+74 |
| | | | | | Objects (gh-31366) https://bugs.python.org/issue46765 | ||||
* | bpo-46606: Reduce stack usage of getgroups and setgroups (GH-31073) | Inada Naoki | 2022-02-22 | 1 | -56/+23 |
| | | | NGROUPS_MAX was 32 before Linux 2.6.4 but 65536 since Linux 2.6.4. | ||||
* | bpo-45390: Propagate CancelledError's message from cancelled task to its ↵ | Andrew Svetlov | 2022-02-21 | 1 | -23/+19 |
| | | | | | | awaiter (GH-31383) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> |