]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years ago[docs] lexical_analysis: Expand the text on ``_`` (GH-28903) (GH-28933)
Miss Islington (bot) [Wed, 13 Oct 2021 16:58:06 +0000 (09:58 -0700)] 
[docs] lexical_analysis: Expand the text on ``_`` (GH-28903) (GH-28933)

Also:
* Expand the discussion into its own entry. (Even before this,
  text on ``_`` was longet than the text on ``_*``.)

* Briefly note the other common convention for `_`: naming unused
  variables.

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3dee0cb6217db326e844955a7f8b424c67990557)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 years agobpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)
Miss Islington (bot) [Wed, 13 Oct 2021 10:24:47 +0000 (03:24 -0700)] 
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)

test_embed.StdPrinterTests now always use the file descriptor 1 for
stdout, rather than using sys.__stdout__.fileno().
PyFile_NewStdPrinter() does crash if the argument is not 1 or 2.

Fix also a few pyflakes warnings: remove unused import and variables.
(cherry picked from commit 678433f25e0d08dad7edf72be8f0cf9420e4ed2c)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
Miss Islington (bot) [Wed, 13 Oct 2021 05:37:51 +0000 (22:37 -0700)] 
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)

To avoid error, add either space or parentheses.
(cherry picked from commit 380c44087505d0d560f97e325028f27393551164)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years ago[3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure`...
Miss Islington (bot) [Wed, 13 Oct 2021 00:31:32 +0000 (17:31 -0700)] 
[3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure``  with recent versions of non-Apple clang. (GH-28845) (GH-28911)

Change the configure logic to function properly on macOS when the compiler
outputs a platform triplet for option --print-multiarch.

Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit 9c4766772cda67648184f8ddba546a5fc0167f91)

Co-authored-by: David Bohman <debohman@gmail.com>
Automerge-Triggered-By: GH:ned-deily
4 years agoFix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
Miss Islington (bot) [Tue, 12 Oct 2021 17:10:59 +0000 (10:10 -0700)] 
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)

(cherry picked from commit f79f3b41c8c1360d4e0ae884a52d0a486974ca53)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoSlight correct grammar (GH-28860)
Miss Islington (bot) [Tue, 12 Oct 2021 17:01:11 +0000 (10:01 -0700)] 
Slight correct grammar (GH-28860)

(cherry picked from commit 1b11582f0e00f08833da6adc44030a8b1961989a)

Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
4 years agobpo-45441: Update some moved URLs in documentation (GH-28861)
Miss Islington (bot) [Tue, 12 Oct 2021 14:20:43 +0000 (07:20 -0700)] 
bpo-45441: Update some moved URLs in documentation (GH-28861)

(cherry picked from commit b37dc9b3bc9575adc039c6093c643b7ae5e917e1)

Co-authored-by: 180909 <wjh180909@gmail.com>
4 years agobpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)
Miss Islington (bot) [Tue, 12 Oct 2021 07:19:09 +0000 (00:19 -0700)] 
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)

(cherry picked from commit 15188b115a2da815556053372c912a81a74be43b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874)
Miss Islington (bot) [Tue, 12 Oct 2021 07:17:53 +0000 (00:17 -0700)] 
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874)

Document that the "standalone" parameter was added in Python 3.9.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit c7e81fcf9548ab6a0a4828d6f2db9ece9d204826)

Co-authored-by: Jens Diemer <github.com@jensdiemer.de>
4 years agobpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)
Miss Islington (bot) [Mon, 11 Oct 2021 19:34:47 +0000 (12:34 -0700)] 
bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)

(cherry picked from commit 659812b451aefe1f0e5f83540296519a5fb8f313)

Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
4 years agoHandle error when PyUnicode_GetLength returns a negative value. (GH-28859)
Miss Islington (bot) [Mon, 11 Oct 2021 11:40:43 +0000 (04:40 -0700)] 
Handle error when PyUnicode_GetLength returns a negative value. (GH-28859)

(cherry picked from commit 560a79f94e94de66a18f2a5e4194c2fe51e2adf1)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822...
Miss Islington (bot) [Mon, 11 Oct 2021 10:01:12 +0000 (03:01 -0700)] 
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28867)

…iles.

Also changed some historical return values from 1 -> True and 0 -> False.
(cherry picked from commit 62a667784ba7b84611ebd50fa8a1a464cde32235)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
4 years agoFix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() ...
Miss Islington (bot) [Mon, 11 Oct 2021 09:22:29 +0000 (02:22 -0700)] 
Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)

(cherry picked from commit 9883ca498d654a4792d530bd8d6d64fef4dc971c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoFix the "Finding all Adverbs" example (GH-21420) (#28839)
Miss Islington (bot) [Sun, 10 Oct 2021 21:43:38 +0000 (14:43 -0700)] 
Fix the "Finding all Adverbs" example (GH-21420) (#28839)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit dbd62e74dadda7868f1c0d497414c8f7e4c0b12b)

Co-authored-by: Rim Chatti <chattiriim@gmail.com>
4 years agobpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)
Miss Islington (bot) [Sun, 10 Oct 2021 16:25:14 +0000 (09:25 -0700)] 
bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 1a7892414e654aa5c99efa31db767baba7f4a424)

Co-authored-by: Joongi Kim <joongi@lablup.com>
4 years agoFix class pattern docs to refer to class patterns (GH-28849)
Miss Islington (bot) [Sun, 10 Oct 2021 14:35:23 +0000 (07:35 -0700)] 
Fix class pattern docs to refer to class patterns (GH-28849)

(cherry picked from commit 0bcc5ade9bff086a0b24d71307fae0a891f4efd2)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
4 years ago[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
Jason R. Coombs [Sun, 10 Oct 2021 14:23:06 +0000 (10:23 -0400)] 
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)

4 years agobpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)
Miss Islington (bot) [Sat, 9 Oct 2021 19:54:20 +0000 (12:54 -0700)] 
bpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)

This is true of all dictionaries in Python, but this one tends to
catch people off guard as they don't realize when sys.modules might
change out from underneath them as a hidden side effect of their
code.  Copying it first avoids the RuntimeError.  An example when
this happens in single threaded code are codecs being loaded which
are an implicit time of use import that most need not think about.
(cherry picked from commit 3d1ca867ed0e3ae343166806f8ddd9739e568ab4)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agoFix dataclassses spelling (GH-28837) (GH-28841)
Miss Islington (bot) [Sat, 9 Oct 2021 19:50:45 +0000 (12:50 -0700)] 
Fix dataclassses spelling (GH-28837) (GH-28841)

(cherry picked from commit 5b4a7675bcfc6368aff955f4a6231579718f5dad)

Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
4 years ago[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH...
Dong-hee Na [Sat, 9 Oct 2021 16:13:21 +0000 (01:13 +0900)] 
[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28834)

4 years agobpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
Miss Islington (bot) [Sat, 9 Oct 2021 15:35:33 +0000 (08:35 -0700)] 
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)

(cherry picked from commit 34bbc87b2ddbaf245fbed6443c3e620f80c6a843)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)
Miss Islington (bot) [Fri, 8 Oct 2021 08:55:41 +0000 (01:55 -0700)] 
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)

Prevent use-after-free of running loop holder via cache.
(cherry picked from commit 392a89835371baa0fc4bf79ae479abb80661f57d)

Co-authored-by: Matthias Reichl <github@hias.horus.com>
4 years ago[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass...
Pablo Galindo Salgado [Thu, 7 Oct 2021 23:50:10 +0000 (00:50 +0100)] 
[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812). (GH-28813)

(cherry picked from commit 0219017df7ec41839fd0d56a3076b5f09c58d313)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45337: Use the realpath of the new executable when creating a venv on Windows...
Miss Islington (bot) [Thu, 7 Oct 2021 22:55:05 +0000 (15:55 -0700)] 
bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663)

(cherry picked from commit 6811fdaec825bd6ab64e358a4b480108f5634d2d)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)
Miss Islington (bot) [Thu, 7 Oct 2021 18:25:26 +0000 (11:25 -0700)] 
[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 32485cecab0111a858055b7a60df3b9903b162e3)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years ago[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)
Christian Clauss [Thu, 7 Oct 2021 15:49:47 +0000 (17:49 +0200)] 
[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)

Fix typos in the Lib directory as identified by codespell.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>.
(cherry picked from commit 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be)

Co-authored-by: Christian Clauss <cclauss@me.com>
4 years ago[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)
Christian Clauss [Thu, 7 Oct 2021 15:34:55 +0000 (17:34 +0200)] 
[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)

Like GH-28744 but for the Tools directory.

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50)

Co-authored-by: Christian Clauss <cclauss@me.com>
4 years ago[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
Christian Clauss [Thu, 7 Oct 2021 15:30:08 +0000 (17:30 +0200)] 
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)

(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)

4 years ago[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)
Christian Clauss [Thu, 7 Oct 2021 15:09:30 +0000 (17:09 +0200)] 
[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)

(cherry picked from commit 470145f572b53fe73518cda1eeacc56fec78c1b2)

4 years ago[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)
Christian Clauss [Thu, 7 Oct 2021 14:31:33 +0000 (16:31 +0200)] 
[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)

(cherry picked from commit 5f401f10400123afa9171548c432ea3fc37c0736)

Automerge-Triggered-By: GH:JulienPalard
4 years ago[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)
Christian Clauss [Thu, 7 Oct 2021 13:00:23 +0000 (15:00 +0200)] 
[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)

(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)

4 years agobpo-45400: Fix suggestion test of test_exceptions (GH-28783)
Miss Islington (bot) [Thu, 7 Oct 2021 12:11:38 +0000 (05:11 -0700)] 
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)

Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit 4e605666b08b8f863cbbbdaa34bb06988e648d26)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)
Miss Islington (bot) [Thu, 7 Oct 2021 09:26:12 +0000 (02:26 -0700)] 
[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)

Thanks for the fix @wiggin15 .
(cherry picked from commit 599c07006a636b0a6904008534118a9ba3daf726)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Automerge-Triggered-By: GH:JulienPalard
4 years ago[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)
Miss Islington (bot) [Thu, 7 Oct 2021 08:55:18 +0000 (01:55 -0700)] 
[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)

(cherry picked from commit dd02a696e55b450413e765e698e653d781ca4205)

Co-authored-by: Christian Clauss <cclauss@me.com>
Automerge-Triggered-By: GH:gpshead
4 years agobpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28779)
Miss Islington (bot) [Thu, 7 Oct 2021 07:48:00 +0000 (00:48 -0700)] 
bpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28779)

4 years ago[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28772)
Miss Islington (bot) [Wed, 6 Oct 2021 18:52:22 +0000 (11:52 -0700)] 
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28772)

It took me longer than I expected to figure out why a random class
I dealt with didn't support weak references. I believe this addition
will make the __slots__/weakref interaction more discoverable to people
having troubles with this. (Before this patch __slots__ was not
mentioned in weakref documentation even once).

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

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
4 years agobpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771)
Miss Islington (bot) [Wed, 6 Oct 2021 18:29:23 +0000 (11:29 -0700)] 
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771)

Operating systems without support for TCP_NODELAY will raise an OSError
when trying to set the socket option, but the show can still go on.
(cherry picked from commit 0571b934f5f9198c3461a7b631d7073ac0a5676f)

Co-authored-by: rtobar <rtobarc@gmail.com>
4 years agobpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity ...
Miss Islington (bot) [Wed, 6 Oct 2021 15:15:42 +0000 (08:15 -0700)] 
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28762)

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

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
4 years ago[3.10] [doc] Fix typos found using codespell (GH-28744) (GH-28758)
Christian Clauss [Wed, 6 Oct 2021 13:56:57 +0000 (15:56 +0200)] 
[3.10] [doc] Fix typos found using codespell (GH-28744) (GH-28758)

4 years agobpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)
Miss Islington (bot) [Tue, 5 Oct 2021 22:15:46 +0000 (15:15 -0700)] 
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)

(cherry picked from commit 4c8d543823dde5a30615da61727837a48f7ab847)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
4 years agosqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)
Miss Islington (bot) [Tue, 5 Oct 2021 21:04:27 +0000 (14:04 -0700)] 
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)

(cherry picked from commit 1dac95c814763eb8a53896ac4326d8d51895d43d)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years ago[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)
Miss Islington (bot) [Tue, 5 Oct 2021 17:21:25 +0000 (10:21 -0700)] 
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)

It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
(cherry picked from commit 4103280b83e1419bef535a42813d6dbe83bfe880)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agobpo-44050: Extension modules can share state when they don't support sub-interpreters...
Miss Islington (bot) [Tue, 5 Oct 2021 16:34:59 +0000 (09:34 -0700)] 
bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28738)

Automerge-Triggered-By: GH:encukou
(cherry picked from commit b9bb74871b27d9226df2dd3fce9d42bda8b43c2b)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
4 years agobpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)
Miss Islington (bot) [Tue, 5 Oct 2021 12:38:50 +0000 (05:38 -0700)] 
bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)

(cherry picked from commit de4052fe0633e3a053e66c8477f13677054d6ede)

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
4 years ago[3.10] bpo-45371: Fix distutils' rpath support for clang (GH-28732) (GH-28733)
Miss Islington (bot) [Tue, 5 Oct 2021 10:04:52 +0000 (03:04 -0700)] 
[3.10] bpo-45371: Fix distutils' rpath support for clang (GH-28732) (GH-28733)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit ef6196028f966f22d82930b66e1371e75c5df2f7)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years ago[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)
John Belmonte [Tue, 5 Oct 2021 06:21:34 +0000 (15:21 +0900)] 
[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)

Make enter_context(foo()) / enter_async_context(foo()) equivalent to
`[async] with foo()` regarding __context__ when an exception is raised.

Previously exceptions would be caught and re-raised with the wrong
context when explicitly overriding __context__ with None..
(cherry picked from commit e6d1aa1ac65b6908fdea2c70ec3aa8c4f1dffcb5)

Co-authored-by: John Belmonte <john@neggie.net>
Automerge-Triggered-By: GH:njsmith
4 years agoPost 3.10.0
Pablo Galindo [Mon, 4 Oct 2021 19:17:37 +0000 (20:17 +0100)] 
Post 3.10.0

4 years agoMerge tag 'v3.10.0' into 3.10
Pablo Galindo [Mon, 4 Oct 2021 19:12:06 +0000 (20:12 +0100)] 
Merge tag 'v3.10.0' into 3.10

Python 3.10.0

4 years agoPython 3.10.0 v3.10.0
Pablo Galindo [Mon, 4 Oct 2021 17:27:07 +0000 (18:27 +0100)] 
Python 3.10.0

4 years ago[3.10] bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720). (GH-28721)
Serhiy Storchaka [Mon, 4 Oct 2021 14:07:21 +0000 (17:07 +0300)] 
[3.10] bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720). (GH-28721)

(cherry picked from commit 252b7bcb236dc261f3af1275bc90f9a303d9648f)

4 years ago[3.10] bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the...
Serhiy Storchaka [Mon, 4 Oct 2021 12:01:11 +0000 (15:01 +0300)] 
[3.10] bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code unit (GH-28711). (GH-28718)

(cherry picked from commit 60b9e040c9cf40e69f42c0008e564458aa0379e8)

4 years agobpo-45310: Fix parrallel shared memory tests (GH-28661)
Miss Islington (bot) [Fri, 1 Oct 2021 09:41:20 +0000 (02:41 -0700)] 
bpo-45310: Fix parrallel shared memory tests (GH-28661)

Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit eb4495e8e275c83d691add116c4f2b74e73e3cc8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agohashlib: Fix old message about unicode objects. (GH-28653)
Miss Islington (bot) [Fri, 1 Oct 2021 12:58:37 +0000 (05:58 -0700)] 
hashlib: Fix old message about unicode objects. (GH-28653)

(cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
Miss Islington (bot) [Wed, 29 Sep 2021 11:41:27 +0000 (04:41 -0700)] 
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)

(cherry picked from commit bc4cde40339dd372960f27401d8fdaa4dab0f469)

Co-authored-by: zhanpon <pon.zhan@gmail.com>
4 years agobpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
Miss Islington (bot) [Sat, 2 Oct 2021 06:27:23 +0000 (23:27 -0700)] 
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)

pypi.org "  The Python Package Index (PyPI) ...
(cherry picked from commit 0be338199fd663f020d833a4db185d0c5a0e0078)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)
Miss Islington (bot) [Sat, 2 Oct 2021 19:32:56 +0000 (12:32 -0700)] 
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)

4 years ago[3.10] Remove trailing spaces (GH-28709)
Serhiy Storchaka [Sun, 3 Oct 2021 17:03:49 +0000 (20:03 +0300)] 
[3.10] Remove trailing spaces (GH-28709)

4 years agobpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)
Pablo Galindo Salgado [Sun, 3 Oct 2021 23:39:54 +0000 (00:39 +0100)] 
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)

4 years agobpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)
Pablo Galindo Salgado [Sun, 3 Oct 2021 23:39:54 +0000 (00:39 +0100)] 
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707)

4 years ago[3.10] Remove trailing spaces (GH-28709)
Serhiy Storchaka [Sun, 3 Oct 2021 17:03:49 +0000 (20:03 +0300)] 
[3.10] Remove trailing spaces (GH-28709)

4 years agoFix spelling error in comment (GH-28696) (GH-28699)
Miss Islington (bot) [Sat, 2 Oct 2021 19:33:49 +0000 (12:33 -0700)] 
Fix spelling error in comment (GH-28696) (GH-28699)

4 years agobpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)
Miss Islington (bot) [Sat, 2 Oct 2021 19:32:56 +0000 (12:32 -0700)] 
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698)

4 years agobpo-45329: Fix freed memory access in pyexpat.c (GH-28649)
Miss Islington (bot) [Sat, 2 Oct 2021 13:21:55 +0000 (06:21 -0700)] 
bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)

(cherry picked from commit 0742abdc48886b74ed3b66985a54bb1c32802670)

Co-authored-by: TAGAMI Yukihiro <tagami.yukihiro@gmail.com>
4 years agobpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
Miss Islington (bot) [Sat, 2 Oct 2021 06:27:23 +0000 (23:27 -0700)] 
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)

pypi.org "  The Python Package Index (PyPI) ...
(cherry picked from commit 0be338199fd663f020d833a4db185d0c5a0e0078)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the...
Miss Islington (bot) [Fri, 1 Oct 2021 20:30:15 +0000 (13:30 -0700)] 
bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)

(cherry picked from commit a450398933d265011e1e8eae7f771b70f97945fb)

Co-authored-by: AngstyDuck <solsticedante@gmail.com>
4 years agobpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671)
Victor Stinner [Fri, 1 Oct 2021 16:22:49 +0000 (18:22 +0200)] 
bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671)

On Unix, if the sem_clockwait() function is available in the C
library (glibc 2.30 and newer), the threading.Lock.acquire() method
now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout,
rather than using the system clock (time.CLOCK_REALTIME), to not be
affected by system clock changes.

configure now checks if the sem_clockwait() function is available.

4 years agobpo-45332: Fix broken Decimal test and benchmark (GH-28680)
Miss Islington (bot) [Fri, 1 Oct 2021 14:16:37 +0000 (07:16 -0700)] 
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)

(cherry picked from commit 9eed75fde226cec5a02301cfac1dc8039b5a183e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
4 years agobpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)
Miss Islington (bot) [Fri, 1 Oct 2021 13:09:15 +0000 (06:09 -0700)] 
bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)

(cherry picked from commit 746d648d47d12d16c2afedaeff626fc6aaaf6a46)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agohashlib: Fix old message about unicode objects. (GH-28653)
Miss Islington (bot) [Fri, 1 Oct 2021 12:58:37 +0000 (05:58 -0700)] 
hashlib: Fix old message about unicode objects. (GH-28653)

(cherry picked from commit 9ce0f48e918860ffa32751a85b0fe7967723e2e3)

Co-authored-by: Julien Palard <julien@palard.fr>
4 years agobpo-45310: Fix parrallel shared memory tests (GH-28661)
Miss Islington (bot) [Fri, 1 Oct 2021 09:41:20 +0000 (02:41 -0700)] 
bpo-45310: Fix parrallel shared memory tests (GH-28661)

Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit eb4495e8e275c83d691add116c4f2b74e73e3cc8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-45229: Make datetime tests discoverable (GH-28615)
Miss Islington (bot) [Fri, 1 Oct 2021 07:36:17 +0000 (00:36 -0700)] 
bpo-45229: Make datetime tests discoverable (GH-28615)

(cherry picked from commit d441437ee71ae174c008c23308b749b91020ba77)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654...
Serhiy Storchaka [Thu, 30 Sep 2021 16:56:41 +0000 (19:56 +0300)] 
[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28657)

* Work correctly if an additional fresh module imports other
  additional fresh module which imports a blocked module.
* Raises ImportError if the specified module cannot be imported
  while all additional fresh modules are successfully imported.
* Support blocking packages.
* Always restore the import state of fresh and blocked modules
  and their submodules.
* Fix test_decimal and test_xml_etree which depended on an undesired
  side effect of import_fresh_module().
(cherry picked from commit ec4d917a6a68824f1895f75d113add9410283da7)

4 years agocloses bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394...
Miss Islington (bot) [Wed, 29 Sep 2021 23:02:11 +0000 (16:02 -0700)] 
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) (GH-28636)

Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit 196998e220d6ca030e5a1c8ad63fcaed8e049a98)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
4 years ago[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) ...
Miss Islington (bot) [Wed, 29 Sep 2021 15:21:55 +0000 (08:21 -0700)] 
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28625)

Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading.

Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
(cherry picked from commit f1ca5d7f61594bf3627f0897b596877a0774c8e7)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years ago[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)
Miss Islington (bot) [Wed, 29 Sep 2021 14:13:41 +0000 (07:13 -0700)] 
[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)

* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit 6c1154b9de29e1c9cd3d05f5289543e5cff73895)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 years agoMove predispatch logic from DISPATCH macro to juts before switch. Reduces size of...
Mark Shannon [Wed, 29 Sep 2021 12:16:13 +0000 (13:16 +0100)] 
Move predispatch logic from DISPATCH macro to juts before switch. Reduces size of each opocde in interpreter. (GH-28475)

4 years agobpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
Miss Islington (bot) [Wed, 29 Sep 2021 11:41:27 +0000 (04:41 -0700)] 
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)

(cherry picked from commit bc4cde40339dd372960f27401d8fdaa4dab0f469)

Co-authored-by: zhanpon <pon.zhan@gmail.com>
4 years agobpo-45249: Ensure the traceback module prints correctly syntax errors with ranges...
Miss Islington (bot) [Mon, 27 Sep 2021 21:26:39 +0000 (14:26 -0700)] 
bpo-45249: Ensure the traceback module prints correctly syntax errors with ranges (GH-28575)

(cherry picked from commit 20f439b6b9e1032930a31b88694ab9f37a09e6b4)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45067 - Verify the version of ncurses for extended color support feature usage...
Miss Islington (bot) [Thu, 9 Sep 2021 19:38:54 +0000 (12:38 -0700)] 
bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260)

* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 794430700defb913512f871b701a888aa730de81)

Co-authored-by: Senthil Kumaran <senthil@python.org>
4 years agobpo-44860: Update test_sysconfig for posix_user platlib (GH-28235) (GH-28251)
Miss Islington (bot) [Thu, 9 Sep 2021 09:35:36 +0000 (02:35 -0700)] 
bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235) (GH-28251)

Update test_sysconfig.test_user_similar() for the posix_user scheme:
"platlib" doesn't use sys.platlibdir.
(cherry picked from commit 49acac00c08838d8080ce00d02c05284b94f8fb2)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28214)
Miss Islington (bot) [Wed, 8 Sep 2021 15:09:55 +0000 (08:09 -0700)] 
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28214)

Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
(cherry picked from commit c4ea45d7d2c02674db2fdb96c7eee89324d2dc64)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years ago[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)
Łukasz Langa [Tue, 21 Sep 2021 23:33:59 +0000 (01:33 +0200)] 
[3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29)

Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
4 years ago[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)
Miss Islington (bot) [Fri, 17 Sep 2021 23:19:00 +0000 (16:19 -0700)] 
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660) (GH-28433)

Previous wording didn't explain the slightly unintuitive behavior.

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 24dbe30f8df80740704db3743d071b3218d1276e)

Co-authored-by: Emmanuel Arias <eamanu@yaerobi.com>
4 years agobpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)
Miss Islington (bot) [Fri, 17 Sep 2021 22:55:57 +0000 (15:55 -0700)] 
bpo-42038: fix description of returned list of lines (GH-27529) (GH-28428)

(cherry picked from commit aca0e08c5dcc11a8011697331931cde0b21270f2)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
4 years ago[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) (GH-28425)
Miss Islington (bot) [Fri, 17 Sep 2021 22:18:03 +0000 (15:18 -0700)] 
[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391) (GH-28425)

(cherry picked from commit d22a700091af35ce52db0b1fbb02115bb6efbb1f)

Co-authored-by: Arkaprabha Chakraborty <chakrabortyarkaprabha998@gmail.com>
4 years agobpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396...
Miss Islington (bot) [Fri, 17 Sep 2021 13:10:28 +0000 (06:10 -0700)] 
bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396) (GH-28418)

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

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agoFix typo and add a module prefix (GH-28401)
Miss Islington (bot) [Fri, 17 Sep 2021 05:12:37 +0000 (22:12 -0700)] 
Fix typo and add a module prefix (GH-28401)

(cherry picked from commit 80d9ff16483b6c1898bcdcc811b5450b57a5e573)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agodocs: correct references to __isub__ etc (GH-28297)
Miss Islington (bot) [Thu, 16 Sep 2021 10:10:10 +0000 (03:10 -0700)] 
docs: correct references to __isub__ etc (GH-28297)

(cherry picked from commit 800bd01b6d365156403c3dde61765dc5fdbf64be)

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
4 years agobpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28371)
Miss Islington (bot) [Wed, 15 Sep 2021 19:00:02 +0000 (12:00 -0700)] 
bpo-45089: Improve sqlite3 trace callback docs (GH-28238) (GH-28371)

- Add link to str object and sqlite3 transaction control
- Mention that exceptions are not propagated
(cherry picked from commit 51056b40e711d84692d099ac8970077b33c7fafd)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-9811: [doc] strftime handling of unsupported format specifiers is platform depend...
Miss Islington (bot) [Fri, 10 Sep 2021 19:53:11 +0000 (12:53 -0700)] 
bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264) (GH-28277)

(cherry picked from commit e86bcfa58080f152f242c756f625f4015671f168)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
4 years agobpo-44964: Correct the note about the f_lasti field (GH-28208) (GH-28276)
Miss Islington (bot) [Fri, 10 Sep 2021 16:16:51 +0000 (09:16 -0700)] 
bpo-44964: Correct the note about the f_lasti field (GH-28208) (GH-28276)

(cherry picked from commit ab327f2929589407595a3de95727c8ab34ddd4af)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 years agobpo-45024 and bpo-23864: Document how interface testing works with the collections...
Miss Islington (bot) [Fri, 10 Sep 2021 03:58:47 +0000 (20:58 -0700)] 
bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218) (GH-28266)

4 years agoFix small mistake in fileinput documentation (GH-28241)
Miss Islington (bot) [Thu, 9 Sep 2021 08:24:51 +0000 (01:24 -0700)] 
Fix small mistake in fileinput documentation (GH-28241)

(cherry picked from commit 5afb570d2e21d4c4e91802c4948569302f9c1a7b)

Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
4 years ago[3.10] Fix minor typo in Doc/c-api/type.rst (GH-28432) (GH-28440)
Miss Islington (bot) [Sat, 18 Sep 2021 02:11:51 +0000 (19:11 -0700)] 
[3.10] Fix minor typo in Doc/c-api/type.rst (GH-28432) (GH-28440)

retreived-> retrieved
(cherry picked from commit af08f1ba40505bf1380c08b57ba4e0b8969a8358)

Co-authored-by: Konstantin Popov <konst.hardy@gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
4 years agobpo-45198: __set_name__ documentation not clear about its usage with non-descriptor...
Miss Islington (bot) [Sat, 18 Sep 2021 07:10:00 +0000 (00:10 -0700)] 
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)

(cherry picked from commit 94b462686b7dfabbd69cc9401037d736d71c4dc2)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agoDocs: Clarify the before_and_after() example (GH-28458) (#28464)
Miss Islington (bot) [Mon, 20 Sep 2021 01:53:37 +0000 (18:53 -0700)] 
Docs: Clarify the before_and_after() example (GH-28458) (#28464)

(cherry picked from commit fcbf9b176b1190301c760a921601c6488ef8b070)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years ago[3.10] bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494) (GH...
Łukasz Langa [Tue, 21 Sep 2021 20:32:09 +0000 (22:32 +0200)] 
[3.10] bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494) (GH-28502)

(cherry picked from commit 9a0dcc5b2e04d9c51350107734f12a1cbc0284a7)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505)
Miss Islington (bot) [Tue, 21 Sep 2021 21:53:47 +0000 (14:53 -0700)] 
bpo-45216: Remove extraneous method docs from `difflib` (GH-28445) (GH-28505)

(cherry picked from commit 06e1773c8d8fe375423bb7fcf5922b49bc737b75)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
4 years agoFix legacy logging module URL (GH-28528)
Miss Islington (bot) [Thu, 23 Sep 2021 15:07:40 +0000 (08:07 -0700)] 
Fix legacy logging module URL (GH-28528)

The URL listed in the `logging` docs for the original `logging` module leads to a 404. I managed to find the new location for the page and updated the URL.

Automerge-Triggered-By: GH:vsajip
(cherry picked from commit 8492b729ae97737d22544f2102559b2b8dd03a03)

Co-authored-by: Sean Leavey <SeanDS@users.noreply.github.com>
4 years agobpo-43760: Document PyThreadState.use_tracing removal (GH-28527) (GH-28529)
Miss Islington (bot) [Thu, 23 Sep 2021 20:40:15 +0000 (13:40 -0700)] 
bpo-43760: Document PyThreadState.use_tracing removal (GH-28527) (GH-28529)

(cherry picked from commit f4ccb79d52ee726d58bbb038ea98b4deec52001d)

Co-authored-by: Victor Stinner <vstinner@python.org>