summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour ↵Erlend E. Aasland2022-11-1214-62/+537
| | | | | | | | | | (#93823) Introduce the autocommit attribute to Connection and the autocommit parameter to connect() for PEP 249-compliant transaction handling. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* gh-99357: Close the event loop when it is no longer used in ↵Xiao Chen2022-11-121-21/+24
| | | | test_uncancel_structured_blocks (#99414)
* gh-99392: Fix sqlite3 converter recipes (#99393)naglis2022-11-121-3/+22
|
* gh-98762: Fix locations of match sub-patterns (GH-98775)Irit Katriel2022-11-123-130/+212
|
* gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395)Ethan Furman2022-11-122-15/+73
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* GH-81057: Remove static state from arraymodule (#99409)Kumar Aditya2022-11-121-5/+12
|
* GH-94597: add deprecation warnings for subclassing `AbstractChildWatcher` ↵Kumar Aditya2022-11-125-3/+21
| | | | (#99386)
* gh-80448: argparse: Fix IndexError on store_true action (#15656)Hai Shi2022-11-123-2/+7
| | | | | Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-81057: Move PyImport_Inittab to _PyRuntimeState (gh-99402)Eric Snow2022-11-129-8/+80
| | | | | We actually don't move PyImport_Inittab. Instead, we make a copy that we keep on _PyRuntimeState and use only that after Py_Initialize(). We also prevent folks from modifying PyImport_Inittab (the best we can) after that point. https://github.com/python/cpython/issues/81057
* gh-81057: Move the Allocators to _PyRuntimeState (gh-99217)Eric Snow2022-11-1114-900/+1104
| | | | | The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of 16 global variables. We are moving all 16 to the _PyRuntimeState struct as part of the work for gh-81057. (If PEP 684 is accepted then we will follow up by moving them all to PyInterpreterState.) https://github.com/python/cpython/issues/81057
* gh-99305: Speed up secrets.token_hex() ~2x (#99306)NewUserHa2022-11-112-2/+2
| | | | | simple code modernization. Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-81057: Add PyInterpreterState.static_objects (gh-99397)Eric Snow2022-11-116-5/+35
| | | | | As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.) https://github.com/python/cpython/issues/81057
* gh-81057: Move the Extension Modules Cache to _PyRuntimeState (gh-99355)Eric Snow2022-11-117-33/+104
| | | | | We also move the closely related max_module_number and add comments documenting the group of struct members. https://github.com/python/cpython/issues/81057
* gh-81057: Generate a Separate Initializer For Each Part of the Global ↵Eric Snow2022-11-114-1517/+1528
| | | | | | | Objects Initializer (gh-99389) Up until now we had a single generated initializer macro for all the statically declared global objects in _PyRuntimeState, including several one-offs (e.g. the empty tuple). The one-offs don't need to be generated, but were because we had one big initializer. Having separate initializers for set of generated global objects allows us to generate only the ones we need to. This allows us to add initializers for one-off global objects without having to generate them. https://github.com/python/cpython/issues/81057
* gh-98707: configure --with-system-libmpdec and --with-system-expat no longer ↵Miro Hrončok2022-11-114-7/+11
| | | | include vendored headers (#98711)
* Fix typo in Tools/wasm/README.md (GH-99384)Ikko Ashimine2022-11-111-1/+1
| | | | | Noticable -> Noticeable Automerge-Triggered-By: GH:AlexWaygood
* gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372)Steve Dower2022-11-111-0/+9
|
* gh-99254: remove all unused consts from code objects (GH-99255)Irit Katriel2022-11-115-33/+142
|
* gh-99325: Remove unused `NameError` handling (#99326)Nikita Sobolev2022-11-112-16/+6
|
* Update github CI to use OpenSSL 1.1.1s and 3.0.7. (#99364)Gregory P. Smith2022-11-112-5/+5
|
* gh-98086: Now ``patch.dict`` can decorate async functions (#98095)Nikita Sobolev2022-11-113-0/+36
|
* gh-84522: Add for-loop to apply-method-to-sequence FAQ (#94660)Samuel Sloniker2022-11-111-3/+15
|
* gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (#98437)Wei-Hsiang (Matt) Wang2022-11-111-4/+4
| | | | | fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py [why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
* gh-99300: Use Py_NewRef() in Objects/ directory (#99354)Victor Stinner2022-11-1013-128/+66
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory.
* gh-99300: Use Py_NewRef() in Objects/ directory (#99351)Victor Stinner2022-11-105-188/+100
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory.
* gh-99300: Use Py_NewRef() in Objects/ directory (#99335)Victor Stinner2022-11-108-244/+120
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory.
* GH-99183: Document behavior of count() for empty substrings (GH-99339)Raymond Hettinger2022-11-101-0/+6
|
* gh-99300: Use Py_NewRef() in Objects/listobject.c (#99336)Victor Stinner2022-11-101-40/+20
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/listobject.c.
* GH-98831: Remove all remaining DISPATCH() calls from bytecodes.c (#99271)Guido van Rossum2022-11-102-169/+175
| | | | | Also mark those opcodes that have no stack effect as such. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* GH-99298: Don't perform jumps before error handling (GH-99299)Brandt Bucher2022-11-103-30/+40
|
* gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)Vincent Fazio2022-11-103-0/+54
| | | | | | | | | | | Check to see if `base_executable` exists. If it does not, attempt to use known alternative names of the python binary to find an executable in the path specified by `home`. If no alternative is found, previous behavior is preserved. Signed-off-by: Vincent Fazio <vfazio@gmail.com> Signed-off-by: Vincent Fazio <vfazio@gmail.com>
* gh-99277: remove older version of `get_write_buffer_limits` (#99280)Carlo2022-11-102-6/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-90110: Update the C-analyzer Tool (gh-99307)Eric Snow2022-11-104-90/+14
|
* gh-99300: Use Py_NewRef() in Objects/dictobject.c (#99333)Victor Stinner2022-11-101-92/+48
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/dictobject.c.
* gh-99300: Use Py_NewRef() in Objects/ directory (#99332)Victor Stinner2022-11-109-156/+77
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory.
* gh-99300: Use Py_NewRef() in Parser/ directory (#99330)Victor Stinner2022-11-104-11/+5
| | | | Replace Py_INCREF() with Py_NewRef() in C files of the Parser/ directory and in the PEG generator.
* GH-96421: Insert shim frame on entry to interpreter (GH-96319)Mark Shannon2022-11-1024-344/+448
| | | | | | * Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault() * Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames.
* gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)Anton Ryzhov2022-11-103-3/+12
|
* GH-99257: Check the owner's type when specializing slots (GH-99258)Brandt Bucher2022-11-103-0/+78
|
* gh-99320: remove tests for old-style class from `test_complex` (#99321)Nikita Sobolev2022-11-101-6/+1
|
* gh-99281: [csv] remove try/except, `complex` always exists (#99282)Nikita Sobolev2022-11-101-5/+0
|
* gh-99300: Use Py_NewRef() in Python/ceval.c (#99318)Victor Stinner2022-11-103-128/+68
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Python/ceval.c and related files.
* gh-99300: Use Py_NewRef() in Python/ directory (#99317)Victor Stinner2022-11-1010-327/+169
| | | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. Update Parser/asdl_c.py to regenerate Python/Python-ast.c.
* gh-99300: Use Py_NewRef() in Python/ directory (#99302)Victor Stinner2022-11-1014-80/+41
| | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory.
* bpo-34272: Reorganize C API tests. (GH-8551)Serhiy Storchaka2022-11-106-0/+9
| | | | Move some C API tests into Lib/test/test_capi/.
* gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-98833)Nikita Sobolev2022-11-092-2/+5
| | | | | Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood
* GH-99205: Mark new interpreters and threads as non-static (GH-99268)Brandt Bucher2022-11-092-0/+10
|
* Update reference to the size of PyPI (#99076)jmcb2022-11-091-2/+2
| | | | | Update reference to the size of PyPI Last changed in 2008 (528576031d9655ca8004260a2bf2c783f77d1da1).
* GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)Brandt Bucher2022-11-0918-759/+563
|
* GH-90699: disallow `_Py_IDENTIFIER` in core code (GH-99210)Kumar Aditya2022-11-092-4/+10
|