summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45138: Revert GH-28240: Expand traced SQL statements (GH-31788)Erlend Egeberg Aasland2022-03-091-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 Aasland2022-03-091-14/+35
|
* Docstring: replace pysqlite with sqlite3 (GH-31758)Erlend Egeberg Aasland2022-03-092-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 Heimes2022-03-081-13/+23
|
* bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612)Erlend Egeberg Aasland2022-03-086-69/+67
|
* bpo-46932: Update bundled libexpat to 2.4.7 (GH-31736)Steve Dower2022-03-072-14/+155
|
* bpo-46933: Make pwd module optional (GH-31700)Christian Heimes2022-03-071-1/+1
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-46937: convert remaining functions to AC in _weakref (GH-31705)Kumar Aditya2022-03-072-22/+73
|
* bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)Christian Heimes2022-03-061-1/+1
|
* Remove trailing spaces (GH-31695)Serhiy Storchaka2022-03-051-1/+2
|
* bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)slateny2022-03-042-3/+2
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from lzma module (GH-31683)Dong-hee Na2022-03-041-10/+10
|
* bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672)Victor Stinner2022-03-031-16/+18
| | | | Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null().
* bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662)Victor Stinner2022-03-031-2/+20
| | | | Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe().
* bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604)Erlend Egeberg Aasland2022-03-033-4/+9
|
* bpo-46848: Move _PyBytes_Find() to internal C API (GH-31642)Victor Stinner2022-03-021-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 Sweeney2022-03-021-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 Aditya2022-03-012-10/+37
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from multibytecodec (GH-31475)Dong-hee Na2022-03-012-25/+103
|
* bpo-46771: Remove two controversial lines from Task.cancel() (GH-31623)Guido van Rossum2022-02-281-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 Aasland2022-02-281-7/+0
|
* bpo-46541: Remove unnecessary Py_VISIT (GH-31608)Dong-hee Na2022-02-282-6/+0
|
* bpo-46606: os.getgroups() doesn't overallocate (GH-31569)Victor Stinner2022-02-261-32/+25
|
* bpo-46836: Rename InterpreterFrame to _PyInterpreterFrame (GH-31583)Victor Stinner2022-02-253-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 Viktorin2022-02-251-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 Naoki2022-02-251-1/+1
|
* bpo-46656: Remove Py_NO_NAN macro (GH-31160)Victor Stinner2022-02-252-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 Heimes2022-02-241-124/+103
|
* bpo-46771: Implement task cancel requests counter (GH-31513)Tin Tvrtković2022-02-242-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 Stinner2022-02-232-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 Na2022-02-235-62/+132
|
* bpo-46765: Replace Locally Cached Strings with Statically Initialized ↵Eric Snow2022-02-237-221/+74
| | | | | Objects (gh-31366) https://bugs.python.org/issue46765
* bpo-46606: Reduce stack usage of getgroups and setgroups (GH-31073)Inada Naoki2022-02-221-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 Svetlov2022-02-211-23/+19
| | | | | | awaiter (GH-31383) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-46541: Remove usage of _Py_IDENTIFIER from pyexpat (GH-31468)Dong-hee Na2022-02-211-4/+8
|
* bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)Christian Heimes2022-02-201-7/+19
|
* bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397)Yilei "Dolee" Yang2022-02-181-0/+5
| | | | | | | | | | | | | | | The libexpat 2.4.1 upgrade from introduced the following new exported symbols: * `testingAccountingGetCountBytesDirect` * `testingAccountingGetCountBytesIndirect` * `unsignedCharToPrintable` * `XML_SetBillionLaughsAttackProtectionActivationThreshold` * `XML_SetBillionLaughsAttackProtectionMaximumAmplification` We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h) (The newer libexpat upgrade has no new symbols). Automerge-Triggered-By: GH:gpshead
* bpo-46541: Remove usage of _Py_IDENTIFIER from array module (GH-31376)Dong-hee Na2022-02-172-45/+139
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from mmap module (GH-31375)Dong-hee Na2022-02-161-4/+1
|
* bpo-46541: Replace _Py_IDENTIFIER with _Py_ID in sqlite3 (GH-31351)Erlend Egeberg Aasland2022-02-165-39/+61
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from csv module (GH-31372)Dong-hee Na2022-02-161-4/+10
|
* bpo-46541: Remove usage of _Py_IDENTIFIER from dbms modules (GH-31358)Dong-hee Na2022-02-162-6/+2
|
* bpo-46752: Add TaskGroup; add Task..cancelled(),.uncancel() (GH-31270)Guido van Rossum2022-02-152-1/+107
| | | | | | | | | | | | | | | | | asyncio/taskgroups.py is an adaptation of taskgroup.py from EdgeDb, with the following key changes: - Allow creating new tasks as long as the last task hasn't finished - Raise [Base]ExceptionGroup (directly) rather than TaskGroupError deriving from MultiError - Instead of monkey-patching the parent task's cancel() method, add a new public API to Task The Task class has a new internal flag, `_cancel_requested`, which is set when `.cancel()` is called successfully. The `.cancelling()` method returns the value of this flag. Further `.cancel()` calls while this flag is set return False. To reset this flag, call `.uncancel()`. Thus, a Task that catches and ignores `CancelledError` should call `.uncancel()` if it wants to be cancellable again; until it does so, it is deemed to be busy with uninterruptible cleanup. This new Task API helps solve the problem where TaskGroup needs to distinguish between whether the parent task being cancelled "from the outside" vs. "from inside". Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46728: fix docstring of combinations_with_replacement for consistency ↵DongGeon Lee2022-02-152-4/+4
| | | | (GH-31293)
* bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022)Cyril Jouve2022-02-125-31/+237
|
* bpo-45948: Remove constructor discrepancy in C version of ↵Jacob Walls2022-02-122-5/+5
| | | | | ElementTree.XMLParser (GH-31152) Both implementations accept target=None now.
* bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)Petr Viktorin2022-02-1113-23/+23
| | | | | * Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-46323: Fix double-free issue for borrowed refs (GH-31272)Dong-hee Na2022-02-111-1/+0
|
* bpo-44953: Add vectorcall for itemgetter and attrgetter instances (GH-27828)Dennis Sweeney2022-02-101-12/+78
|
* bpo-46323: Allow alloca(0) for python callback function of ctypes (GH-31249)Dong-hee Na2022-02-101-5/+1
|