]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Thu, 23 Sep 2021 10:25:31 +0000 (03:25 -0700)]
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28523)
Replace old names when they refer to actual versions of macOS.
Keep historical names in references to older versions.
Co-authored-by: Patrick Reader <_@pxeger.com>
(cherry picked from commit
36122e18148c5b6c78ebce1d36d514fd7cf250f5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Łukasz Langa [Wed, 22 Sep 2021 16:42:15 +0000 (18:42 +0200)]
[3.10] bpo-45238: Fix unittest.IsolatedAsyncioTestCase.debug() (GH-28449) (GH-28521)
It runs now asynchronous methods and callbacks.
If it fails, doCleanups() can be called for cleaning up.
(cherry picked from commit
ecb6922ff2d56476a6cfb0941ae55aca5e7fae3d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Ł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>
Miss Islington (bot) [Tue, 21 Sep 2021 22:38:59 +0000 (15:38 -0700)]
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)
(cherry picked from commit
a0073471002bed0169fb806703e26880bbcceb73 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Tue, 21 Sep 2021 22:14:40 +0000 (15:14 -0700)]
bpo-45234: Fix FileNotFound exception raised instead of IsADirectoryError in shutil.copyfile() (GH-28421) (GH-28508)
This was a regression from fixing BPO-43219.
(cherry picked from commit
b7eac52b466f697d3e89f47508e0df0196a98970 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
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>
Ł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>
Miss Islington (bot) [Tue, 21 Sep 2021 18:19:48 +0000 (11:19 -0700)]
bpo-45209: fix `UserWarning: resource_tracker` in test_multiprocessing (GH-28377)
(cherry picked from commit
f604cf1c377a7648e0686044e6e49900bfc9feef )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 20 Sep 2021 18:52:23 +0000 (11:52 -0700)]
[3.10] bpo-45021: Fix a hang in forked children (GH-28007) (GH-28480)
_global_shutdown_lock should be reinitialized in forked children
(cherry picked from commit
0bfa1106acfcddc03590e1f5d6789dbad3affe70 )
Co-authored-by: nullptr <3621629+0x0L@users.noreply.github.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Mon, 20 Sep 2021 16:19:31 +0000 (09:19 -0700)]
bpo-45229: Make pickle tests discoverable (GH-28467) (GH-28478)
(cherry picked from commit
e6ba992288fdbe71aa808cfb6955f6f99da7e349 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 20 Sep 2021 14:58:29 +0000 (07:58 -0700)]
bpo-45055: Add retry when downloading externals on Windows (GH-28399)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
ef9e22b253253615098d22cb49141a2a1024ee3c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 20 Sep 2021 08:47:58 +0000 (01:47 -0700)]
bpo-40413: test_embed tests calling Py_RunMain() multiple times (GH-28466)
Calling Py_InitializeFromConfig()+Py_RunMain() multiple times must
not crash.
Cleanup also test_get_argc_argv().
(cherry picked from commit
5e2c32e08ed77081cabd9d51f0589f81c1572732 )
Co-authored-by: Victor Stinner <vstinner@python.org>
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>
Miss Islington (bot) [Sun, 19 Sep 2021 23:13:04 +0000 (16:13 -0700)]
bpo-45128: fixes `test_multiprocessing_fork` mysterious crash (GH-28387)
(cherry picked from commit
1d42408495402b06ecae91420735aeff454be6b5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 19 Sep 2021 23:07:16 +0000 (16:07 -0700)]
bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)
(cherry picked from commit
e6d05a4092b4176a30d1d1596585df13c2ab676d )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Serhiy Storchaka [Sun, 19 Sep 2021 19:36:03 +0000 (22:36 +0300)]
[3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.
load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.
(cherry picked from commit
40348acc180580371d25f75f46b27048e35f2435 )
Miss Islington (bot) [Sun, 19 Sep 2021 19:11:41 +0000 (12:11 -0700)]
bpo-44640: Improve punctuation consistency in isinstance/issubclass error messages (GH-27144) (GH-28436)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
f4813388b4506b2fafb0089848c5b11cd503758c )
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Miss Islington (bot) [Sat, 18 Sep 2021 13:22:31 +0000 (06:22 -0700)]
bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)
unittest.TestCase.debug() raises now a SkipTest if the class or
the test method are decorated with the skipping decorator.
Previously it only raised a SkipTest if the test method was decorated
with other decorator in addition to the skipping decorator, or
if SkipTest was explicitly raised in the test or setup methods.
(cherry picked from commit
dea59cf88adf5d20812edda330e085a4695baba4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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>
Miss Islington (bot) [Sat, 18 Sep 2021 06:47:16 +0000 (23:47 -0700)]
bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) (GH-28442)
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
Brett Cannon [Sat, 18 Sep 2021 00:46:22 +0000 (17:46 -0700)]
[3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) (#28438)
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).
(cherry picked from commit
209b7035f714dcc41df054b0b023e0b955d7e1a2 )
Co-authored-by: Brett Cannon <brett@python.org>
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>
Miss Islington (bot) [Fri, 17 Sep 2021 23:02:32 +0000 (16:02 -0700)]
Fix missing space with help for `-m compileall -o` (GH-27591) (GH-28430)
(cherry picked from commit
74cc2453ae690be940cddfae8caf8216d8628c4a )
Co-authored-by: Daniel Hahler <git@thequod.de>
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>
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>
Miss Islington (bot) [Fri, 17 Sep 2021 19:16:03 +0000 (12:16 -0700)]
bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest (GH-28422)
(cherry picked from commit
51ebb7f4f5e9bdcf8279a1d91be9569706f6bead )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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>
Miss Islington (bot) [Fri, 17 Sep 2021 10:34:46 +0000 (03:34 -0700)]
bpo-45187: Collect test_socket tests using unittest (GH-28317)
Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and
UDPLITETimeoutTest were not included in the list of tests and
were not run by regrtest.
(cherry picked from commit
0361335b80b435ca3694981b41f8269e390eb892 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Fri, 17 Sep 2021 10:11:28 +0000 (13:11 +0300)]
[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28409)
tearDown() is not called if setUp() raises an exception
(including SkipTest). addCleanup() should be used for guaranteed
execution of the cleanup code.
(cherry picked from commit
7dacb70485a0910eb298c24b4d051720ca56fb91 )
Miss Islington (bot) [Fri, 17 Sep 2021 09:09:29 +0000 (02:09 -0700)]
bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)
(cherry picked from commit
773319545ba60577bc140aa46eac83b360240b7a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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>
Miss Islington (bot) [Thu, 16 Sep 2021 19:47:09 +0000 (12:47 -0700)]
bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393) (GH-28394)
(cherry picked from commit
f4b94b1f57827083990272b5f282aa1493ae2bf4 )
Co-authored-by: Steve Dower <steve.dower@python.org>
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>
Miss Islington (bot) [Wed, 15 Sep 2021 19:35:16 +0000 (12:35 -0700)]
bpo-45167: Fix deepcopying of GenericAlias (GH-28324) (GH-28367)
(cherry picked from commit
5dce51a8875d9639786741e962b3cb208596b096 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 15 Sep 2021 19:31:59 +0000 (12:31 -0700)]
bpo-45205: Make test_compileall quiet (GH-28356) (GH-28370)
Make test_compileall quiet: test_year_2038_mtime_compilation() and
test_larger_than_32_bit_times() of test_compileall no longer log
"Compiling ..." messages to stdout.
(cherry picked from commit
cc057ff5227b3a4ded637caa7ba51b67b06abaaa )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 19:10:33 +0000 (12:10 -0700)]
bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355) (GH-28365)
test_gdb.test_pycfunction() now ignores gdb stderr, it no longer logs
messages like:
Function "meth_varargs" not defined.
(cherry picked from commit
84a6061e29e9dc13909bdf6f541f48c2a4f1d410 )
Co-authored-by: Victor Stinner <vstinner@python.org>
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>
Miss Islington (bot) [Wed, 15 Sep 2021 18:56:32 +0000 (11:56 -0700)]
bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354) (GH-28363)
test_pdb.test_checkline_is_not_executable() no longer writes output
to stdout.
Remove also unused variables 'f'.
(cherry picked from commit
e08e491a6ceea8ca105612df10147418c4e105b8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 18:46:48 +0000 (11:46 -0700)]
bpo-45193: News for IDLE PR_28343 (GH-28348)
(cherry picked from commit
9d76d28867c28bcc881b851547a9cd7ac003ae88 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Łukasz Langa [Wed, 15 Sep 2021 18:34:57 +0000 (20:34 +0200)]
[3.10] bpo-34602: Quadruple stack size on macOS when compiling with UBSAN (GH-27309) (GH-28280)
(cherry picked from commit
be9de8721d63b9d8e032d508069daf88c06542c6 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 15 Sep 2021 16:43:25 +0000 (09:43 -0700)]
bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) (GH-28353)
(cherry picked from commit
1a9ef5798525bbb39a16c8af5c435b97352ee027 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 15 Sep 2021 12:38:49 +0000 (05:38 -0700)]
bpo-45195: Fix test_readline.test_nonascii() (GH-28329) (GH-28333)
Fix test_readline.test_nonascii(): sometimes, the newline character
is not written at the end, so don't expect it in the output.
(cherry picked from commit
797c8eb9ef511f0c25f10a453b35c4d2fe383c30 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 15 Sep 2021 07:37:35 +0000 (00:37 -0700)]
bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)
The line that should not have been needed on macOS tk 8.6.8 but was,
should not be a problem on Ubuntu, but is. It is not needed on macOS
tk 8.6.11, installed with 3.10. Disable it but leave it for
now in case some system needs it.
(cherry picked from commit
1afc7b3219b24c951bb4e6b7e1ead904228de074 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Wed, 15 Sep 2021 07:33:32 +0000 (00:33 -0700)]
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
Otherwise, test would need special import.
(cherry picked from commit
369bf949ccbb689cd4638b29b4c0c12db79b927c )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 14 Sep 2021 20:02:18 +0000 (13:02 -0700)]
bpo-4356: Mention the new key arguments for the bisect module APIs in the 3.10 What's new (GH-28339) (GH-28340)
(cherry picked from commit
1aaa85949717e4ab2ed700e58762f0a3ce049a37 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 14 Sep 2021 18:58:19 +0000 (11:58 -0700)]
bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331)
(cherry picked from commit
b668cdfa09e9bdfcfddaadd23dbd455d5f667383 )
Co-authored-by: junyixie <xiejunyi.arch@bytedance.com>
Miss Islington (bot) [Tue, 14 Sep 2021 11:00:16 +0000 (04:00 -0700)]
bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300) (GH-28326)
Fixes infinite loop on unittest.mock.seal() of mocks created by
unittest.create_autospec().
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
(cherry picked from commit
7f60c9e1c6e22cc0e846a872c318570926cd3094 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 13 Sep 2021 23:33:05 +0000 (16:33 -0700)]
bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) (GH-28321)
importlib.find_loader should also be slated for 3.12 like the others in GH-25169 and as documented in https://docs.python.org/3.11/whatsnew/3.10.htmlGH-deprecated.
(cherry picked from commit
9f93018b69d72cb48d3444554261ae3b0ea00c93 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 13 Sep 2021 17:24:29 +0000 (10:24 -0700)]
bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28289)
* Calling guess_all_extensions() with strict=False potentially
mutated types_map_inv.
* Mutating the result of guess_all_extensions() mutated types_map_inv.
(cherry picked from commit
97ea18ecede8bfd33d5ab2dd0e7e2aada2051111 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 13 Sep 2021 11:34:58 +0000 (04:34 -0700)]
bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)
It is a decorator factory and should be always followed by "()".
(cherry picked from commit
9260e6739865c966c3ec6c5c289e0b96f848403e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend Egeberg Aasland [Mon, 13 Sep 2021 03:16:01 +0000 (05:16 +0200)]
[3.10] bpo-45126: Fix ref. leak in `sqlite3.Connection.__init__` (GH-28231). (GH-28298)
Miss Islington (bot) [Fri, 10 Sep 2021 21:34:07 +0000 (14:34 -0700)]
IDLE: adjust Python version in doc url for 3.10+ (GH-28228)
Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
b74c819fab86bedc9b962ea42cfb9b5893fd2dda )
Co-authored-by: giovanniwijaya <16949408+giovanniwijaya@users.noreply.github.com>
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>
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>
Miss Islington (bot) [Fri, 10 Sep 2021 16:11:44 +0000 (09:11 -0700)]
bpo-44219: Mention GH-28250 is a deadlock bugfix (GH-28261) (GH-28274)
(cherry picked from commit
296b7100705ef52aece3378b0ae42c33a58526e1 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Fri, 10 Sep 2021 15:11:25 +0000 (08:11 -0700)]
[3.10] Fix typos in pep384_macrocheck.py (GH-28220) (GH-28272)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
4338aeeb9e07607f17bbada8ebfd97e7cc7a203c )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
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)
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>
Miss Islington (bot) [Thu, 9 Sep 2021 17:10:04 +0000 (10:10 -0700)]
Fix minor typo in 3.10.rst (GH-28253) (GH-28259)
(cherry picked from commit
73668541357caa813e7daa8792fab6fdf755a07f )
Co-authored-by: D.Lintin <diantolintin3@gmail.com>
Co-authored-by: D.Lintin <diantolintin3@gmail.com>
Miss Islington (bot) [Thu, 9 Sep 2021 16:35:43 +0000 (09:35 -0700)]
bpo-44219: Release the GIL during isatty syscalls (GH-28250) (GH-28255)
Release the GIL while performing isatty() system calls on arbitrary
file descriptors. In particular, this affects os.isatty(),
os.device_encoding() and io.TextIOWrapper. By extension,
io.open() in text mode is also affected.
(cherry picked from commit
06148b1870fceb1a21738761b8e1ac3bf654319b )
Co-authored-by: Vincent Michel <vxgmichel@gmail.com>
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>
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>
Raymond Hettinger [Thu, 9 Sep 2021 03:42:29 +0000 (22:42 -0500)]
[3.10] bpo-20499: Rounding error in statistics.pvariance (GH-28230) (GH-28248)
Miss Islington (bot) [Wed, 8 Sep 2021 16:32:19 +0000 (09:32 -0700)]
[3.10] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28134)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit
b4b6342848ec0459182a992151099252434cc619 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* Use a private version of _PyType_GetQualName
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Łukasz Langa [Wed, 8 Sep 2021 16:25:09 +0000 (18:25 +0200)]
[3.10] bpo-45056: Remove trailing unused constants from co_consts (GH-28109) (GH-28125)
(cherry picked from commit
55c4a92fc1abfe388335071f1d64b3addfa5793f )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
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>
Serhiy Storchaka [Wed, 8 Sep 2021 15:08:57 +0000 (18:08 +0300)]
[3.10] bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) (GH-28027)
(cherry picked from commit
2a8127cafe1d196f858a3ecabf5f1df3eebf9a12 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 8 Sep 2021 15:05:23 +0000 (08:05 -0700)]
bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28232)
(cherry picked from commit
c11956a8bddd75f02ccc7b4da7e4d8123e1f3c5f )
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Miss Islington (bot) [Wed, 8 Sep 2021 08:25:58 +0000 (01:25 -0700)]
bpo-38820: Test with OpenSSL 3.0.0 final (GH-28205)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit
cc7c6801945c6a7373553b78bd899ce09681ec0a )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Tue, 7 Sep 2021 18:46:34 +0000 (11:46 -0700)]
Remove documentation for non-existing socket class attributes (GH-28029)
The functions in question are available on the module-level only.
(cherry picked from commit
34d82ce7cb82a8f5e2e83417d66d9aa319f3bb69 )
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Miss Islington (bot) [Tue, 7 Sep 2021 18:44:16 +0000 (11:44 -0700)]
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)
(cherry picked from commit
19a304ba990481f0381a5316096b6b3cf2dff381 )
Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
Miss Islington (bot) [Tue, 7 Sep 2021 17:52:26 +0000 (10:52 -0700)]
Add more itertool recipes (GH-28165)
(cherry picked from commit
750368cbcd20393026f3bf695195f1a2cba490b5 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Tue, 7 Sep 2021 16:26:35 +0000 (09:26 -0700)]
bpo-45104: Clarify when __init__ is called (GH-28210)
(cherry picked from commit
fa15df77f02ba4a66ba0b71989381a426038be01 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Pablo Galindo [Tue, 7 Sep 2021 14:39:51 +0000 (15:39 +0100)]
Post 3.10.0rc2
Pablo Galindo [Tue, 7 Sep 2021 13:17:15 +0000 (14:17 +0100)]
Python 3.10.0rc2
Miss Islington (bot) [Tue, 7 Sep 2021 11:43:33 +0000 (04:43 -0700)]
bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194) (GH-28199)
Fix PyAiter_Check to only check for the `__anext__` presense (not for
`__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`,
`PyObject_GetAiter()` -> `PyObject_GetAIter()`.
Miss Islington (bot) [Tue, 7 Sep 2021 11:36:43 +0000 (04:36 -0700)]
bpo-44964: Add a note explaining the new semantics of f_last_i in frame objects (GH-28200)
(cherry picked from commit
fa2c0b85a8d5c9486661083afdf38cbaadb3432a )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 7 Sep 2021 11:20:31 +0000 (04:20 -0700)]
bpo-44860: Make sysconfig posix_user not depend on platlibdir (GH-27655) (GH-28197)
(cherry picked from commit
a5c6bcf24479934fe9c5b859dd1cf72685a0003a )
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Miss Islington (bot) [Tue, 7 Sep 2021 10:52:53 +0000 (03:52 -0700)]
bpo-44963: Implement send() and throw() methods for anext_awaitable objects (GH-27955)
Co-authored-by: Yury Selivanov <yury@edgedb.com>
(cherry picked from commit
533e725821b15e2df2cd4479a34597c1d8faf616 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 7 Sep 2021 04:26:48 +0000 (21:26 -0700)]
Update idlelib/help.html to include idle.rst spelling fix (GH-28191)
The idle.rst fix was GH-27903 two weeks ago.
(cherry picked from commit
f05ad9202896f21ca9717f5c9f4b933b7f5b6550 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 6 Sep 2021 21:35:07 +0000 (14:35 -0700)]
Fix typo in a comment in Modules/_ssl.c: s/validata/validate/ (GH-27993) (GH-27997)
(cherry picked from commit
28db1f61f20352c02e4ae1518e5aeb6505df3045 )
Miss Islington (bot) [Mon, 6 Sep 2021 17:16:44 +0000 (10:16 -0700)]
bpo-45052: Unskips a failing `test_shared_memory_basics` test (GH-28182)
(cherry picked from commit
19871fce3b74fc3f37e334a999e00d0ef65a8f1e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 5 Sep 2021 17:57:32 +0000 (10:57 -0700)]
More useful OrderedDict LRU recipes (GH-28164)
(cherry picked from commit
c860d30fa055ada336c75157b488c7baafb5bdad )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sun, 5 Sep 2021 14:01:56 +0000 (07:01 -0700)]
Check that 'configure' is generated by GNU Autoconf 2.69 (GH-28152) (GH-28155)
(cherry picked from commit
6beaf2ffaecd92955c5b3c579f184cbecc222636 )
Miss Islington (bot) [Sun, 5 Sep 2021 07:55:35 +0000 (00:55 -0700)]
bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166)
(cherry picked from commit
28264269de9ff88d9ee7110fc56ac2d2db275bec )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 5 Sep 2021 05:30:37 +0000 (22:30 -0700)]
bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167)
(cherry picked from commit
91be41ad933e24bff26353a19f56447e17fb6367 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 4 Sep 2021 21:04:44 +0000 (14:04 -0700)]
bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit
dd7b816ac87e468e2fa65ce83c2a03fe1da8503e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 4 Sep 2021 20:39:30 +0000 (13:39 -0700)]
bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000)
It happened with fast range iterator when the calculated stop = start + step * len
was out of the C long range.
(cherry picked from commit
936f6a16b9ef85bd56b18a247b962801e954c30e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 4 Sep 2021 20:37:56 +0000 (13:37 -0700)]
[3.10] bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) (GH-28159)
* bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154)
(cherry picked from commit
c2970fdec52788b6d9ff419ab7e31f255d87433d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 4 Sep 2021 18:59:29 +0000 (11:59 -0700)]
Add What's New for dataclass keyword-only parameters. (GH-28158) (GH-28163)
(cherry picked from commit
a1ba3597d2d2dd5e5d73f42b1174ab5e0a2cd224 )
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Pablo Galindo Salgado [Sat, 4 Sep 2021 14:21:40 +0000 (15:21 +0100)]
[3.10] Regenerate autoconf files with version 2.69 (GH-28151)
Serhiy Storchaka [Sat, 4 Sep 2021 01:13:00 +0000 (04:13 +0300)]
[3.10] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28092)
(cherry picked from commit
3c65457156d87e55010507d616b4eecb7a02883d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Dong-hee Na [Fri, 3 Sep 2021 17:22:22 +0000 (17:22 +0000)]
bpo-42255: Update webbrowser doc for macOS (GH-28144)
Miss Islington (bot) [Fri, 3 Sep 2021 06:26:53 +0000 (23:26 -0700)]
bpo-45081: Fix __init__ method generation when inheriting from Protocol (GH-28121)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
0635e201beaf52373f776ff32702795e38f43ae3 )
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Miss Islington (bot) [Thu, 2 Sep 2021 16:37:55 +0000 (09:37 -0700)]
[doc] Reword sentinel object summary in dataclasses (GH-27792)
This sentinel value (`MISSING`) is also used as default value for the `kw_only` parameter introduced in Python 3.10. It's cleaner to simply omit the usage here.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit
767a17f35a581da664ac8cf5d67281da9485eebf )
Co-authored-by: Ville Korhonen <ville@xd.fi>
Łukasz Langa [Thu, 2 Sep 2021 16:18:47 +0000 (18:18 +0200)]
[3.10] [doc] Link to deprecation policy PEP from the DeprecationWarning documentation (GH-28123) (#28126)
(cherry picked from commit
a7ef15aae8608560bffeeaba412c10e52cab07dd )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Thu, 2 Sep 2021 15:37:14 +0000 (08:37 -0700)]
bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122)
(cherry picked from commit
f0b63d5b56a6324f5f86807d9548c7b38aa2a8f7 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Wed, 1 Sep 2021 06:45:46 +0000 (23:45 -0700)]
bpo-45057: Simplify RegressionTestResult (GH-28081) (GH-28101)
Remove code which duplicates the functionality of TextTestResult.
(cherry picked from commit
2b76a5322fdf71d62b531fd765085f96f981c244 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 31 Aug 2021 19:21:28 +0000 (12:21 -0700)]
bpo-45059: Add module cleanup to IDLE test_macosx (GH-28102)
(cherry picked from commit
22fe0eb13c3441b71b60aaea0e7fe289a29783da )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>