]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Terry Jan Reedy [Tue, 25 Jan 2022 08:28:29 +0000 (03:28 -0500)]
[3.10] bpo-46496: Update IDLE News to 2021 Jan 24 (GH-30876)
Cherry picked from
b1a3446f077b7d56b89f55d98dadb8018986a3e
Miss Islington (bot) [Tue, 25 Jan 2022 07:02:02 +0000 (23:02 -0800)]
bpo-41841: update idlelib News up to 3.10.0. (GH-30868) (GH-30870)
(cherry picked from commit
9d3c9788a6ccd4f2f53a147dd0026a316c396976 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 25 Jan 2022 03:13:11 +0000 (19:13 -0800)]
bpo-46503: Prevent an assert from firing when parsing some invalid \N sequences in f-strings. (GH-30865) (GH-30866)
* bpo-46503: Prevent an assert from firing. Also fix one nearby tiny PEP-7 nit.
* Added blurb.
(cherry picked from commit
0daf72194bd4e31de7f12020685bb39a14d6f45e )
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Nikita Sobolev [Mon, 24 Jan 2022 16:18:38 +0000 (19:18 +0300)]
[3.10] bpo-46416: Allow direct invocation of `Lib/test/test_typing.py` (GH-30641) (GH-30697)
Use `__name__`
(cherry picked from commit
2792d6d18eab3efeb71e6397f88db86e610541f1 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 23 Jan 2022 22:02:31 +0000 (14:02 -0800)]
Improve grouper() recipe to demonstrate all forms of zip() (GH-30837) (GH-30840)
Irit Katriel [Sun, 23 Jan 2022 19:34:43 +0000 (19:34 +0000)]
bpo-41403: Improve error message for invalid mock target (GH-30833) (GH-30834)
(cherry picked from commit
f7955a82e36d4c32ebdd7b7707cdf0e6ffa7a418 )
Jason R. Coombs [Sun, 23 Jan 2022 15:17:27 +0000 (10:17 -0500)]
[3.10] bpo-46474: Avoid REDoS in EntryPoint.pattern (sync with importlib_metadata 4.10.1) (GH-30803) (GH-30827)
(cherry picked from commit
51c3e28c8a163e58dc753765e3cc51d5a717e70d )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Pablo Galindo Salgado [Sun, 23 Jan 2022 03:10:37 +0000 (03:10 +0000)]
[3.10] bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378). (GH-30819)
(cherry picked from commit
70f415fb8b632247e28d87998642317ca7a652ae )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 23 Jan 2022 01:00:11 +0000 (17:00 -0800)]
bpo-46266: Add calendar day of week constants to __all__ (GH-30412) (GH-30424)
(cherry picked from commit
e5894ca8fd05e6a6df1033025b9093b68baa718d )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sun, 23 Jan 2022 00:58:16 +0000 (16:58 -0800)]
bpo-41682: Skip unstable test_asyncio sendfile test on Windows (GH-30801) (GH-30812)
(cherry picked from commit
1ded8ed8e817b8f9dae1a0ef92d97983afbc844e )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 22 Jan 2022 17:28:48 +0000 (09:28 -0800)]
bpo-43118: Fix bug in inspect.signature around 'base.__text_signature__' (GH-30285) (#30765)
(cherry picked from commit
881a763cfe07ef4a5806ec78f13a9bc99e8909dc )
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Miss Islington (bot) [Sat, 22 Jan 2022 15:31:52 +0000 (07:31 -0800)]
bpo-46468: document that "-m http.server" defaults to port 8000 (GH-30776) (#30787)
Code link:
https://github.com/python/cpython/blob/
70c16468deee9390e34322d32fda57df6e0f46bb /Lib/http/server.pyGH-L1270
It's been this way since at least 3.4.
Also improved some wording in the same section.
(cherry picked from commit
c8a536624e8f5d6612e3c275c5b19592583a8cf8 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 22 Jan 2022 14:28:36 +0000 (06:28 -0800)]
bpo-46417: Fix race condition on setting type __bases__ (GH-30788) (GH-30789)
Fix a race condition on setting a type __bases__ attribute: the
internal function add_subclass() now gets the
PyTypeObject.tp_subclasses member after calling PyWeakref_NewRef()
which can trigger a garbage collection which can indirectly modify
PyTypeObject.tp_subclasses.
(cherry picked from commit
f1c6ae3270913e095d24ae13ecf96f5a32c8c503 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 22 Jan 2022 12:29:51 +0000 (04:29 -0800)]
bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782)
(cherry picked from commit
5a5340044ca98cbe6297668d91bccba04b102923 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 22 Jan 2022 12:28:51 +0000 (04:28 -0800)]
[3.10] bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777) (#30784)
* bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777)
* bpo-46469: Make asyncio generic classes return GenericAlias
* 📜🤖 Added by blurb_it.
* Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
ea5b96842e066623a53015d8b2492ed61a5baf96 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Fix tests
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Sat, 22 Jan 2022 07:34:29 +0000 (23:34 -0800)]
bpo-46442: improve and rename testExceptionCleanupNames (GH-30758)
The test tested that explicitly deleting the local variable bound to the exception
did not cause problems, but it did not test what it actually claimed to test, i.e.
that the variable is deleted automatically.
(cherry picked from commit
82c53229e18f5853c82cb8ab6b9af1925a0e9e58 )
Co-authored-by: Yellow Dusk <yellow.dusk1590@fastmail.com>
Miss Islington (bot) [Fri, 21 Jan 2022 22:37:52 +0000 (14:37 -0800)]
bpo-46445: Cover multiple inheritance of `TypedDict` in `test_typing` (GH-30719)
(cherry picked from commit
65b88d5e01c845c0cfa3ff61bc8b2faec8f67a57 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 21 Jan 2022 22:11:47 +0000 (14:11 -0800)]
bpo-46463: Fixes escape4chm.py script used when building the CHM documentation file (GH-30768)
(cherry picked from commit
57d1855682dbeb9233ef3a531f9535c6442e9992 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 21 Jan 2022 19:32:43 +0000 (11:32 -0800)]
bpo-46434: Handle missing docstrings in pdb help (GH-30705)
(cherry picked from commit
60705cff70576482fea31dcafbf8a37cbb751ea5 )
Co-authored-by: Tom Sparrow <793763+sparrowt@users.noreply.github.com>
Miss Islington (bot) [Fri, 21 Jan 2022 17:31:25 +0000 (09:31 -0800)]
bpo-46426: Improve tests for the dir_fd argument (GH-30668) (GH-30739)
Ensure that directory file descriptors refer to directories different
from the current directory, and that src_dir_fd and dst_dir_fd refer
to different directories.
Add context manager open_dir_fd() in test.support.os_helper.
(cherry picked from commit
54610bb448a9cf5be77d53b66169fca4c11be6cb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 21 Jan 2022 12:45:42 +0000 (04:45 -0800)]
no-issue: Fix documentation typos. (GH-30576)
(cherry picked from commit
d05a66339b5e07d72d96e4c30a34cc3821bb61a2 )
Co-authored-by: Piotr Fusik <piotr@fusik.info>
Tal Einat [Fri, 21 Jan 2022 09:02:25 +0000 (11:02 +0200)]
[3.10] bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406)
(cherry picked from commit
27df7566bc19699b967e0e30d7808637b90141f6 )
Co-authored-by: Zane Bitter <zbitter@redhat.com>
Miss Islington (bot) [Fri, 21 Jan 2022 08:05:57 +0000 (00:05 -0800)]
bpo-21987: Fix TarFile.getmember getting a dir with a trailing slash (GH-30283)
(cherry picked from commit
cfadcc31ea84617b1c73022ce54d4ae831333e8d )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Thu, 20 Jan 2022 23:13:17 +0000 (15:13 -0800)]
bpo-46080: fix argparse help generation exception in edge case (GH-30111)
Fix an uncaught exception during help text generation when
argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS
and help is specified.
(cherry picked from commit
9e87c0e03fa501fb90008547983ce4c1dcaaf90c )
Co-authored-by: Felix Fontein <felix@fontein.de>
Erlend Egeberg Aasland [Thu, 20 Jan 2022 21:06:47 +0000 (22:06 +0100)]
[3.10] Mark all clinic headers as generated (GH-30679). (GH-30726)
(cherry picked from commit
71734d0b9ca584bcbdcb2fb44ae16bb2fbfcaf6e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 20 Jan 2022 13:05:10 +0000 (05:05 -0800)]
[3.10] bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529) (GH-30542)
* bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
cedec19be81e6bd153678bfb28c8e217af8bda58 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Fix interactive mode
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Nikita Sobolev [Thu, 20 Jan 2022 01:44:21 +0000 (04:44 +0300)]
[3.10] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) (GH-30699)
Miss Islington (bot) [Wed, 19 Jan 2022 22:30:07 +0000 (14:30 -0800)]
bpo-46437: remove useless `hasattr` from `test_typing` (GH-30704)
(cherry picked from commit
263c0dd16017613c5ea2fbfc270be4de2b41b5ad )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 19 Jan 2022 21:58:13 +0000 (13:58 -0800)]
doc: Clarify os.urandom return type (GH-30282)
Other descriptions in the same file also use 'bytestring' to refer to bytes objects
(cherry picked from commit
4b99803b861e58eb476a7a30e2e8aacdec5df104 )
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Miss Islington (bot) [Wed, 19 Jan 2022 21:57:09 +0000 (13:57 -0800)]
docs: correct outdated MappingProxyType docstrings (GH-30281)
The docstrings for MappingProxyType's keys(), values(), and items()
methods were never updated to reflect the changes that Python 3 brought
to these APIs, namely returning views rather than lists.
(cherry picked from commit
2d10fa9bc4cf83c5e5dd73decc9a138d6d247374 )
Co-authored-by: Joshua Bronson <jabronson@gmail.com>
Miss Islington (bot) [Wed, 19 Jan 2022 18:02:07 +0000 (10:02 -0800)]
Update documentation in datetime module strftime-and-strptime-behavior fix typo in '%W' format code description (GH-30232)
A small change to the documentation of datetime module , in the format codes section of stftime and strptime. Changed the description of format code '%W' from 'as a decimal number' to 'a zero padded decimal number' so it's in line with the example having leading zeros. Similar to the format code '%U' above.
Automerge-Triggered-By: GH:pganssle
(cherry picked from commit
d45cd2d20770f72a000ba6dfa9ac88dd49423c27 )
Co-authored-by: Evan <binary-signal@users.noreply.github.com>
Miss Islington (bot) [Wed, 19 Jan 2022 16:11:12 +0000 (08:11 -0800)]
[3.10] bpo-46413: properly test `__{r}or__` code paths in `_SpecialGenericAlias` (GH-30640) (GH-30694)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
0a49148e87cca11e3820cbff2abfd316986a68c6 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:Fidget-Spinner
Miss Islington (bot) [Wed, 19 Jan 2022 15:54:07 +0000 (07:54 -0800)]
bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663)
(cherry picked from commit
32398294fb3fcf4ee74da54722fd0221c4e6cb74 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Wed, 19 Jan 2022 15:24:14 +0000 (07:24 -0800)]
[3.10] bpo-45680: Clarify documentation on ``GenericAlias`` objects (GH-29335) (GH-30688)
The documentation on ``GenericAlias`` objects implies at multiple points that
only container classes can define ``__class_getitem__``. This is misleading.
This PR proposes a rewrite of the documentation to clarify that non-container
classes can define ``__class_getitem__``, and to clarify what it means when a
non-container class is parameterized.
See also: initial discussion of issues with this piece of documentation in
GH-29308, and previous BPO issue [42280]().
Also improved references in glossary and typing docs. Fixed some links.
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
0eae9a2a2db6cc5a72535f61bb988cc417011640 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Miss Islington (bot) [Wed, 19 Jan 2022 12:34:17 +0000 (04:34 -0800)]
bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30684)
(cherry picked from commit
3bf6315c4cabf72d64e65e6f85bf72c65137255a )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Erlend Egeberg Aasland [Tue, 18 Jan 2022 21:57:33 +0000 (22:57 +0100)]
[3.10] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) (GH-30671)
* bpo-46402: Promote SQLite URI tricks in `sqlite3` docs (GH-30660)
Provide some examples of URI parameters in sqlite connect().
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
(cherry picked from commit
bdf2ab1887a2edfb089a3c2a1590cf1e84ea0048 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update suspicious rules
Miss Islington (bot) [Tue, 18 Jan 2022 21:51:30 +0000 (13:51 -0800)]
bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)
This addresses [bpo-45554]() by expanding the `exitcode` documentation to also describe what `exitcode` will be in cases of normal termination, `sys.exit()` called, and on uncaught exceptions.
Automerge-Triggered-By: GH:pitrou
(cherry picked from commit
3852269b91fcc8ee668cd876b3669eba6da5b1ac )
Co-authored-by: John Marshall <jmarshall@hey.com>
Miss Islington (bot) [Tue, 18 Jan 2022 20:16:54 +0000 (12:16 -0800)]
bpo-20823: Clarify copyreg.pickle() documentation (GH-30230)
(cherry picked from commit
65940fa5c12a4b4a0650c7845044ffd63b94e227 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 18 Jan 2022 07:33:00 +0000 (23:33 -0800)]
bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638)
(cherry picked from commit
a287b31bcb065e4122400cb59167340d25480e6d )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 17 Jan 2022 13:47:51 +0000 (05:47 -0800)]
bpo-46383: Fix signature of zoneinfo module_free function (GH-30607) (GH-30610)
(cherry picked from commit
cfbde65df318eea243706ff876e5ef834c085e5f )
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 17 Jan 2022 13:35:07 +0000 (05:35 -0800)]
bpo-13886: Skip PTY non-ASCII tests if readline is loaded (GH-30631)
Skip test_builtin PTY tests on non-ASCII characters if the readline
module is loaded. The readline module changes input() behavior, but
test_builtin is not intented to test the readline module.
When the readline module is loaded, PyOS_Readline() uses the readline
implementation. In some cases, the Python readline callback
rlhandler() is called by readline with a string without non-ASCII
characters.
(cherry picked from commit
ad6e640f910787e73fd00f59117fbd22cdf88c78 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 14 Jan 2022 23:59:20 +0000 (15:59 -0800)]
bpo-20281, bpo-29964: update datetime docs to refer %z and %Z to a pre-existing footnote (GH-30354)
(cherry picked from commit
305588c67cdede4ef127ada90c1557bc1ef7c200 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Pablo Galindo [Fri, 14 Jan 2022 21:14:09 +0000 (21:14 +0000)]
Merge remote-tracking branch 'upstream/3.10' into 3.10
Pablo Galindo [Fri, 14 Jan 2022 21:11:47 +0000 (21:11 +0000)]
Post 3.10.2
Miss Islington (bot) [Fri, 14 Jan 2022 17:47:51 +0000 (09:47 -0800)]
bpo-23183: Document the timeit output (GH-30359)
Co-authored-by: Robert Collins <robertc@robertcollins.net>
(cherry picked from commit
73140de97cbeb01bb6c9af1da89ecb9355921e91 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 14 Jan 2022 04:32:40 +0000 (20:32 -0800)]
bpo-46280: Fix tracemalloc_copy_domain() (GH-30591)
Test if tracemalloc_copy_traces() failed to allocated memory in
tracemalloc_copy_domain().
(cherry picked from commit
7c770d3350813a82a639fcb3babae0de2b87aaae )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 13 Jan 2022 21:08:47 +0000 (13:08 -0800)]
[3.10] bpo-40479: Fix typo, flag must be set for OpenSSL < 3.0.0 (GH-30584) (GH-30585)
(cherry picked from commit
276c234ce0fa6732237f1b187989837324d9dea3 )
Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
Pablo Galindo [Thu, 13 Jan 2022 18:47:56 +0000 (18:47 +0000)]
Python 3.10.2
Miss Islington (bot) [Thu, 13 Jan 2022 18:50:09 +0000 (10:50 -0800)]
bpo-46070: _PyGC_Fini() untracks objects (GH-30577)
Py_EndInterpreter() now explicitly untracks all objects currently
tracked by the GC. Previously, if an object was used later by another
interpreter, calling PyObject_GC_UnTrack() on the object crashed if
the previous or the next object of the PyGC_Head structure became a
dangling pointer.
(cherry picked from commit
1a4d1c1c9b08e75e88aeac90901920938f649832 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 13 Jan 2022 09:42:47 +0000 (01:42 -0800)]
Define Py_BUILD_CORE_MODULE
Miss Islington (bot) [Thu, 13 Jan 2022 01:45:49 +0000 (17:45 -0800)]
bpo-46345: Add a test case for implicit `Optional` class attribute (GH-30535)
(cherry picked from commit
1de60155d5d01be2924e72fb68dd13d4fd00acd7 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Yury Selivanov [Wed, 12 Jan 2022 00:17:42 +0000 (16:17 -0800)]
bpo-46347: Fix PyEval_EvalCodeEx to correctly cleanup in error paths (#30553)
Miss Islington (bot) [Tue, 11 Jan 2022 23:09:22 +0000 (15:09 -0800)]
bpo-46347: Fix memory leak in PyEval_EvalCodeEx. (GH-30546)
First introduced in
0332e569c12d3dc97171546c6dc10e42c27de34b
(cherry picked from commit
607d8a838f29ad3c4c4e85b39f338dade5f9cafe )
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Miss Islington (bot) [Tue, 11 Jan 2022 20:18:33 +0000 (12:18 -0800)]
[doc] Add license_url for python-docs-theme 2022.1. (GH-30527) (GH-30540)
(cherry picked from commit
6f05e1ec193c132015e9a23d1137b1731596f186 )
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Tue, 11 Jan 2022 16:33:08 +0000 (08:33 -0800)]
bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463)
(cherry picked from commit
6fa8b2ceee38187b0ae96aee12fe4f0a5c8a2ce7 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 11 Jan 2022 14:53:08 +0000 (06:53 -0800)]
closes bpo-46253: Change Py_UNICODE to Py_UCS4 in the C API docs to match the current source code (GH-30387)
(cherry picked from commit
43c5c1369cb21f08a1dc1d63923c3586b883e3e8 )
Co-authored-by: Julian Gilbey <julian-git@d-and-j.net>
Miss Islington (bot) [Tue, 11 Jan 2022 14:21:40 +0000 (06:21 -0800)]
Remove unused `Any` from `Concatenate` example in typing docs (GH-30516)
(cherry picked from commit
73decdf0214c3ca931c22889734758acf5e65dd7 )
Co-authored-by: Michael Oliver <michaeloliver__@outlook.com>
Miss Islington (bot) [Tue, 11 Jan 2022 03:29:31 +0000 (19:29 -0800)]
bpo-46205: exit if no workers are alive in runtest_mp (GH-30470)
(cherry picked from commit
e13cdca0f5224ec4e23bdd04bb3120506964bc8b )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Mon, 10 Jan 2022 02:31:51 +0000 (18:31 -0800)]
bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) (GH-30509)
Miss Islington (bot) [Sun, 9 Jan 2022 01:08:20 +0000 (17:08 -0800)]
bpo-34602: Fix unportable test(1) operator in configure script (GH-30490) (GH-30491)
(cherry picked from commit
3d11c1b8b49800c5c4c295953cc3abf577f6065a )
Co-authored-by: Thomas Klausner <tk@giga.or.at>
Miss Islington (bot) [Sat, 8 Jan 2022 20:05:43 +0000 (12:05 -0800)]
bpo-46261: Update `sqlite3.Cursor.lastrowid` docs (GH-30407)
Miss Islington (bot) [Sat, 8 Jan 2022 15:09:40 +0000 (07:09 -0800)]
bpo-46290: Fix parameter names in dataclasses docs (GH-30450)
(cherry picked from commit
ef5376e69e72fa922d7f1b3df47b99d3576f9df1 )
Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
Miss Islington (bot) [Sat, 8 Jan 2022 05:26:01 +0000 (21:26 -0800)]
bpo-46299: improve `test_descr.py` with stricter error handling (GH-30471)
(cherry picked from commit
e63066cfed27511c9b786d61761f87f7a532571a )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Fri, 7 Jan 2022 22:30:18 +0000 (14:30 -0800)]
bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467)
Automerge-Triggered-By: GH:isidentical
(cherry picked from commit
d382f7ee0b98e4ab6ade9384268f25c06be462ad )
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Miss Islington (bot) [Fri, 7 Jan 2022 22:15:25 +0000 (14:15 -0800)]
[3.10] bpo-42378: fixed log truncation on logging shutdown (GH-27310) (GH-30468)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Miss Islington (bot) [Fri, 7 Jan 2022 20:03:36 +0000 (12:03 -0800)]
bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360)
Co-authored-by: Ian Kelling <ian@iankelling.org>
(cherry picked from commit
6d07a9fb7cb31433c376a1aa20ea32001da0a418 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Jan 2022 19:01:33 +0000 (11:01 -0800)]
[3.10] bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663) (GH-30461)
(cherry picked from commit
273cb8e7577d143830404f6779946a0bedb58758 )
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Automerge-Triggered-By: GH:iritkatriel
Miss Islington (bot) [Fri, 7 Jan 2022 18:50:09 +0000 (10:50 -0800)]
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
9b7aa6a9d678ba798c57fa5bbc800014dfe4fb91 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 Jan 2022 14:35:15 +0000 (06:35 -0800)]
bpo-46070: Fix asyncio initialisation guard (GH-30423)
If init flag is set, exit successfully immediately.
If not, only set the flag after successful initialization.
(cherry picked from commit
b127e70a8a682fe869c22ce04c379bd85a00db67 )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Thu, 6 Jan 2022 23:18:41 +0000 (15:18 -0800)]
[3.10] bpo-46251: Add 'Security Considerations' section to logging configura… (GH-30411) (GH-30447)
Miss Islington (bot) [Thu, 6 Jan 2022 20:12:04 +0000 (12:12 -0800)]
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
c9137d4b638c0699b904011cafe68895d28dd80b )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Thu, 6 Jan 2022 15:36:47 +0000 (07:36 -0800)]
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
a4aa52dc2801d25b6343fe2ef8de7f40ea3bc883 )
Co-authored-by: Christian Heimes <christian@python.org>
Victor Stinner [Thu, 6 Jan 2022 15:12:28 +0000 (16:12 +0100)]
[3.10] bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422) (GH-30425)
This reverts commit
ea251806b8dffff11b30d2182af1e589caf88acf .
Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for
the main interpreter.
Keep _PyUnicode_ClearInterned() changes avoiding the creation of a
temporary Python list object.
Leave the PyInterpreterState structure unchanged to keep the ABI
backward compatibility with Python 3.10.0: rename the "interned"
member to "unused_interned".
(cherry picked from commit
35d6540c904ef07b8602ff014e520603f84b5886 )
Miss Islington (bot) [Thu, 6 Jan 2022 14:44:22 +0000 (06:44 -0800)]
bpo-46278: fix typo introduced in GH-30427 (GH-30430) (GH-30431)
Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit
b50e5e916a05df65ab6a255af7624b751e0fe9d1 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 6 Jan 2022 13:04:05 +0000 (05:04 -0800)]
Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427) (GH-30428)
(cherry picked from commit
3e43fac2503afe219336742b150b3ef6e470686f )
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Miss Islington (bot) [Wed, 5 Jan 2022 13:12:21 +0000 (05:12 -0800)]
bpo-46236: Fix PyFunction_GetAnnotations() returned tuple. (GH-30409)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
46e4c257e7c26c813620232135781e6c53fe8d4d )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Wed, 5 Jan 2022 10:17:39 +0000 (02:17 -0800)]
bpo-46263: Don't use MULTIARCH on FreeBSD (GH-30410)
(cherry picked from commit
cae55542d23e606dde9819d5dadd7430085fcc77 )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Tue, 4 Jan 2022 19:17:16 +0000 (11:17 -0800)]
Fix missing "," in the documentation of Executor Objects (GH-30404)
(cherry picked from commit
f404e26d749c85eef7b5be836375260855050ee3 )
Co-authored-by: Philipp Claßen <philipp.classen@posteo.de>
Co-authored-by: Philipp Claßen <philipp.classen@posteo.de>
Miss Islington (bot) [Tue, 4 Jan 2022 14:27:13 +0000 (06:27 -0800)]
bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168)
* bpo-20369: concurrent.futures.wait() now deduplicates futures given as arg.
* 📜🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit
7d7817cf0f826e566d8370a0e974bbfed6611d91 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 Jan 2022 12:03:38 +0000 (04:03 -0800)]
bpo-33252: Document that ResourceWarning is ignored by default (GH-30358) (GH-30395)
`ResourceWarning` is ignored by default.
Document this behaviour, for consistency with others in this table such as `DeprecationWarning`.
Documentation PR can skip NEWS file.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
b949845b36b999185ed2bdf8a04dca1da39f3002 )
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) [Tue, 4 Jan 2022 11:03:46 +0000 (03:03 -0800)]
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
(cherry picked from commit
e09d94a140a5f6903017da9b6ac752ba041d69da )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 4 Jan 2022 09:22:26 +0000 (01:22 -0800)]
bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) (#30388)
(cherry picked from commit
5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 4 Jan 2022 05:55:38 +0000 (21:55 -0800)]
Add doctest and improve readability for move_to_end() example. (GH-30370) (GH-30373)
Miss Islington (bot) [Mon, 3 Jan 2022 23:10:20 +0000 (15:10 -0800)]
bpo-34538: Remove Exception subclassing from tutorial (GH-30361)
Remove the bit about subclassing exceptions.
Documentation PR can skip the NEWS label.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit
2db56130631255ca2eb504519430fb2f1fe789e9 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Jan 2022 20:36:41 +0000 (12:36 -0800)]
bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30368)
(cherry picked from commit
51700bf08b0dd4baf998440b2ebfaa488a2855ba )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 3 Jan 2022 06:44:35 +0000 (22:44 -0800)]
bpo-40477: macOS Python Launcher app fixes for recent macOS releases (GH-30348) (GH-30349)
This change solves two problems encountered by users of the macOS Python Launcher app on recent macOS releases (10.14+):
- The launcher app was no longer able to launch the macOS Terminal.app to run a script.
- Even if Terminal.app was already launched, the launcher app was unable to send an Apple Event to Terminal.app to open and run Python with the desired .py file.
(cherry picked from commit
549e62827262264cda30455e10e315602129da72 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 2 Jan 2022 21:29:35 +0000 (13:29 -0800)]
argparse docs: prog default is the basename of argv[0] (GH-30298) (GH-30339)
Miss Islington (bot) [Sun, 2 Jan 2022 21:13:04 +0000 (13:13 -0800)]
[3.10] Update copyright year to 2022. (GH-30335) (GH-30336)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit
ba00f0d93a4aea85ae8089f139856a7c450584d7 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Miss Islington (bot) [Sat, 1 Jan 2022 19:12:43 +0000 (11:12 -0800)]
bpo-46095: Improve SeqIter documentation. (GH-30316) (GH-30330)
Miss Islington (bot) [Sat, 1 Jan 2022 18:12:59 +0000 (10:12 -0800)]
bpo-46079: Replace external link that is down for maintenance. (GH-30315) (GH-30328)
Miss Islington (bot) [Thu, 30 Dec 2021 05:29:03 +0000 (21:29 -0800)]
bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290)
(cherry picked from commit
fb44d0589615590b1e7895ba78a038e96b15a219 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Wed, 29 Dec 2021 23:01:17 +0000 (15:01 -0800)]
closes bpo-38522 docs: remove references to Py_USING_MEMORY_DEBUGGER (GH-30284) (GH-30295)
(cherry picked from commit
8e11237c5d24e649b26cc928b52bc37f2fde9c7a )
Co-authored-by: Carlos Damazio <carlos.damazio@damazio.dev>
Co-authored-by: Carlos Damazio <carlos.damazio@damazio.dev>
Erlend Egeberg Aasland [Wed, 29 Dec 2021 19:40:11 +0000 (20:40 +0100)]
[3.10] bpo-46185: Fix wrong version ref. in macOS installer ReadMe (GH-30280)
Miss Islington (bot) [Wed, 29 Dec 2021 11:45:14 +0000 (03:45 -0800)]
[3.10] bpo-46120: State that `|` is preferred over `Union` (GH-30222) (GH-30250)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
(cherry picked from commit
1b30660c3b40da557050948ac8635f2dc50c4ee2 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Mon, 27 Dec 2021 16:15:44 +0000 (08:15 -0800)]
bpo-42918: Improve built-in function compile() in mode 'single' (GH-29934) (GH-30040)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit
28179aac796ed1debdce336c4b8ca18e8475d40d )
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
Miss Islington (bot) [Sun, 26 Dec 2021 12:04:26 +0000 (04:04 -0800)]
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
(cherry picked from commit
2e3e0d23adca8d83722d939d6abd1e467d7578f7 )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:52:46 +0000 (03:52 -0800)]
Fix typo in io.rst (GH-30218)
(cherry picked from commit
f9a4352056175d96195d4cb54c97c1334ea5150c )
Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:51:42 +0000 (03:51 -0800)]
doc: fix a typo in unittest.mock.rst (GH-30227)
(cherry picked from commit
10bf0a9ac3c9bbde2fa8989d9435462f0e7da545 )
Co-authored-by: Joe <nigelchiang@outlook.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:29:58 +0000 (03:29 -0800)]
docs: Fix typos and use anchor for internal link (GH-30236)
(cherry picked from commit
c1d7a6bed9f2bb8cb7612d196fc0caba016fa98c )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sun, 26 Dec 2021 11:15:14 +0000 (03:15 -0800)]
Doc: Fix link in multiprocessing.starmap pointing to builtin map. (GH-26560)
(cherry picked from commit
32096df0e00e692ee6dc688e62213bff0dffd573 )
Co-authored-by: Julien Palard <julien@palard.fr>