]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750)
Pablo Galindo Salgado [Wed, 24 Nov 2021 18:30:03 +0000 (18:30 +0000)] 
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750)

3 years agobpo-45881: Use CC from env first for cross building (GH-29752)
Christian Heimes [Wed, 24 Nov 2021 17:53:33 +0000 (19:53 +0200)] 
bpo-45881: Use CC from env first for cross building (GH-29752)

3 years agobpo-45847: Fix _crypt detection on Ubuntu (GH-29743)
Christian Heimes [Wed, 24 Nov 2021 09:47:22 +0000 (11:47 +0200)] 
bpo-45847: Fix _crypt detection on Ubuntu (GH-29743)

3 years agobpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741)
Christian Heimes [Wed, 24 Nov 2021 09:20:37 +0000 (11:20 +0200)] 
bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741)

3 years agobpo-45514: Deprecate importlib resources legacy functions. (GH-29036)
Jason R. Coombs [Wed, 24 Nov 2021 07:51:37 +0000 (02:51 -0500)] 
bpo-45514: Deprecate importlib resources legacy functions. (GH-29036)

* bpo-45514: Apply changes from importlib_resources@a3ef4128c6

* Mark legacy functions as deprecated in the docs and link to the migration docs in importlib_resources docs.

* Apply changes from importlib_resources@329ae9d5f2c.

* Indicate importlib.resources as a module.

Co-authored-by: Filipe Laíns <lains@riseup.net>
3 years agobpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738)
Erlend Egeberg Aasland [Wed, 24 Nov 2021 07:19:17 +0000 (08:19 +0100)] 
bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738)

3 years agobpo-45886: Allow overriding freeze command for cross compiling (GH-29735)
Christian Heimes [Wed, 24 Nov 2021 07:07:15 +0000 (09:07 +0200)] 
bpo-45886: Allow overriding freeze command for cross compiling (GH-29735)

3 years agobpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)
Zachary Ware [Wed, 24 Nov 2021 04:41:04 +0000 (22:41 -0600)] 
bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)

3 years agobpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720)
Christian Heimes [Tue, 23 Nov 2021 21:58:38 +0000 (23:58 +0200)] 
bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720)

3 years agobpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727)
Christian Heimes [Tue, 23 Nov 2021 21:58:13 +0000 (23:58 +0200)] 
bpo-45847: Port _ssl and _hashlib to PY_STDLIB_MOD (GH-29727)

3 years agobpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725)
Christian Heimes [Tue, 23 Nov 2021 21:26:50 +0000 (23:26 +0200)] 
bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725)

3 years agobpo-45873: Restore Python 3.6 compatibility (GH-29730)
Christian Heimes [Tue, 23 Nov 2021 20:36:40 +0000 (22:36 +0200)] 
bpo-45873: Restore Python 3.6 compatibility (GH-29730)

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
3 years agobpo-39026: Fix Python.h when building with Xcode (GH-29488)
Victor Stinner [Tue, 23 Nov 2021 17:58:57 +0000 (18:58 +0100)] 
bpo-39026: Fix Python.h when building with Xcode (GH-29488)

Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.

3 years agobpo-45873: Get rid of bootstrap_python (#29717)
Guido van Rossum [Tue, 23 Nov 2021 16:56:06 +0000 (08:56 -0800)] 
bpo-45873: Get rid of bootstrap_python (#29717)

Instead we use $(PYTHON_FOR_REGEN) .../deepfreeze.py with the
frozen .h file as input, as we did for Windows in bpo-45850.

We also get rid of the code that generates the .h files
when make regen-frozen is run (i.e., .../make_frozen.py),
and the MANIFEST file.

Restore Python 3.8 and 3.9 as Windows host Python again

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agobpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_ca… (GH-29384)
Miro Hrončok [Tue, 23 Nov 2021 15:38:02 +0000 (16:38 +0100)] 
bpo-45703: Invalidate _NamespacePath cache on importlib.invalidate_ca… (GH-29384)

Consider the following directory structure:

    .
    └── PATH1
        └── namespace
            └── sub1
                └── __init__.py

And both PATH1 and PATH2 in sys path:

    $ PYTHONPATH=PATH1:PATH2 python3.11
    >>> import namespace
    >>> import namespace.sub1
    >>> namespace.__path__
    _NamespacePath(['.../PATH1/namespace'])
    >>> ...

While this interpreter still runs, PATH2/namespace/sub2 is created:

    .
    ├── PATH1
    │   └── namespace
    │       └── sub1
    │           └── __init__.py
    └── PATH2
        └── namespace
            └── sub2
                └── __init__.py

The newly created module cannot be imported:

    >>> ...
    >>> namespace.__path__
    _NamespacePath(['.../PATH1/namespace'])
    >>> import namespace.sub2
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'namespace.sub2'

Calling importlib.invalidate_caches() now newly allows to import it:

    >>> import importlib
    >>> importlib.invalidate_caches()
    >>> namespace.__path__
    _NamespacePath(['.../PATH1/namespace'])
    >>> import namespace.sub2
    >>> namespace.__path__
    _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace'])

This was not previously possible.

3 years agobpo-45783: Preserve file moves and deletions in the tests for the freeze tool. (GH...
Eric Snow [Tue, 23 Nov 2021 13:43:40 +0000 (06:43 -0700)] 
bpo-45783: Preserve file moves and deletions in the tests for the freeze tool. (GH-29527)

Use shutil.copytree rather than Git, which might be missing (or configured
differently) when testing Python built from a source release.

3 years agobpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_funct...
Nikita Sobolev [Tue, 23 Nov 2021 11:12:13 +0000 (14:12 +0300)] 
bpo-45878: convert `try/except` to `self.assertRaises` in `Lib/ctypes/test/test_functions.py` (GH-29721)

3 years agoClarify that discutils.(plat)include is for CPython's headers (GH-29578)
Petr Viktorin [Tue, 23 Nov 2021 10:28:14 +0000 (11:28 +0100)] 
Clarify that discutils.(plat)include is for CPython's headers (GH-29578)

Change the docs to note that "include" and "platinclude" are
for CPython's headers, and not necessarily for headers of
third-party libraries.

See discussion in: https://discuss.python.org/t/clarification-on-a-wheels-header-data/9305/19

3 years agobpo-44525: Copy free variables in bytecode to allow calls to inner functions to be...
Mark Shannon [Tue, 23 Nov 2021 09:53:24 +0000 (09:53 +0000)] 
bpo-44525: Copy free variables in bytecode to allow calls to inner functions to be specialized (GH-29595)

* Make internal APIs that take PyFrameConstructor take a PyFunctionObject instead.

* Add reference to function to frame, borrow references to builtins and globals.

* Add COPY_FREE_VARS instruction to allow specialization of calls to inner functions.

3 years agobpo-45847: Port _socket to PY_STDLIB_MOD (GH-29713)
Erlend Egeberg Aasland [Tue, 23 Nov 2021 07:52:05 +0000 (08:52 +0100)] 
bpo-45847: Port _socket to PY_STDLIB_MOD (GH-29713)

3 years agobpo-45847: Fix xxlimited and xxlimited_35 build conditions (GH-29715)
Erlend Egeberg Aasland [Tue, 23 Nov 2021 07:51:30 +0000 (08:51 +0100)] 
bpo-45847: Fix xxlimited and xxlimited_35 build conditions (GH-29715)

3 years agobpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)
Neil Schemenauer [Tue, 23 Nov 2021 07:51:02 +0000 (23:51 -0800)] 
bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)

3 years agobpo-42238: [doc] Announce the future removal of make suspicous. (GH-29652)
Julien Palard [Mon, 22 Nov 2021 23:17:54 +0000 (00:17 +0100)] 
bpo-42238: [doc] Announce the future removal of make suspicous. (GH-29652)

* bpo-42238: [doc] Announce the future removal of make suspicous.

* Add a news entry.

3 years agobpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707)
Erlend Egeberg Aasland [Mon, 22 Nov 2021 20:27:05 +0000 (21:27 +0100)] 
bpo-45847: Port xxlimited and xxlimited_35 to PY_STDLIB_MOD (GH-29707)

3 years agobpo-45850: Implement deep-freeze on Windows (#29648)
Guido van Rossum [Mon, 22 Nov 2021 18:09:48 +0000 (10:09 -0800)] 
bpo-45850: Implement deep-freeze on Windows (#29648)

Implement changes to build with deep-frozen modules on Windows.
Note that we now require Python 3.10 as the "bootstrap" or "host" Python.
This causes a modest startup speed (around 7%) on Windows.

3 years agobpo-45871: Refactor except matcher validation into a separate function so that it...
Irit Katriel [Mon, 22 Nov 2021 16:56:23 +0000 (16:56 +0000)] 
bpo-45871: Refactor except matcher validation into a separate function so that it can be reused. Add missing unit test. (GH-29711)

3 years agobpo-45847: port _struct to PY_STDLIB_MOD (GH-29706)
Christian Heimes [Mon, 22 Nov 2021 14:58:43 +0000 (16:58 +0200)] 
bpo-45847: port _struct to PY_STDLIB_MOD (GH-29706)

3 years agobpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691)
Carl Friedrich Bolz-Tereick [Mon, 22 Nov 2021 14:44:57 +0000 (15:44 +0100)] 
bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691)

3 years agobpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE (GH-29705)
Erlend Egeberg Aasland [Mon, 22 Nov 2021 14:37:25 +0000 (15:37 +0100)] 
bpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE (GH-29705)

Automerge-Triggered-By: GH:tiran
3 years agobpo-45847: Port nis module to PY_STDLIB_MOD (GH-29699)
Christian Heimes [Mon, 22 Nov 2021 14:18:41 +0000 (16:18 +0200)] 
bpo-45847: Port nis module to PY_STDLIB_MOD (GH-29699)

3 years agobpo-45813: Make sure that frame->generator is NULLed when generator is deallocated...
Mark Shannon [Mon, 22 Nov 2021 14:01:23 +0000 (14:01 +0000)] 
bpo-45813: Make sure that frame->generator is NULLed when generator is deallocated. (GH-29700)

3 years agobpo-45847: Port compression libs to PY_STDLIB_MOD (GH-29702)
Christian Heimes [Mon, 22 Nov 2021 13:52:29 +0000 (15:52 +0200)] 
bpo-45847: Port compression libs to PY_STDLIB_MOD (GH-29702)

3 years agobpo-45847: Port mmap, select, and _xxsubinterpreters to Py_STDLIB_MOD (GH-29703)
Erlend Egeberg Aasland [Mon, 22 Nov 2021 13:49:58 +0000 (14:49 +0100)] 
bpo-45847: Port mmap, select, and _xxsubinterpreters to Py_STDLIB_MOD (GH-29703)

3 years agobpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False...
Eric V. Smith [Mon, 22 Nov 2021 13:26:12 +0000 (08:26 -0500)] 
bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692)

Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory.

3 years agobpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696)
Erlend Egeberg Aasland [Mon, 22 Nov 2021 13:02:27 +0000 (14:02 +0100)] 
bpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697)
Christian Heimes [Mon, 22 Nov 2021 11:09:14 +0000 (13:09 +0200)] 
bpo-45847: Various PY_STDLIB_MOD cleanups (GH-29697)

3 years agobpo-45847: Port _lfprof, _opcode, _asyncio, _queue, _statistics, and _typing to PY_ST...
Erlend Egeberg Aasland [Mon, 22 Nov 2021 09:57:50 +0000 (10:57 +0100)] 
bpo-45847: Port _lfprof, _opcode, _asyncio, _queue, _statistics, and _typing to PY_STDLIB_MOD_SIMPLE (GH-29690)

Automerge-Triggered-By: GH:tiran
3 years agoFix out-of-tree build support for multissltest (GH-29694)
Christian Heimes [Mon, 22 Nov 2021 09:50:53 +0000 (11:50 +0200)] 
Fix out-of-tree build support for multissltest (GH-29694)

3 years agobpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_...
Erlend Egeberg Aasland [Mon, 22 Nov 2021 08:45:41 +0000 (09:45 +0100)] 
bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_MOD_SIMPLE (GH-29689)

Automerge-Triggered-By: GH:tiran
3 years agobpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE (GH...
Erlend Egeberg Aasland [Mon, 22 Nov 2021 08:05:36 +0000 (09:05 +0100)] 
bpo-45847: Port array, _contextvars, math, and cmath to PY_STDLIB_MOD_SIMPLE (GH-29688)

3 years agobpo-45723: Add helpers for save/restore env (GH-29637)
Erlend Egeberg Aasland [Mon, 22 Nov 2021 08:05:06 +0000 (09:05 +0100)] 
bpo-45723: Add helpers for save/restore env (GH-29637)

3 years agobpo-45766: Add direct proportion option to linear_regression(). (#29490)
Raymond Hettinger [Sun, 21 Nov 2021 14:39:26 +0000 (08:39 -0600)] 
bpo-45766: Add direct proportion option to linear_regression(). (#29490)

* bpo-45766: Add direct proportion option to linear_regression().

* Update 2021-11-09-09-18-06.bpo-45766.dvbcMf.rst

* Use ellipsis to avoid round-off issues.

* Update Misc/NEWS.d/next/Library/2021-11-09-09-18-06.bpo-45766.dvbcMf.rst

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update signature in main docs

* Fix missing comma

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685)
Christian Heimes [Sun, 21 Nov 2021 13:08:47 +0000 (15:08 +0200)] 
bpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685)

3 years agobpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668)
Christian Heimes [Sun, 21 Nov 2021 09:45:31 +0000 (11:45 +0200)] 
bpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668)

3 years agoEnsure the str member of the tokenizer is always initialised (GH-29681)
Pablo Galindo Salgado [Sun, 21 Nov 2021 02:06:39 +0000 (02:06 +0000)] 
Ensure the str member of the tokenizer is always initialised (GH-29681)

3 years agoReactivate primary mechanism to retrieve frames in the gdb helpers (GH-29682)
Pablo Galindo Salgado [Sun, 21 Nov 2021 02:06:16 +0000 (02:06 +0000)] 
Reactivate primary mechanism to retrieve frames in the gdb helpers (GH-29682)

3 years agoRefactor parser compilation units into specific components (GH-29676)
Pablo Galindo Salgado [Sun, 21 Nov 2021 01:08:50 +0000 (01:08 +0000)] 
Refactor parser compilation units into specific components (GH-29676)

3 years agoAdded kw_only parameter to make_dataclasses. (GH-29679)
Eric V. Smith [Sat, 20 Nov 2021 23:25:56 +0000 (18:25 -0500)] 
Added kw_only parameter to make_dataclasses. (GH-29679)

3 years agobpo-44733: Add max_tasks_per_child to ProcessPoolExecutor (GH-27373)
Logan Jones [Sat, 20 Nov 2021 20:19:41 +0000 (15:19 -0500)] 
bpo-44733: Add max_tasks_per_child to ProcessPoolExecutor (GH-27373)

Co-authored-by: Antoine Pitrou <antoine@python.org>
3 years agobpo-45845: Change link for pyserial (GH-29675)
Terry Jan Reedy [Sat, 20 Nov 2021 19:56:42 +0000 (14:56 -0500)] 
bpo-45845: Change link for pyserial (GH-29675)

3 years agobpo-45811: Improve error message when source code contains invisible control characte...
Pablo Galindo Salgado [Sat, 20 Nov 2021 18:28:28 +0000 (18:28 +0000)] 
bpo-45811: Improve error message when source code contains invisible control characters (GH-29654)

3 years agobpo-45450: Improve syntax error for parenthesized arguments (GH-28906)
Pablo Galindo Salgado [Sat, 20 Nov 2021 18:27:40 +0000 (18:27 +0000)] 
bpo-45450: Improve syntax error for parenthesized arguments (GH-28906)

3 years agobpo-44844: Remove unresponsive web link (GH-29651)
Terry Jan Reedy [Sat, 20 Nov 2021 18:21:14 +0000 (13:21 -0500)] 
bpo-44844: Remove unresponsive web link (GH-29651)

Threading notes by Aahz from OSCON 2001.

3 years agobpo-45494: Fix error location in EOF tokenizer errors (GH-29108)
Pablo Galindo Salgado [Sat, 20 Nov 2021 17:40:59 +0000 (17:40 +0000)] 
bpo-45494: Fix error location in EOF tokenizer errors (GH-29108)

3 years agobpo-45852: Fix the Counter/iter test for statistics.mode() (GH-29667)
Raymond Hettinger [Sat, 20 Nov 2021 17:01:09 +0000 (11:01 -0600)] 
bpo-45852:  Fix the Counter/iter test for statistics.mode() (GH-29667)

Suggested by Stefan Pochmann.

3 years ago[doc] Clarify MRO precedence in descriptor super binding section (GH-29539)
Jouke Witteveen [Sat, 20 Nov 2021 16:55:35 +0000 (17:55 +0100)] 
[doc] Clarify MRO precedence in descriptor super binding section (GH-29539)

A similar sentence is present in the 'Invocation from super' section of
the descriptor HOWTO, where it is already correct.

3 years agobpo-45851: Avoid full sort in statistics.multimode() (#29662)
Raymond Hettinger [Sat, 20 Nov 2021 16:04:37 +0000 (10:04 -0600)] 
bpo-45851: Avoid full sort in statistics.multimode() (#29662)

Suggested by Stefan Pochmann.

3 years agobpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230)
Dylan Van Assche [Sat, 20 Nov 2021 15:52:00 +0000 (16:52 +0100)] 
bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig (GH-23230)

Co-authored-by: Éric Araujo <merwok@netwok.org>
3 years agobpo-45847: Port test modules to PY_STDLIB_MOD (GH-29660)
Christian Heimes [Sat, 20 Nov 2021 15:43:10 +0000 (17:43 +0200)] 
bpo-45847: Port test modules to PY_STDLIB_MOD (GH-29660)

3 years agobpo-45848: Allow the parser to get error lines from encoded files (GH-29646)
Pablo Galindo Salgado [Sat, 20 Nov 2021 14:36:07 +0000 (14:36 +0000)] 
bpo-45848: Allow the parser to get error lines from encoded files (GH-29646)

3 years agobpo-45774: Fix SQLite load extension autodetection (GH-29659)
Erlend Egeberg Aasland [Sat, 20 Nov 2021 14:02:52 +0000 (15:02 +0100)] 
bpo-45774: Fix SQLite load extension autodetection (GH-29659)

3 years agobpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641)
JMcB [Sat, 20 Nov 2021 09:35:39 +0000 (09:35 +0000)] 
bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641)

3 years agobpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644)
Christian Heimes [Sat, 20 Nov 2021 09:18:48 +0000 (11:18 +0200)] 
bpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644)

3 years agobpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required...
Brett Cannon [Sat, 20 Nov 2021 00:40:34 +0000 (16:40 -0800)] 
bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170)

It is now considered a historical accident that e.g. `for` loops and the `iter()` built-in function do not require the iterators they work with to define `__iter__`, only `__next__`.

3 years agobpo-45506: Fix test_embed expecting to not find stdlib in source tree build when...
Steve Dower [Sat, 20 Nov 2021 00:11:40 +0000 (00:11 +0000)] 
bpo-45506: Fix test_embed expecting to not find stdlib in source tree build when stdlib has been installed. (GH-29649)

3 years agobpo-45727: Make the syntax error for missing comma more consistent (GH-29427)
Pablo Galindo Salgado [Fri, 19 Nov 2021 23:11:57 +0000 (23:11 +0000)] 
bpo-45727: Make the syntax error for missing comma more consistent (GH-29427)

3 years agobpo-45847: Port builtin hashlib extensions to PY_STDLIB_MOD (GH-29642)
Christian Heimes [Fri, 19 Nov 2021 19:20:32 +0000 (21:20 +0200)] 
bpo-45847: Port builtin hashlib extensions to PY_STDLIB_MOD (GH-29642)

3 years agobpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634)
Raymond Hettinger [Fri, 19 Nov 2021 18:43:49 +0000 (12:43 -0600)] 
bpo-19072: Classmethod can wrap other classmethod like descriptors (GH-29634)

staticmethod() also became callable in Python 3.10.

See: b83861f02.

3 years agobpo-42238: [doc]: Hide false positive in make suspicious. (GH-29636)
Julien Palard [Fri, 19 Nov 2021 18:11:24 +0000 (19:11 +0100)] 
bpo-42238: [doc]: Hide false positive in make suspicious. (GH-29636)

3 years agobpo-45507: EOFErrors should be thrown for truncated gzip members (GH-29029)
Ruben Vorderman [Fri, 19 Nov 2021 18:07:05 +0000 (19:07 +0100)] 
bpo-45507: EOFErrors should be thrown for truncated gzip members (GH-29029)

3 years agobpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616)
Christian Heimes [Fri, 19 Nov 2021 15:40:57 +0000 (17:40 +0200)] 
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616)

3 years agoFix link to exception handling notes (GH-29617)
Irit Katriel [Fri, 19 Nov 2021 15:40:18 +0000 (15:40 +0000)] 
Fix link to exception handling notes (GH-29617)

3 years agobpo-45709: Fix tracing when exception is handled. (GH-29638)
Mark Shannon [Fri, 19 Nov 2021 15:16:49 +0000 (15:16 +0000)] 
bpo-45709: Fix tracing when exception is handled. (GH-29638)

3 years agobpo-45774: Autoconfiscate SQLite detection (GH-29507)
Erlend Egeberg Aasland [Fri, 19 Nov 2021 14:10:41 +0000 (15:10 +0100)] 
bpo-45774: Autoconfiscate SQLite detection (GH-29507)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45609: Specialize STORE_SUBSCR (GH-29242)
Dennis Sweeney [Fri, 19 Nov 2021 10:30:37 +0000 (05:30 -0500)] 
bpo-45609: Specialize STORE_SUBSCR (GH-29242)

* Specialize STORE_SUBSCR for list[int], and dict[object]

* Adds _PyDict_SetItem_Take2 which consumes references to the key and values.

3 years agobpo-45788: Link sys.prefix doc to 'Installation paths' (#29606)
Terry Jan Reedy [Thu, 18 Nov 2021 20:08:24 +0000 (15:08 -0500)] 
bpo-45788: Link sys.prefix doc to 'Installation paths' (#29606)

... To the Installation paths section of the sysconfig doc.

3 years agobpo-45640: [docs] Tokens are now clickable (GH-29260)
Arthur Milchior [Thu, 18 Nov 2021 16:06:38 +0000 (17:06 +0100)] 
bpo-45640: [docs] Tokens are now clickable (GH-29260)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years ago[doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the data...
Alex Waygood [Thu, 18 Nov 2021 15:54:25 +0000 (15:54 +0000)] 
[doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the  data model (GH-29389)

The documentation explaining Python's data model does not adequately explain
the differences between ``__getitem__`` and ``__class_getitem__``, nor does it
explain when each is called. There is an attempt at explaining
``__class_getitem__`` in the documentation for ``GenericAlias`` objects, but
this does not give sufficient clarity into how the method works. Moreover, it
is the wrong place for that information to be found; the explanation of
``__class_getitem__`` should be in the documentation explaining the data model.

This PR has been split off from GH-29335.

3 years agobpo-45837: Properly deprecate turtle.RawTurtle.settiltangle (GH-29618)
Hugo van Kemenade [Thu, 18 Nov 2021 15:02:48 +0000 (17:02 +0200)] 
bpo-45837: Properly deprecate turtle.RawTurtle.settiltangle (GH-29618)

3 years agobpo-45573: Add Modules/Setup.stdlib with conditional modules (GH-29615)
Christian Heimes [Thu, 18 Nov 2021 13:40:01 +0000 (15:40 +0200)] 
bpo-45573: Add Modules/Setup.stdlib with conditional modules (GH-29615)

3 years agobpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. (GH-29592)
Mark Shannon [Thu, 18 Nov 2021 11:02:14 +0000 (11:02 +0000)] 
bpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. (GH-29592)

3 years agobpo-45573: check for ossaudiodev in configure (GH-29614)
Christian Heimes [Thu, 18 Nov 2021 09:56:26 +0000 (11:56 +0200)] 
bpo-45573: check for ossaudiodev in configure (GH-29614)

3 years agobpo-45510: Specialize BINARY_SUBTRACT (GH-29523)
Dong-hee Na [Thu, 18 Nov 2021 09:19:58 +0000 (18:19 +0900)] 
bpo-45510: Specialize BINARY_SUBTRACT (GH-29523)

3 years agobpo-45512: Use Argument Clinic to set sqlite3 isolation level (GH-29593)
Erlend Egeberg Aasland [Thu, 18 Nov 2021 09:18:09 +0000 (10:18 +0100)] 
bpo-45512: Use Argument Clinic to set sqlite3 isolation level (GH-29593)

3 years agobpo-45835: Fix race condition in test_queue (#29601)
Sam Gross [Thu, 18 Nov 2021 08:51:30 +0000 (03:51 -0500)] 
bpo-45835: Fix race condition in test_queue (#29601)

Some of the tests in test_queue had a race condition in which a
non-sentinel value could be enqueued after the final sentinel value
leading to not all the inputs being processed (and test failures).

This changes feed() to enqueue a sentinel once the inputs are exhausted,
which guarantees that the final queued object is a sentinel. This
requires the number of feeder threads to match the number of consumer
threads, but that's already the case in the relevant tests.

3 years agobpo-45573: Introduce extension module flags in Makefile (GH-29594)
Christian Heimes [Thu, 18 Nov 2021 08:18:44 +0000 (10:18 +0200)] 
bpo-45573: Introduce extension module flags in Makefile (GH-29594)

``configure`` now uses a standardized format to forward state, compiler
flags, and linker flags to ``Makefile``, ``setup.py``, and
``Modules/Setup``. ``makesetup`` use the new variables by default if a
module line does not contain any compiler or linker flags. ``setup.py``
has a new function ``addext()``.

For a module ``egg``, configure adds:

* ``MODULE_EGG`` with value yes, missing, disabled, or n/a
* ``MODULE_EGG_CFLAGS``
* ``MODULE_EGG_LDFLAGS``

``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists
dependencies such as header files and static libs.

Signed-off-by: Christian Heimes <christian@python.org>
3 years agobpo-45429: Merge whatsnew about time.sleep (GH-29589)
Dong-hee Na [Thu, 18 Nov 2021 00:26:59 +0000 (09:26 +0900)] 
bpo-45429: Merge whatsnew about time.sleep (GH-29589)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years ago[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571)
ch33zer [Wed, 17 Nov 2021 23:25:53 +0000 (15:25 -0800)] 
[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571)

3 years agobpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` (GH-29590)
Dennis Sweeney [Wed, 17 Nov 2021 23:03:52 +0000 (18:03 -0500)] 
bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` (GH-29590)

3 years agobpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)
Sam Gross [Wed, 17 Nov 2021 20:51:03 +0000 (15:51 -0500)] 
bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)

Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads,
the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini
and should not force the default raw allocator.

3 years agobpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596)
Victor Stinner [Wed, 17 Nov 2021 20:12:20 +0000 (21:12 +0100)] 
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596)

If the string is ASCII only and doesn't need to escape characters,
write the whole string with a single write() syscall.

3 years agobpo-45512: Simplify manage isolation level (GH-29562)
Dong-hee Na [Wed, 17 Nov 2021 12:47:02 +0000 (21:47 +0900)] 
bpo-45512: Simplify manage isolation level (GH-29562)

3 years agobpo-45512: Extend `sqlite3` test suite regarding isolation levels (GH-29576)
Erlend Egeberg Aasland [Wed, 17 Nov 2021 10:01:54 +0000 (11:01 +0100)] 
bpo-45512: Extend `sqlite3` test suite regarding isolation levels (GH-29576)

3 years agobpo-28806: Continue work: improve the netrc library (GH-26330)
Emmanuel Arias [Wed, 17 Nov 2021 09:07:54 +0000 (06:07 -0300)] 
bpo-28806: Continue work: improve the netrc library (GH-26330)

Continue with the improvement of the library netrc

Original work and report Xiang Zhang <angwerzx@126.com>

* 📜🤖 Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
3 years agobpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provi...
Pablo Galindo Salgado [Tue, 16 Nov 2021 20:30:47 +0000 (20:30 +0000)] 
bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582)

3 years agobpo-37800: Clean up importlib documentation for some module attributes (GH-10016)
Géry Ogam [Tue, 16 Nov 2021 19:59:45 +0000 (20:59 +0100)] 
bpo-37800: Clean up importlib documentation for some module attributes (GH-10016)

Automerge-Triggered-By: GH:brettcannon
3 years agobpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580)
Pablo Galindo Salgado [Tue, 16 Nov 2021 19:51:52 +0000 (19:51 +0000)] 
bpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580)

3 years agobpo-45126: Harden `sqlite3` connection initialisation (GH-28227)
Erlend Egeberg Aasland [Tue, 16 Nov 2021 14:53:35 +0000 (15:53 +0100)] 
bpo-45126: Harden `sqlite3` connection initialisation (GH-28227)

3 years agobpo-45636: Simplify BINARY_OP (GH-29565)
Brandt Bucher [Tue, 16 Nov 2021 13:53:57 +0000 (05:53 -0800)] 
bpo-45636: Simplify BINARY_OP (GH-29565)

3 years agobpo-45429: Support CREATE_WAITABLE_TIMER_HIGH_RESOLUTION if possible (GH-29203)
Dong-hee Na [Tue, 16 Nov 2021 13:41:20 +0000 (22:41 +0900)] 
bpo-45429: Support CREATE_WAITABLE_TIMER_HIGH_RESOLUTION if possible (GH-29203)