]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)
Miss Islington (bot) [Tue, 7 Dec 2021 15:48:32 +0000 (07:48 -0800)] 
bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)

(cherry picked from commit c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
3 years agobpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base...
Miss Islington (bot) [Tue, 7 Dec 2021 12:00:06 +0000 (04:00 -0800)] 
bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) (GH-29928)

(cherry picked from commit 2b318ce1c988b7b6e3caf293d55f289e066b6e0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years ago[3.9] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) (GH...
Miss Islington (bot) [Tue, 7 Dec 2021 11:45:49 +0000 (03:45 -0800)] 
[3.9] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) (GH-29958)

3 years agobpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH...
Miss Islington (bot) [Tue, 7 Dec 2021 10:25:02 +0000 (02:25 -0800)] 
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings (GH-29943)

(cherry picked from commit 8db06528cacc94e67eb1fb2e4c2acc061a515671)

Co-authored-by: James Gerity <snoopjedi@gmail.com>
3 years ago[3.9] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29938)
Christian Heimes [Mon, 6 Dec 2021 12:48:54 +0000 (14:48 +0200)] 
[3.9] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29938)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29933)
Ned Deily [Mon, 6 Dec 2021 07:39:56 +0000 (02:39 -0500)] 
bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29933)

3 years agobpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAl...
Miss Islington (bot) [Sun, 5 Dec 2021 21:25:43 +0000 (13:25 -0800)] 
bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)

(cherry picked from commit 446be166861b2f08f87f74018113dd98ca5fca02)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-27946: Fix possible crash in ElementTree.Element (GH-29915)
Miss Islington (bot) [Sun, 5 Dec 2021 19:04:59 +0000 (11:04 -0800)] 
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)

Getting an attribute via attrib.get() simultaneously with replacing
the attrib dict can lead to access to deallocated dict.
(cherry picked from commit d15cdb2f32f572ce56d7120135da24b9fdce4c99)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agobpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)
Miss Islington (bot) [Sat, 4 Dec 2021 05:28:30 +0000 (21:28 -0800)] 
bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)

(cherry picked from commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7)

Co-authored-by: Zachary Ware <zach@python.org>
3 years agodocs: Improve example for urlparse() (GH-29816) (GH-29889)
Miss Islington (bot) [Thu, 2 Dec 2021 10:24:51 +0000 (02:24 -0800)] 
docs: Improve example for urlparse() (GH-29816) (GH-29889)

(cherry picked from commit 226d22ff2d209495621550eb78e81ed4c0fe0152)

Co-authored-by: Christian Clauss <cclauss@me.com>
3 years agobpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29878)
Miss Islington (bot) [Wed, 1 Dec 2021 15:40:50 +0000 (07:40 -0800)] 
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29878)

(cherry picked from commit f27bef30438d2f07f19de91e021f34b77ccc4b20)

Co-authored-by: Rob <r4226@pm.me>
Co-authored-by: Rob <r4226@pm.me>
3 years agobpo-37658: Actually return result in race condition (GH-29202) (GH-29832)
Miss Islington (bot) [Tue, 30 Nov 2021 13:39:13 +0000 (05:39 -0800)] 
bpo-37658: Actually return result in race condition (GH-29202) (GH-29832)

(cherry picked from commit 934a82623793e9d52b85f74d5395d65927a52205)

Co-authored-by: Sam Bull <aa6bs0@sambull.org>
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
3 years agobpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH...
Miss Islington (bot) [Tue, 30 Nov 2021 11:50:28 +0000 (03:50 -0800)] 
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29863)

(cherry picked from commit f97ec09baf8431494fd2ef5133090c7b0afd0551)

Co-authored-by: Vishal Pandey <vishalpandeyviptsk@gmail.com>
3 years agobpo-45931: Prevent Directory.Build.props/targets from leaking from directories above...
Miss Islington (bot) [Mon, 29 Nov 2021 23:08:53 +0000 (15:08 -0800)] 
bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854)

(cherry picked from commit 734ed3538314c9651ae64d5e2e0e98aae3aec17b)

Co-authored-by: David Federman <david.federman@outlook.com>
3 years agobpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)
Miss Islington (bot) [Mon, 29 Nov 2021 18:30:38 +0000 (10:30 -0800)] 
bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)

Expanded ``astuple()`` docs, warning about deepcopy being applied
and providing a workaround.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c1f93f0d378958dfae4f24aad0c0088e3e04e403)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
3 years ago[3.9] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29850)
Miss Islington (bot) [Mon, 29 Nov 2021 17:53:37 +0000 (09:53 -0800)] 
[3.9] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29850)

3 years ago[3.9] [Doc] Add info to logging cookbook about running logging socket listeners i...
Miss Islington (bot) [Mon, 29 Nov 2021 13:49:20 +0000 (05:49 -0800)] 
[3.9] [Doc] Add info to logging cookbook about running logging socket listeners i… (GH-29838) (GH-29840)

3 years agobpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
Miss Islington (bot) [Mon, 29 Nov 2021 12:28:46 +0000 (04:28 -0800)] 
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)

(cherry picked from commit 7431448b817d3bf87f71661cf8f3d537807ab2e2)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
3 years agobpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726...
Irit Katriel [Mon, 29 Nov 2021 10:11:48 +0000 (10:11 +0000)] 
bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29827)

(cherry picked from commit 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5)

3 years ago[3.9] bpo-19460: Add test for MIMENonMultipart (GH-29817) (#29819)
Miss Islington (bot) [Sun, 28 Nov 2021 14:33:50 +0000 (06:33 -0800)] 
[3.9] bpo-19460: Add test for MIMENonMultipart (GH-29817) (#29819)

* bpo-19460: Add test for MIMENonMultipart (GH-29817)
(cherry picked from commit 46c8d915715aa2bd4d697482aa051fe974d440e1)

Co-authored-by: 180909 <wjh180909@gmail.com>
* Update 2021-11-28-15-25-02.bpo-19460.lr0aWs.rst

Co-authored-by: 180909 <wjh180909@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
3 years ago[3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588)
Ma Lin [Sat, 27 Nov 2021 00:21:22 +0000 (08:21 +0800)] 
[3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588)

* Fix thread lock in zlib.Decompress.flush() may go wrong
Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.

backport of https://github.com/python/cpython/pull/29587 to 3.9/3.8.

3 years agobpo-45901: Fixes argument passing when invoking .py files directly through the Store...
Miss Islington (bot) [Fri, 26 Nov 2021 23:43:12 +0000 (15:43 -0800)] 
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)

3 years agobpo-45866: Fix typo in the NEWS entry (GH-29798)
Miss Islington (bot) [Fri, 26 Nov 2021 22:20:14 +0000 (14:20 -0800)] 
bpo-45866: Fix typo in the NEWS entry (GH-29798)

(cherry picked from commit 9a7611a7c4da6406383f8ffcea272ded6f890f1e)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agobpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792...
Victor Stinner [Fri, 26 Nov 2021 16:23:41 +0000 (17:23 +0100)] 
bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) (GH-29797)

"make regen-all" now produces the same output when run from a
directory other than the source tree: when building Python out of the
source tree.

(cherry picked from commit 253b7a0a9fef1d72a4cb87b837885576e68e917c)
(cherry picked from commit b6defde2afe656db830d6fedf74ca5f6225f5928)

3 years agobpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29776)
Victor Stinner [Fri, 26 Nov 2021 09:59:31 +0000 (10:59 +0100)] 
bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29776)

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

(cherry picked from commit 4ae26b9c1d0c33e3db92c6f305293f9240dea358)

3 years ago[3.9] bpo-33393: Update config.guess and config.sub (GH-29781) (GH-29783)
Christian Heimes [Thu, 25 Nov 2021 21:51:52 +0000 (23:51 +0200)] 
[3.9] bpo-33393: Update config.guess and config.sub (GH-29781) (GH-29783)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.9] bpo-45881: Use CC from env first for cross building (GH-29752) (GH-29754)
Christian Heimes [Thu, 25 Nov 2021 19:53:14 +0000 (21:53 +0200)] 
[3.9] bpo-45881: Use CC from env first for cross building (GH-29752) (GH-29754)

Co-authored-by: Christian Heimes <christian@python.org>.
Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.9] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29774)
Christian Heimes [Thu, 25 Nov 2021 12:02:54 +0000 (14:02 +0200)] 
[3.9] bpo-41498: Fix build on platforms without sigset_t (GH-29770) (GH-29774)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agobpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) (GH-29763)
Miss Islington (bot) [Wed, 24 Nov 2021 20:40:09 +0000 (12:40 -0800)] 
bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) (GH-29763)

Document the `port` parameter to `loop.create_server` in `asyncio`. In
particular, note that if `host` resolves to multiple network interfaces,
passing in `port=0` will result in a different random unused port being
used for each interface.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit d71c7bc7339eb82de493c66ebbbfa1cad250ac78)

Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com>
Co-authored-by: Jim Crist-Harif <jcristharif@gmail.com>
3 years agobpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691...
Miss Islington (bot) [Mon, 22 Nov 2021 16:36:28 +0000 (08:36 -0800)] 
bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) (GH-29709)

3 years ago[3.9] bpo-45845: Change link for pyserial (GH-29675)
Miss Islington (bot) [Sat, 20 Nov 2021 20:52:07 +0000 (12:52 -0800)] 
[3.9] bpo-45845: Change link for pyserial (GH-29675)

(cherry picked from commit 123a3527ddd7774e8db325c778927e49172e01d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-44844: Remove unresponsive web link (GH-29651)
Miss Islington (bot) [Sat, 20 Nov 2021 18:44:04 +0000 (10:44 -0800)] 
bpo-44844: Remove unresponsive web link (GH-29651)

Threading notes by Aahz from OSCON 2001.
(cherry picked from commit 985233914504c73f14a23af1c68a3709079e6913)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years agobpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) ...
Miss Islington (bot) [Sat, 20 Nov 2021 15:57:37 +0000 (07:57 -0800)] 
bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641) (GH-29657)

(cherry picked from commit bc2bc0dbdb52498d009f9f9771452e6aa4faff2b)

Co-authored-by: JMcB <joel.mcbride1@live.com>
3 years agobpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29630)
Hugo van Kemenade [Fri, 19 Nov 2021 18:55:15 +0000 (20:55 +0200)] 
bpo-45837: Note tiltangle is not deprecated, it's really settiltangle (GH-29630)

3 years ago[3.9] bpo-45838: Fix incorrect line numbers in Tools/gdb/libpython.py (GH-29628)
Sam Gross [Fri, 19 Nov 2021 18:53:46 +0000 (13:53 -0500)] 
[3.9] bpo-45838: Fix incorrect line numbers in Tools/gdb/libpython.py (GH-29628)

The line number calculation in libpython.py did not properly handle
negative (signed) line table deltas.

3 years ago[3.9] bpo-45806: Fix recovery from stack overflow for 3.9. Again. (GH-29640)
Mark Shannon [Fri, 19 Nov 2021 18:51:50 +0000 (18:51 +0000)] 
[3.9] bpo-45806: Fix recovery from stack overflow for 3.9. Again. (GH-29640)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years ago[3.9] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606) (GH-29632)
Miss Islington (bot) [Thu, 18 Nov 2021 21:45:15 +0000 (13:45 -0800)] 
[3.9] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606) (GH-29632)

... To the Installation paths section of the sysconfig doc.
(cherry picked from commit 4575c01b750cd26377e803247c38d65dad15e26a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years ago[3.9] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in...
Miss Islington (bot) [Thu, 18 Nov 2021 17:41:09 +0000 (09:41 -0800)] 
[3.9] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the  data model (GH-29389) (GH-29619)

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.
(cherry picked from commit 31b3a70edb1216bdc8fab3b2eafd8ddb00487f41)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agobpo-45835: Fix race condition in test_queue (GH-29601)
Miss Islington (bot) [Thu, 18 Nov 2021 16:16:06 +0000 (08:16 -0800)] 
bpo-45835: Fix race condition in test_queue (GH-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.
(cherry picked from commit df3e53d86b2ad67da9ac2b5a3f56257d1f394982)

Co-authored-by: Sam Gross <colesbury@gmail.com>
3 years agobpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-29605)
Miss Islington (bot) [Thu, 18 Nov 2021 16:09:41 +0000 (08:09 -0800)] 
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-29605)

unittest.TestCase.assertWarns no longer raises a RuntimeException
when accessing a module's ``__warningregistry__`` causes importation of a new
module, or when a new module is imported in another thread.

Patch by Kernc.
(cherry picked from commit 46398fba4d66ad342cf2504ef947b5fb857423b2)

Co-authored-by: kernc <kerncece@gmail.com>
3 years ago[3.9] [Enum] update member.member removal (GH-29611)
Ethan Furman [Thu, 18 Nov 2021 08:50:42 +0000 (00:50 -0800)] 
[3.9] [Enum] update member.member removal (GH-29611)

Accessing one enum member from another originally raised an `AttributeError`, but became possible due to a performance boost implementation detail.  In 3.11 it will again raise an `AttributeError`.

3 years agoRevert "[3.9] [Enum] update member.member removal to 3.11 (GH-29607)" (GH-29609)
Ethan Furman [Thu, 18 Nov 2021 07:40:08 +0000 (23:40 -0800)] 
Revert "[3.9] [Enum] update member.member removal to 3.11 (GH-29607)" (GH-29609)

This reverts commit 41365f7dc49b758717e28a5112affe14eac93775.

3 years ago[3.9] [Enum] update member.member removal to 3.11 (GH-29607)
Ethan Furman [Thu, 18 Nov 2021 07:36:01 +0000 (23:36 -0800)] 
[3.9] [Enum] update member.member removal to 3.11 (GH-29607)

Accessing one enum member from another originally raised an `AttributeError`, but became possible due to a performance boost implementation detail.  In 3.11 it will again raise an `AttributeError`.

3 years ago[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571...
Miss Islington (bot) [Thu, 18 Nov 2021 00:26:12 +0000 (16:26 -0800)] 
[docs] Add missing word "any" in unittest -k cmdline option description (GH-29571) (GH-29604)

(cherry picked from commit abc0d754c3853c6e69ec3718505871e7e42ec93d)

Co-authored-by: ch33zer <ch33zer@gmail.com>
3 years ago[3.9] bpo-45820: Fix a segfault when the parser fails without reading any input ...
Miss Islington (bot) [Thu, 18 Nov 2021 00:24:43 +0000 (16:24 -0800)] 
[3.9] bpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580) (GH-29584)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agobpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provi...
Pablo Galindo Salgado [Wed, 17 Nov 2021 23:18:16 +0000 (23:18 +0000)] 
bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582) (GH-29585)

(cherry picked from commit da20d7401de97b425897d3069f71f77b039eb16f)

3 years ago[3.9] bpo-42540: reallocation of id_mutex should not force default allocator (GH...
Sam Gross [Wed, 17 Nov 2021 22:53:33 +0000 (17:53 -0500)] 
[3.9] bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564) (GH-29600)

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..
(cherry picked from commit 736684b1bb67369a2e95a9f621752deead44e7ef)

Co-authored-by: Sam Gross <colesbury@gmail.com>
3 years agobpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH...
Miss Islington (bot) [Wed, 17 Nov 2021 21:59:42 +0000 (13:59 -0800)] 
bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29597)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.9] Save a reference for ensure_future and create_task (GH-29163) (GH-29573)
Miss Islington (bot) [Tue, 16 Nov 2021 11:47:02 +0000 (03:47 -0800)] 
[3.9] Save a reference for ensure_future and create_task (GH-29163) (GH-29573)

Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>
(cherry picked from commit c750adbe6990ee8239b27d5f4591283a06bfe862)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Automerge-Triggered-By: GH:asvetlov
3 years agobpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29567)
Miss Islington (bot) [Mon, 15 Nov 2021 23:32:31 +0000 (15:32 -0800)] 
bpo-45677: Reword first section of `sqlite3` docs (GH-29326) (GH-29567)

* bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs

* Adjust wording

* Adjust wording again

* Typo

* Update Doc/library/sqlite3.rst

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Address review: adjust wording

* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Lib/sqlite3/__init__.py

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Lib/sqlite3/__init__.py

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update Doc/library/sqlite3.rst

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Apply Alex' suggestion, and apply 80 char limit to PR

* Minor adjustment

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 6c5a312fb6d92e879bf4c570b94e18bb9ffe5970)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-25381: Update explanation of exceptions in C. (GH-26838) (GH-29569)
Miss Islington (bot) [Mon, 15 Nov 2021 23:07:58 +0000 (15:07 -0800)] 
bpo-25381: Update explanation of exceptions in C. (GH-26838) (GH-29569)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit ad43dc0b54994e7e7d06e3d4896ade188b36ee12)

3 years agoPost 3.9.9
Łukasz Langa [Mon, 15 Nov 2021 21:41:03 +0000 (22:41 +0100)] 
Post 3.9.9

3 years agoPython 3.9.9 v3.9.9
Łukasz Langa [Mon, 15 Nov 2021 17:26:38 +0000 (18:26 +0100)] 
Python 3.9.9

3 years agobpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH...
Miss Islington (bot) [Mon, 15 Nov 2021 17:40:08 +0000 (09:40 -0800)] 
bpo-45220: Ensure RT_MANIFEST is defined when compiling Windows resource files (GH-29501)

(cherry picked from commit a56fbad85ea655631bce68d4c0f47f1a8b500abd)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-45752: Remove "array" from list of things that cannot be copied in `copy` module...
Miss Islington (bot) [Sun, 14 Nov 2021 13:21:32 +0000 (05:21 -0800)] 
bpo-45752: Remove "array" from list of things that cannot be copied in `copy` module docstring (GH-29555)

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit c2c4fdf5ea6e9cba4ef469d08a52abb9cfa756a5)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agobpo-45752: Fix no-support examples in 'copy' docs (GH-29548)
Miss Islington (bot) [Sun, 14 Nov 2021 09:58:01 +0000 (01:58 -0800)] 
bpo-45752: Fix no-support examples in 'copy' docs (GH-29548)

(cherry picked from commit b7360ae395e9e633d384d16064c5dc04a9841e19)

Co-authored-by: M. Mostafa Farzan <m2_farzan@yahoo.com>
3 years agobpo-45738: Fix computation of error location for invalid continuation characters...
Pablo Galindo Salgado [Sun, 14 Nov 2021 01:47:27 +0000 (01:47 +0000)] 
bpo-45738: Fix computation of error location for invalid continuation characters in the parser (GH-29550) (GH-29552)

(cherry picked from commit 25835c518aa7446f3680b62c1fb43827e0f190d9)

3 years ago[3.9] [bpo-45765] Fix distribution discovery on empty path. (GH-29487). (GH-29511)
Jason R. Coombs [Sat, 13 Nov 2021 20:07:22 +0000 (15:07 -0500)] 
[3.9] [bpo-45765] Fix distribution discovery on empty path. (GH-29487). (GH-29511)

(cherry picked from commit 6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
3 years ago[3.9] bpo-45772: socket.socket should be a class instead of a function (GH-23960...
Miss Islington (bot) [Sat, 13 Nov 2021 06:29:01 +0000 (22:29 -0800)] 
[3.9] bpo-45772: socket.socket should be a class instead of a function (GH-23960) (GH-29543)

* [bpo-45772](): socket.socket should be a class instead of a function

Currently `socket.socket` is documented as a function, but it is really
a class (and thus has function-like usage to construct an object). This
correction would ensure that Python projects that are interlinking
Python's documentation can properly locate `socket.socket` as a type.
(cherry picked from commit 4c792f39e688b11c7c19e411ed4f76a7baa44638)

Co-authored-by: Hong Xu <hong@topbug.net>
Automerge-Triggered-By: GH:asvetlov
3 years agobpo-45235: Revert an argparse bugfix that caused a regression (GH-29525) (GH-29531)
Miss Islington (bot) [Fri, 12 Nov 2021 18:44:25 +0000 (10:44 -0800)] 
bpo-45235:  Revert an argparse bugfix that caused a regression (GH-29525) (GH-29531)

3 years agobpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29536)
Miss Islington (bot) [Fri, 12 Nov 2021 10:20:20 +0000 (02:20 -0800)] 
bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533) (GH-29536)

Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`.
(cherry picked from commit e501d70b347c5093018d12482c30a7a98aab86d0)

Co-authored-by: Hynek Schlawack <hs@ox.cx>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
4 years agobpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)
Steve Dower [Tue, 9 Nov 2021 19:12:56 +0000 (19:12 +0000)] 
bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)

4 years agobpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)
Miss Islington (bot) [Mon, 8 Nov 2021 17:10:41 +0000 (09:10 -0800)] 
bpo-40170: Update What's New in Python 3.9 (GH-29470) (GH-29472)

The PyType_HasFeature() change has been reverted: the static inline
function access directly the PyTypeObject.tp_flags member.
(cherry picked from commit 99c7e9853fa13af414168f179213e3d2fae03a45)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agoremove the repeat 'the' (GH-29455)
Miss Islington (bot) [Mon, 8 Nov 2021 08:45:06 +0000 (00:45 -0800)] 
remove the repeat 'the' (GH-29455)

(cherry picked from commit 122ca4d73faba279a579aa2011fa34661ce537a2)

Co-authored-by: 180909 <734461790@qq.com>
4 years agobpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29453)
Miss Islington (bot) [Sat, 6 Nov 2021 20:17:59 +0000 (13:17 -0700)] 
bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29453)

(cherry picked from commit 91275207296c39e495fe118019a757c4ddefede8)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29451)
Miss Islington (bot) [Sat, 6 Nov 2021 19:23:28 +0000 (12:23 -0700)] 
bpo-27313: Use non-deprecated methods for tracing (GH-29425) (GH-29451)

(cherry picked from commit cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)
Miss Islington (bot) [Sat, 6 Nov 2021 18:50:18 +0000 (11:50 -0700)] 
[doc] bpo-45680: Improve glossary entry for generic types (GH-29388) (GH-29448)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 77a2c77c84d2ead2d19f96df862c119308e90071)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45644: Make json.tool read infile before writing to outfile (GH-29273) (GH-29446)
Miss Islington (bot) [Sat, 6 Nov 2021 18:01:44 +0000 (11:01 -0700)] 
bpo-45644:  Make json.tool read infile before writing to outfile (GH-29273) (GH-29446)

so that

$ python -m json.tool foo.json foo.json

doesn't result in an empty foo.json.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 815dad42d53fc40a6dc057e067f4a8a885c3b858)

Co-authored-by: Chris Wesseling <chris.wesseling@protonmail.com>
4 years agobpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)
Miss Islington (bot) [Sat, 6 Nov 2021 01:38:50 +0000 (18:38 -0700)] 
bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)

(cherry picked from commit 804ea41211b042fa20c3cd8c0457bbfa3873128a)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoPost 3.9.8
Łukasz Langa [Fri, 5 Nov 2021 21:21:27 +0000 (22:21 +0100)] 
Post 3.9.8

4 years agoPython 3.9.8 v3.9.8
Łukasz Langa [Fri, 5 Nov 2021 19:21:41 +0000 (20:21 +0100)] 
Python 3.9.8

4 years agobpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426...
Miss Islington (bot) [Fri, 5 Nov 2021 16:52:14 +0000 (09:52 -0700)] 
bpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` (GH-29426) (GH-29430)

(cherry picked from commit 71e8a3e76a32f5eabe20e7fa984f384ca9af6ec6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) (GH...
Miss Islington (bot) [Fri, 5 Nov 2021 10:00:05 +0000 (03:00 -0700)] 
bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416) (GH-29420)

(cherry picked from commit 54d1e3f72ed1ad8e860888c30ee7a285b931c0d1)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)...
Miss Islington (bot) [Fri, 5 Nov 2021 09:59:50 +0000 (02:59 -0700)] 
bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411) (GH-29423)

(cherry picked from commit e52f9bee802aa7a7fbd405dcc43bc2d1bea884d9)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.9] bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion...
Łukasz Langa [Thu, 4 Nov 2021 20:52:26 +0000 (21:52 +0100)] 
[3.9] bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion in tests (GH-29258) (GH-29415)

(cherry picked from commit d56375a0dd4cee162081b173310298a3d32af293)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
4 years agobpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) (GH-29178)
Miss Islington (bot) [Thu, 4 Nov 2021 20:20:21 +0000 (13:20 -0700)] 
bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) (GH-29178)

* Use Py_EnterRecursiveCall() in issubclass()

Reviewed-by: Gregory P. Smith <greg@krypto.org> [Google]
(cherry picked from commit 423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
4 years ago[3.9] bpo-45678: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH...
Alex Waygood [Thu, 4 Nov 2021 19:34:14 +0000 (19:34 +0000)] 
[3.9] bpo-45678: Fix `singledispatchmethod` `classmethod`/`staticmethod` bug (GH-29394)

This PR fixes a bug in the 3.9 branch where
``functools.singledispatchmethod`` did not properly wrap attributes such as
``__name__``, ``__doc__`` and ``__module__`` of the target method. It also
backports tests already merged into the 3.11 and 3.10 branches in #29328 and
#29390.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agoAdd generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29410)
Miss Islington (bot) [Thu, 4 Nov 2021 19:31:39 +0000 (12:31 -0700)] 
Add generated artifacts in Mac/ to .gitignore; update copyright (GH-29408) (GH-29410)

(cherry picked from commit 3167df16212e27f8aac1e5f39c0644a97b593406)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agobpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)
Miss Islington (bot) [Thu, 4 Nov 2021 17:01:19 +0000 (10:01 -0700)] 
bpo-45220: Remove invalid include from resource definition files on Windows (GH-29396)

(cherry picked from commit fd0c84dc28d00d68e4f43034dc41786a682390fd)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoRemove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)
Miss Islington (bot) [Thu, 4 Nov 2021 12:13:24 +0000 (05:13 -0700)] 
Remove reference to ``Tuple`` at top of ``typing`` docs (GH-29401)

``typing.Tuple`` has been deprecated since Python 3.9, so it makes no sense to mention it so prominently in the documentation for the ``typing`` module.
(cherry picked from commit 87032cfa3dc975d7442fd57dea2c6a56d31c911a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years agobpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getit...
Miss Islington (bot) [Thu, 4 Nov 2021 04:34:31 +0000 (21:34 -0700)] 
bpo-45680: ``typing`` docs: improve links to docs on ``GenericAlias``/``__class_getitem__`` (GH-29387)

(cherry picked from commit e03e50377d6f8f212af60fed4ae405ebeb73237d)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 years ago[3.9] bpo-45578: add tests for `dis.distb` (GH-29332) (#29386)
Łukasz Langa [Wed, 3 Nov 2021 16:47:04 +0000 (17:47 +0100)] 
[3.9] bpo-45578: add tests for `dis.distb` (GH-29332) (#29386)

(cherry picked from commit e346f196819aeb02a8a94205ce3e1536c4c2f105)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agobpo-45633: Fix newtypes doc typo (GH-29318) (GH-29365)
Miss Islington (bot) [Wed, 3 Nov 2021 09:30:59 +0000 (02:30 -0700)] 
bpo-45633: Fix newtypes doc typo (GH-29318) (GH-29365)

(cherry picked from commit 454cdb99abcda37413b15167cda564091fec2572)

Co-authored-by: Dmitry Smirnov <dmitrysmirnov931@gmail.com>
4 years ago[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)
Serhiy Storchaka [Wed, 3 Nov 2021 09:28:55 +0000 (11:28 +0200)] 
[3.9] bpo-45679: Fix caching of multi-value typing.Literal (GH-29334) (GH-29342)

Literal[True, 2] is no longer equal to Literal[1, 2]..
(cherry picked from commit 634984d7dbdd91e0a51a793eed4d870e139ae1e0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFound...
Miss Islington (bot) [Tue, 2 Nov 2021 22:26:40 +0000 (15:26 -0700)] 
bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)

(cherry picked from commit a459a81530de700b3d3faeb827b22ed1c9985812)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years ago[doc] Link to section File input (GH-28941) (GH-29376)
Miss Islington (bot) [Tue, 2 Nov 2021 21:59:42 +0000 (14:59 -0700)] 
[doc] Link to section File input (GH-28941) (GH-29376)

(cherry picked from commit 48824fa1e26595ac97ffc96ee2c3d32ff130c420)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947...
Miss Islington (bot) [Tue, 2 Nov 2021 21:53:45 +0000 (14:53 -0700)] 
bpo-45457: Minor fix to documentation for SSLContext.load_default_certs. (GH-28947) (GH-29374)

Specify that SSLContext.set_default_verify_paths is called on ALL systems.

The code of SSLContext.load_default_certs was changed in bpo-22449 to do this,
this fix corrects the documentation to match that change.
(cherry picked from commit 3551bf16ee5c25b6349209dd30e032f0f3b9ace3)

Co-authored-by: LincolnPuzey <lincoln@puzey.dev>
4 years agobpo-44828: Avoid leaving a zombie Save panel. (GH-29371)
Ned Deily [Tue, 2 Nov 2021 21:06:11 +0000 (17:06 -0400)] 
bpo-44828: Avoid leaving a zombie Save panel. (GH-29371)

Patch by Marc Culler of the Tk project.

4 years agomakefile: remove unused SGI_ABI variable (GH-29325) (GH-29370)
Miss Islington (bot) [Tue, 2 Nov 2021 21:01:59 +0000 (14:01 -0700)] 
makefile: remove unused SGI_ABI variable (GH-29325) (GH-29370)

SGI_ABI support was removed in [1] but this variable was never removed
from the makefile. Currently, it is just a bad variable that does not
get replaced by the configure script.

[1] https://github.com/python/cpython/pull/3294

Signed-off-by: Filipe Laíns <lains@riseup.net>
(cherry picked from commit 38982ab13629a0802ea721a5917da0b98d0d5a0a)

Co-authored-by: Filipe Laíns <lains@riseup.net>
4 years ago[3.9] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH...
Miss Islington (bot) [Tue, 2 Nov 2021 11:52:42 +0000 (04:52 -0700)] 
[3.9] bpo-43158: Use configure values for building _uuid extension (GH-29353) (GH-29363)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.9] Move field width to the right field (GH-29344) (GH-29350)
Miss Islington (bot) [Sun, 31 Oct 2021 20:25:21 +0000 (13:25 -0700)] 
[3.9] Move field width to the right field (GH-29344) (GH-29350)

Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
4 years agobpo-45516: add protocol description to the Traversable documentation (GH-29039)
Miss Islington (bot) [Sun, 31 Oct 2021 19:27:49 +0000 (12:27 -0700)] 
bpo-45516: add protocol description to the Traversable documentation (GH-29039)

* bpo-45516: add protocol description to the Traversable documentation

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Doc/library/importlib.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Update Lib/importlib/abc.py

* Update Doc/library/importlib.rst

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
(cherry picked from commit 4d03de3329ed8daa9c1107b1aedbb0fa280bddb6)

Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
4 years ago[3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory...
Łukasz Langa [Fri, 29 Oct 2021 21:02:19 +0000 (23:02 +0200)] 
[3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171) (GH-29324)

(cherry picked from commit e2e62b3808691e15fa44b883270023e42dcad958)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204...
Miss Islington (bot) [Fri, 29 Oct 2021 20:52:59 +0000 (13:52 -0700)] 
bpo-45600: Enhanced / clarified the docs for os.environ and os.environb (GH-29204) (GH-29321)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b17cfd150f4dc2816975d304a71110a2d445eaf0)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years agobpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) (GH...
Miss Islington (bot) [Fri, 29 Oct 2021 20:42:38 +0000 (13:42 -0700)] 
bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200) (GH-29320)

(cherry picked from commit 3877fc02f7a8801ba5ce0e94b6075b3fdd9778d0)

Co-authored-by: Ian Fisher <ian@iafisher.com>
4 years ago[3.9] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310...
Miss Islington (bot) [Fri, 29 Oct 2021 15:24:41 +0000 (08:24 -0700)] 
[3.9] bpo-45628: Check all parts of the suffix for an extension match. (GH-29310) (GH-29313)

4 years ago[3.9] [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) (GH-29306)
Serhiy Storchaka [Fri, 29 Oct 2021 10:18:34 +0000 (13:18 +0300)] 
[3.9] [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) (GH-29306)

Run test_shelve with all underlying dbm implementations and pickle protocols.
Also make test_shelve discoverable.
(cherry picked from commit b781cc3bfce7c052728b06aad9f1a467cced289d).
(cherry picked from commit 6b867022d926be9fcc6f8038fb1093ba8c348ca5)

4 years agobpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29295)
Miss Islington (bot) [Thu, 28 Oct 2021 22:00:34 +0000 (15:00 -0700)] 
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29295)

(cherry picked from commit 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years ago[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)
Alex Waygood [Thu, 28 Oct 2021 21:17:28 +0000 (22:17 +0100)] 
[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)

Backport of https://github.com/python/cpython/pull/29280 to the 3.9 branch.

4 years agobpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233...
Miss Islington (bot) [Thu, 28 Oct 2021 21:14:37 +0000 (14:14 -0700)] 
bpo-45624: make test_graphlib not depend on the iteration order of sets (GH-29233) (GH-29292)

the current test depended on integer sets being iterated on in a certain
fixed order. That order is different on PyPy (insertion based) and could
change in CPython in the future in theory. Make the test robust against
a different iteration order by sorting.
(cherry picked from commit 7401694807fc6b5f7b35ff73c06f4bb852e02946)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>