]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years agogh-48496: Added example and link to faq for UnboundLocalError in reference (GH-93068)
Miss Islington (bot) [Thu, 22 Dec 2022 23:30:12 +0000 (15:30 -0800)] 
gh-48496: Added example and link to faq for UnboundLocalError in reference (GH-93068)

(cherry picked from commit f3db68e6e66ebb36e1b9cb30daba913ecc736169)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2 years agogh-57762: fix misleading tkinter.Tk docstring (GH-98837)
Miss Islington (bot) [Thu, 22 Dec 2022 23:01:38 +0000 (15:01 -0800)] 
gh-57762: fix misleading tkinter.Tk docstring (GH-98837)

Mentioned as a desired change by terryjreedy on the corresponding issue,
since Tk is not a subclass of Toplevel.
(cherry picked from commit ad23da0e77c4c4a3185df64d1c199b8c17e08188)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agoCorrect typo in typing.py (GH-100423)
Miss Islington (bot) [Thu, 22 Dec 2022 11:49:18 +0000 (03:49 -0800)] 
Correct typo in typing.py (GH-100423)

In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` was
mistakenly written as `'T'`.
(cherry picked from commit 68981578eceee763da4163e93cf653cc6b1b6d35)

Co-authored-by: david-why <david_why@outlook.com>
2 years agogh-78878: Fix crash when creating an instance of `_ctypes.CField` (GH-14837)
Miss Islington (bot) [Wed, 21 Dec 2022 18:02:05 +0000 (10:02 -0800)] 
gh-78878: Fix crash when creating an instance of `_ctypes.CField` (GH-14837)

(cherry picked from commit d713c54ac8a2eba0616a5a07714696d935f1062e)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2 years agogh-100129: Add tests for pickling all builtin types and functions (GH-100142)
Miss Islington (bot) [Wed, 21 Dec 2022 14:58:20 +0000 (06:58 -0800)] 
gh-100129: Add tests for pickling all builtin types and functions (GH-100142)

(cherry picked from commit b98d2d31bffcaeb0c4c8848a8d1b35419c70b2da)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-100374: Fixed a bug in socket.getfqdn() (gh-100375)
Miss Islington (bot) [Wed, 21 Dec 2022 14:06:10 +0000 (06:06 -0800)] 
gh-100374: Fixed a bug in socket.getfqdn() (gh-100375)

(cherry picked from commit 12be23cf3c1301be2c6b8fd4cb2cd35a567d2ea2)

Co-authored-by: Dominic Socular <BBH@awsl.rip>
2 years agoGH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output (GH-100154)
Miss Islington (bot) [Wed, 21 Dec 2022 10:24:19 +0000 (02:24 -0800)] 
GH-100133: fix `asyncio` subprocess losing `stderr` and `stdout` output (GH-100154)

(cherry picked from commit a7715ccfba5b86ab09f86ec56ac3755c93b46b48)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.11] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument...
colorfulappl [Wed, 21 Dec 2022 10:02:29 +0000 (18:02 +0800)] 
[3.11] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (GH-99890) (#100385)

(cherry picked from commit efbb1eb9f54cad4f7bf5df03eed3a6aba02d99f4)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years ago[3.11] gh-85267: Improvements to inspect.signature __text_signature__ handling (GH...
Shantanu [Wed, 21 Dec 2022 05:25:13 +0000 (23:25 -0600)] 
[3.11] gh-85267: Improvements to inspect.signature __text_signature__ handling (GH-98796) (#100392)

This makes a couple related changes to inspect.signature's behaviour
when parsing a signature from `__text_signature__`.

First, `inspect.signature` is documented as only raising ValueError or
TypeError. However, in some cases, we could raise RuntimeError.  This PR
changes that, thereby fixing GH-83685.

(Note that the new ValueErrors in RewriteSymbolics are caught and then
reraised with a message)

Second, `inspect.signature` could randomly drop parameters that it
didn't understand (corresponding to `return None` in the `p` function).
This is the core issue in GH-85267. I think this is very surprising
behaviour and it seems better to fail outright.

Third, adding this new failure broke a couple tests. To fix them (and to
e.g. allow `inspect.signature(select.epoll.register)` as in GH-85267), I
add constant folding of a couple binary operations to RewriteSymbolics.

(There's some discussion of making signature expression evaluation
arbitrary powerful in GH-68155. I think that's out of scope. The
additional constant folding here is pretty straightforward, useful, and
not much of a slippery slope)

Fourth, while GH-85267 is incorrect about the cause of the issue, it turns
out if you had consecutive newlines in __text_signature__, you'd get
`tokenize.TokenError`.

Finally, the `if name is invalid:` code path was dead, since
`parse_name` never returned `invalid`..
(cherry picked from commit 79311cbfe718f17c89bab67d7f89da3931bfa2ac)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced entry ...
Miss Islington (bot) [Wed, 21 Dec 2022 03:34:17 +0000 (19:34 -0800)] 
gh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced entry (GH-91499)

(cherry picked from commit c615286e8576f2555d4380f38a966c300805b1a5)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <P.T.eendebak@tudelft.nl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-99991: improve docs on str.encode and bytes.decode (GH-100198)
Miss Islington (bot) [Wed, 21 Dec 2022 02:12:53 +0000 (18:12 -0800)] 
gh-99991: improve docs on str.encode and bytes.decode (GH-100198)

(cherry picked from commit a2bb3b7f9d8d15c81b724726454d68357fb31d1c)

Co-authored-by: Bisola Olasehinde <horlasehinde@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.11] gh-99576: Fix cookiejar file that was not truncated for some classes (GH-99616...
Miss Islington (bot) [Tue, 20 Dec 2022 17:22:39 +0000 (09:22 -0800)] 
[3.11] gh-99576: Fix cookiejar file that was not truncated for some classes (GH-99616) (GH-100377)

(cherry picked from commit 44892d45b038f919b0378590a776580a9d73b291)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years agoClarify that every thread has its own default context in contextvars (GH-99246)
Miss Islington (bot) [Tue, 20 Dec 2022 11:44:55 +0000 (03:44 -0800)] 
Clarify that every thread has its own default context in contextvars (GH-99246)

(cherry picked from commit cb60b6131bc2bb11c48a15f808914d8b242b9fc5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years ago[3.11] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code...
colorfulappl [Tue, 20 Dec 2022 10:19:53 +0000 (18:19 +0800)] 
[3.11] gh-99240: Fix double-free bug in Argument Clinic str_converter generated code (GH-99241) (#100352)

(cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966)

Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.

2 years agogh-69929: re docs: Add more specific definition of \w (GH-92015)
Miss Islington (bot) [Tue, 20 Dec 2022 03:14:52 +0000 (19:14 -0800)] 
gh-69929: re docs: Add more specific definition of \w (GH-92015)

(cherry picked from commit 36a0b1d0dddbdf324d98071ea31e7e9151eea6d5)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] gh-64490: Fix refcount error when arguments are packed to tuple in argument...
colorfulappl [Mon, 19 Dec 2022 09:48:49 +0000 (17:48 +0800)] 
[3.11] gh-64490: Fix refcount error when arguments are packed to tuple in argument clinic (GH-99233) (#100338)

(cherry picked from commit 69f6cc77d0f1664f983a83b6ae707d99a99f5c4f)

2 years ago[3.11] GH-98363: Update batched() recipe in docs to match 3.12 (#100323)
Raymond Hettinger [Sun, 18 Dec 2022 01:10:03 +0000 (19:10 -0600)] 
[3.11] GH-98363: Update batched() recipe in docs to match 3.12 (#100323)

2 years agoDocs: Use `PY_VERSION_HEX` for version comparison (GH-100179)
Miss Islington (bot) [Sat, 17 Dec 2022 07:49:49 +0000 (23:49 -0800)] 
Docs: Use `PY_VERSION_HEX` for version comparison (GH-100179)

(cherry picked from commit 0264f634f720fbf12afaf1715a53cd1495fbd85b)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years agogh-97909: Fix markup for `PyMethodDef` members (GH-100089)
Miss Islington (bot) [Sat, 17 Dec 2022 07:19:45 +0000 (23:19 -0800)] 
gh-97909: Fix markup for `PyMethodDef` members (GH-100089)

(cherry picked from commit 8edcb30c3f8bdd8099a093146fedbd9b63a3f667)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agoDocument that zipfile's pwd parameter is a `bytes` object (GH-100209)
Miss Islington (bot) [Sat, 17 Dec 2022 06:54:33 +0000 (22:54 -0800)] 
Document that zipfile's pwd parameter is a `bytes` object (GH-100209)

(cherry picked from commit 5ee7eb9debb12914f36c5ccee92460a681516fd6)

Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2 years ago[3.11] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100230)
colorfulappl [Sat, 17 Dec 2022 06:34:54 +0000 (14:34 +0800)] 
[3.11] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100230)

(cherry picked from commit c450c8c9ed6e420025f39d0e4850a79f8160cdcd)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)
Miss Islington (bot) [Fri, 16 Dec 2022 19:14:28 +0000 (11:14 -0800)] 
gh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)

(cherry picked from commit 5234e1cbea686e38392f113707db322ad8405048)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
2 years ago[3.11] "Compound statement" docs: Fix with-statement step indexing (GH-100286) (GH...
Miss Islington (bot) [Fri, 16 Dec 2022 19:01:24 +0000 (11:01 -0800)] 
[3.11] "Compound statement" docs: Fix with-statement step indexing (GH-100286) (GH-100300)

Back in commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.
(cherry picked from commit f23236a92d8796ae91772adaf27c3485fda963e8)

Co-authored-by: Frank Dana <ferdnyc@gmail.com>
2 years ago[3.11] Remove uninformative itertools recipe (GH-100253) (GH-100275)
Miss Islington (bot) [Thu, 15 Dec 2022 18:47:58 +0000 (10:47 -0800)] 
[3.11] Remove uninformative itertools recipe (GH-100253) (GH-100275)

2 years agogh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs (GH-100249)
Miss Islington (bot) [Wed, 14 Dec 2022 17:07:36 +0000 (09:07 -0800)] 
gh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs (GH-100249)

(cherry picked from commit 96638538002fc6e209755c06f613b0a59eb91166)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2 years agoGH-100206: use versionadded for the addition of sysconfig.get_default_scheme (GH...
Miss Islington (bot) [Tue, 13 Dec 2022 11:02:41 +0000 (03:02 -0800)] 
GH-100206: use versionadded for the addition of sysconfig.get_default_scheme (GH-100207)

(cherry picked from commit d3ea82aaf940167482df1e08d6482de8f2dd8526)

Co-authored-by: Filipe Laíns <lains@riseup.net>
2 years agoFix: typo (Indention) (GH-99904)
Miss Islington (bot) [Mon, 12 Dec 2022 12:38:39 +0000 (04:38 -0800)] 
Fix: typo (Indention) (GH-99904)

Example needed to be indented. Was trying to call a context manger `pr` (from ` with cProfile.Profile() as pr:`) wot perform ` pr.print_stats()` once it had already exited.
(cherry picked from commit 8711b59f7ac1803307d340e357e025043fbe2f39)

Co-authored-by: jarrodcolburn <jcourtlandcolburn@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
2 years agoclarify the 4300-digit limit on int-str conversion (GH-100175)
Miss Islington (bot) [Mon, 12 Dec 2022 12:06:48 +0000 (04:06 -0800)] 
clarify the 4300-digit limit on int-str conversion (GH-100175)

(cherry picked from commit 935ef593211a627526b2b869ce1fc2a5e67e6cdd)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 years agogh-70393: Clarify mention of "middle" scope (GH-98839)
Miss Islington (bot) [Mon, 12 Dec 2022 04:25:06 +0000 (20:25 -0800)] 
gh-70393: Clarify mention of "middle" scope (GH-98839)

(cherry picked from commit 70be5e42f6e288de32e0df3c77ac22a9ddf1a74b)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2 years agogh-100174: [Enum] Correct PowersOfThree example. (GH-100178)
Miss Islington (bot) [Sun, 11 Dec 2022 23:30:25 +0000 (15:30 -0800)] 
gh-100174: [Enum] Correct PowersOfThree example. (GH-100178)

Changed from multiples of 3 to powers of 3 to match the class name.
(cherry picked from commit 868bab0fdc514cfa70ce97e484a689aee8cb5a36)

Co-authored-by: Beweeted <Beweeted@users.noreply.github.com>
2 years agogh-99728: correct typo in `datetime` format codes documentation (GH-99750)
Miss Islington (bot) [Sat, 10 Dec 2022 10:29:04 +0000 (02:29 -0800)] 
gh-99728: correct typo in `datetime` format codes documentation (GH-99750)

(cherry picked from commit d5f8a2b6ad408368e728a389da918cead3ef7ee9)

Co-authored-by: Brad Wolfe <brad.wolfe@gmail.com>
2 years agogh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)
Miss Islington (bot) [Sat, 10 Dec 2022 09:23:24 +0000 (01:23 -0800)] 
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)

(cherry picked from commit 7c0fb71fbfa8682f56c15832e2c793a6180f2ec0)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agobpo-43984: Allow winreg.SetValueEx to set -1 without treating it as an error (GH...
Miss Islington (bot) [Fri, 9 Dec 2022 13:12:43 +0000 (05:12 -0800)] 
bpo-43984: Allow winreg.SetValueEx to set -1 without treating it as an error (GH-25775)

(cherry picked from commit a29a7b9b786d6b928c4bb4e6e683a3788e3ab1c1)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
2 years agogh-96250: Improve sqlite3 injection attack example (GH-99270)
Miss Islington (bot) [Thu, 8 Dec 2022 20:45:40 +0000 (12:45 -0800)] 
gh-96250: Improve sqlite3 injection attack example (GH-99270)

(cherry picked from commit 41d4ac9da348ca33056e271d71588b2dc3a6d48d)

Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agoUse sphinxext-opengraph to generate OpenGraph metadata (GH-99931)
Miss Islington (bot) [Thu, 8 Dec 2022 17:34:52 +0000 (09:34 -0800)] 
Use sphinxext-opengraph to generate OpenGraph metadata (GH-99931)

(cherry picked from commit f49c735e525cf031ddbfc19161aafac4fb18837b)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years ago[3.11] bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) (GH-100022)
Miss Islington (bot) [Thu, 8 Dec 2022 09:02:06 +0000 (01:02 -0800)] 
[3.11] bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574) (GH-100022)

(cherry picked from commit 124ecd657646f808d1d3282c37ee19aae6bcb47f)

Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
2 years agotest_ast uses infinite_recursion() to prevent crash (GH-100104)
Miss Islington (bot) [Thu, 8 Dec 2022 08:52:02 +0000 (00:52 -0800)] 
test_ast uses infinite_recursion() to prevent crash (GH-100104)

test.test_ast_recursion_limit() now uses infinite_recursion() of
test.support to prevent crashes on debug builds.

Before this change, the test crashed on ARM64 Windows 3.x buildbot
worker which builds Python in debug mode.
(cherry picked from commit cd67c1bb30eccd0c6fd1386405df225aed4c91a9)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years agogh-100098: [Enum] insist on actual tuples, no subclasses, for auto (GH-100099)
Miss Islington (bot) [Thu, 8 Dec 2022 07:21:29 +0000 (23:21 -0800)] 
gh-100098: [Enum] insist on actual tuples, no subclasses, for auto (GH-100099)

When checking for auto() instances, only top-level usage is supported,
which means either alone or as part of a regular tuple. Other
containers, such as lists, dicts, or namedtuples, will not have auto()
transformed into a value.
(cherry picked from commit ded02ca54d7bfa32c8eab0871d56e4547cd356eb)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2 years agogh-98778: Update HTTPError to initialize properly even if fp is None (gh-99966)
Miss Islington (bot) [Thu, 8 Dec 2022 04:17:23 +0000 (20:17 -0800)] 
gh-98778: Update HTTPError to initialize properly even if fp is None (gh-99966)

(cherry picked from commit dc8a86893df37e137cfe992e95e7d66cd68e9eaf)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2 years agogh-83035: handle decorator with nested parens in inspect.getsource (GH-99654)
Miss Islington (bot) [Wed, 7 Dec 2022 17:26:11 +0000 (09:26 -0800)] 
gh-83035: handle decorator with nested parens in inspect.getsource (GH-99654)

(cherry picked from commit 68e41295b8611a990de68f15c89f1eb3dea51867)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2 years agogh-100050: Fix an assertion error when raising unclosed parenthesis errors in the...
Miss Islington (bot) [Wed, 7 Dec 2022 09:18:00 +0000 (01:18 -0800)] 
gh-100050: Fix an assertion error when raising unclosed parenthesis errors in the tokenizer (GH-100065)

(cherry picked from commit 97e7004cfe48305bcd642c653b406dc7470e196d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Automerge-Triggered-By: GH:pablogsal
2 years agoPost 3.11.1
Pablo Galindo [Tue, 6 Dec 2022 21:07:58 +0000 (21:07 +0000)] 
Post 3.11.1

2 years agoPython 3.11.1 v3.11.1
Pablo Galindo [Tue, 6 Dec 2022 19:04:38 +0000 (19:04 +0000)] 
Python 3.11.1

2 years ago[3.11] GH-99729: Unlink frames before clearing them (#100047)
Brandt Bucher [Tue, 6 Dec 2022 17:02:19 +0000 (09:02 -0800)] 
[3.11] GH-99729: Unlink frames before clearing them (#100047)

2 years ago[3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new...
Serhiy Storchaka [Tue, 6 Dec 2022 15:15:44 +0000 (17:15 +0200)] 
[3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created (#99949)

It no longer emits a deprecation warning if the current event loop was set.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.11] gh-100001: Remove doc typo, add versionadded (GH-100042) (#100043)
Miss Islington (bot) [Tue, 6 Dec 2022 10:34:20 +0000 (02:34 -0800)] 
[3.11] gh-100001: Remove doc typo, add versionadded (GH-100042) (#100043)

(cherry picked from commit bed15f87eadc726122185cf41efcdda289f4a7b1)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[Enum] Fix typos in the documentation (GH-99960)
Miss Islington (bot) [Tue, 6 Dec 2022 05:46:48 +0000 (21:46 -0800)] 
[Enum] Fix typos in the documentation (GH-99960)

(cherry picked from commit 2ae894b6d1995a3b9f95f4a82eec6dedd3ba5298)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2 years agogh-100001: Also escape \s in http.server log messages. (GH-100038)
Miss Islington (bot) [Mon, 5 Dec 2022 22:53:41 +0000 (14:53 -0800)] 
gh-100001: Also escape \s in http.server log messages. (GH-100038)

Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
that it is technically possible to parse the line and reconstruct what the
original data was.  Without this a \xHH is ambiguious as to if it is a hex
replacement we put in or the characters r"\x" came through in the original
request line.
(cherry picked from commit 7e29398407dbd53b714702abb89aa2fd7baca48a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years agogh-100001: Omit control characters in http.server stderr logs. (GH-100002)
Miss Islington (bot) [Mon, 5 Dec 2022 21:39:22 +0000 (13:39 -0800)] 
gh-100001: Omit control characters in http.server stderr logs. (GH-100002)

Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
(cherry picked from commit d8ab0a4dfa48f881b4ac9ab857d2e9de42f72828)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.11] dataclasses.rst: Prevent horizontal scrolling (gh-100025) (gh-100028)
Miss Islington (bot) [Mon, 5 Dec 2022 18:59:34 +0000 (10:59 -0800)] 
[3.11] dataclasses.rst: Prevent horizontal scrolling (gh-100025) (gh-100028)

dataclasses.rst: Prevent horizontal scrolling (gh-100025)
(cherry picked from commit 51ee0a29e9b20c3e4a94a675e73a894ee2fe447b)

Co-authored-by: Ram Rachum <ram@rachum.com>
Co-authored-by: Ram Rachum <ram@rachum.com>
2 years agogh-98680: Add PyBUF_* constants to the Limited API listing (GH-100018)
Miss Islington (bot) [Mon, 5 Dec 2022 17:12:44 +0000 (09:12 -0800)] 
gh-98680: Add PyBUF_* constants to the Limited API listing (GH-100018)

``PyBUF_*`` constants are marked as part of Limited API of Python 3.11+.
These were available in 3.11.0 with `Py_LIMITED_API` defined for 3.11,
and are necessary to use the buffer API. Omitting them in `stable_abi.toml`
was a mistake.
(cherry picked from commit f24738742cc5d3e00409d55ced789cd544b346b5)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 years ago[3.11] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100016)
Łukasz Langa [Mon, 5 Dec 2022 16:58:40 +0000 (17:58 +0100)] 
[3.11] gh-60203: Revert changes in cycle.__setstate__ (GH-99982) (#100016)

In case if only True/False be supported as boolean arguments in future,
we should continue to support 1/0 here.
(cherry picked from commit 922a6cf6c265e2763a003291885ff74d46203fc3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agogh-99892: test_unicodedata: skip test on download failure (GH-100011)
Miss Islington (bot) [Mon, 5 Dec 2022 16:07:00 +0000 (08:07 -0800)] 
gh-99892: test_unicodedata: skip test on download failure (GH-100011)

Skip test_normalization() of test_unicodedata if it fails to download
NormalizationTest.txt file from pythontest.net.
(cherry picked from commit 2488c1e1b66366a3a933ff248eff080fabd2351c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years agogh-100005: Skip test_script_as_dev_fd() on FreeBSD (GH-100006)
Miss Islington (bot) [Mon, 5 Dec 2022 14:07:48 +0000 (06:07 -0800)] 
gh-100005: Skip test_script_as_dev_fd() on FreeBSD (GH-100006)

On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if
fdescfs is not mounted (at /dev/fd).
(cherry picked from commit 038b151963d9d4a5f4c852544fb5b0402ffcb218)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973)
Luke Garland [Mon, 5 Dec 2022 12:38:25 +0000 (05:38 -0700)] 
[3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973)

bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684)

In multiprocessing.shared_memory.SharedMemory(), the temporary view
returned by MapViewOfFile() should be unmapped when it is no longer
needed.

(cherry picked from commit 85c128e34daec7625b74746e127afa25888ccde1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2 years agogh-93464: [Enum] Add versionchanged tag (GH-99997)
Miss Islington (bot) [Mon, 5 Dec 2022 10:45:37 +0000 (02:45 -0800)] 
gh-93464: [Enum] Add versionchanged tag (GH-99997)

(cherry picked from commit e3a3863cb9561705d3dd59a9367427ed45dfb5ea)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 years agogh-98458: unittest: bugfix for infinite loop while handling chained exceptions that...
Miss Islington (bot) [Sun, 4 Dec 2022 20:06:42 +0000 (12:06 -0800)] 
gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (GH-98459)

* Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks()
* Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out)
* adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes
(cherry picked from commit 72ec518203c3f3577a5e888b12f10bb49060e6c2)

Co-authored-by: AlexTate <0xalextate@gmail.com>
2 years agogh-60203: Always pass True/False as boolean arguments in tests (GH-99983)
Miss Islington (bot) [Sun, 4 Dec 2022 12:50:46 +0000 (04:50 -0800)] 
gh-60203: Always pass True/False as boolean arguments in tests (GH-99983)

Unless we explicitly test non-bool values.
(cherry picked from commit 76f43fc09af29401cc0cec7710b03e4dbf8a4578)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-99886: Fix crash when freeing objects with managed dictionaries (#99902)
Ken Jin [Sun, 4 Dec 2022 06:41:23 +0000 (14:41 +0800)] 
[3.11] gh-99886: Fix crash when freeing objects with managed dictionaries (#99902)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and...
Miss Islington (bot) [Sun, 4 Dec 2022 00:59:06 +0000 (16:59 -0800)] 
gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and suggest other edits (GH-99784)

(cherry picked from commit bf26bdf6ac04878fc720e78422991aaedb9808a1)

Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
2 years agogh-99934: test_marshal.py: add more elements in test_deterministic_sets (GH-99935)
Miss Islington (bot) [Sat, 3 Dec 2022 17:18:23 +0000 (09:18 -0800)] 
gh-99934: test_marshal.py: add more elements in test_deterministic_sets (GH-99935)

Existing elements do produce different output on x86_64, but they
do not on x86. Let's make the data longer to ensure it differs.
(cherry picked from commit c68573b339320409b038501fdd7d4f8a56766275)

Co-authored-by: Alexander Kanavin <alex.kanavin@gmail.com>
2 years agogh-99845: _PyObject_DictPointer(): fix dictoffset cast (#99922)
Victor Stinner [Thu, 1 Dec 2022 13:07:58 +0000 (14:07 +0100)] 
gh-99845: _PyObject_DictPointer(): fix dictoffset cast (#99922)

Cast size_t to Py_ssize_t, rather than casting it to long. On 64-bit
Windows, long is 32-bit whereas Py_ssize_t is 64-bit.

2 years ago[3.11] gh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declara… (GH-99919)
Sam James [Thu, 1 Dec 2022 10:26:56 +0000 (10:26 +0000)] 
[3.11] gh-99086: Fix -Wstrict-prototypes, -Wimplicit-function-declara… (GH-99919)

…tion warnings in configure.ac (GH-99406)

Follow up to 12078e78f6e4a21f344e4eaff529e1ff3b97734f. (cherry picked from commit e35ca417fe81a64985c2b29e863ce418ae75b96e)

2 years ago[3.11] gh-99891: Fix infinite recursion in the tokenizer when showing warnings (GH...
Pablo Galindo Salgado [Thu, 1 Dec 2022 08:57:04 +0000 (08:57 +0000)] 
[3.11] gh-99891: Fix infinite recursion in the tokenizer when showing warnings (GH-99893) (GH-99896)

Automerge-Triggered-By: GH:pablogsal.
(cherry picked from commit 417206a05c4545bde96c2bbbea92b53e6cac0d48)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years agogh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194)
Miss Islington (bot) [Wed, 30 Nov 2022 23:31:49 +0000 (15:31 -0800)] 
gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194)

(cherry picked from commit 367f552129341796d75fc4cc40edb49405235a2b)

Co-authored-by: Christoph Anton Mitterer <calestyo@scientia.org>
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.11] GH-98906 ```re``` module: ```search() vs. match()``` section should mention...
Miss Islington (bot) [Wed, 30 Nov 2022 23:14:36 +0000 (15:14 -0800)] 
[3.11] GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916) (GH-99912)

GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916)

Mention fullmatch along with search and match.
(cherry picked from commit e0f91deb5930ecb02e7f8ced9bd82609e6889fb0)

Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2 years agobpo-47220: Document the optional callback parameter of weakref.WeakMethod (GH-25491)
Miss Islington (bot) [Wed, 30 Nov 2022 19:53:04 +0000 (11:53 -0800)] 
bpo-47220: Document the optional callback parameter of weakref.WeakMethod (GH-25491)

(cherry picked from commit 9628136fac997847b4662e6a17faf06d2a0507eb)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2 years agogh-82836: fix private network check (GH-97733)
Miss Islington (bot) [Tue, 29 Nov 2022 22:12:57 +0000 (14:12 -0800)] 
gh-82836: fix private network check (GH-97733)

Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
(cherry picked from commit ed391090cc8332406e6225d40877db6ff44a7104)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
2 years agoDocs: improve accuracy of socketserver reference (GH-24767)
Miss Islington (bot) [Tue, 29 Nov 2022 20:43:09 +0000 (12:43 -0800)] 
Docs: improve accuracy of socketserver reference (GH-24767)

(cherry picked from commit 052bc128ac0bcafd36a0cbee5f4c2a10d74468dc)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2 years agowhatsnew-3.10: Mention PEP 647 in the Release highlights section. (GH-99853)
Miss Islington (bot) [Tue, 29 Nov 2022 20:41:05 +0000 (12:41 -0800)] 
whatsnew-3.10: Mention PEP 647 in the Release highlights section. (GH-99853)

Mention PEP 647 in the Release highlights section.

Also re-ordered the list so it matches the order in the details sections below.
(cherry picked from commit d74a58872c243bc766055d42f8280721629e3c82)

Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
2 years agogh-90717: Update the documentation for the altchars paremeter in base64 library ...
Miss Islington (bot) [Tue, 29 Nov 2022 16:29:03 +0000 (08:29 -0800)] 
gh-90717: Update the documentation for the altchars paremeter in base64 library (GH-94187)

(cherry picked from commit 05dfc539c2de34021e44f621f2b7b993682ee200)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
2 years agogh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and TypeVarTupl...
Miss Islington (bot) [Tue, 29 Nov 2022 14:46:53 +0000 (06:46 -0800)] 
gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and TypeVarTuple (GH-99412)

* Fix substitution of TypeVarTuple and ParamSpec together in user generics.

* Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases.

* Check the number of arguments in substitution in user generics containing a
  TypeVarTuple and one or more TypeVar.
(cherry picked from commit 8f2fb7dfe72c882e97e524ef7ce40ceb663cc27e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.11] gh-99811: Use correct variable to search for time in format string (GH-99812...
Miss Islington (bot) [Mon, 28 Nov 2022 19:16:49 +0000 (11:16 -0800)] 
[3.11] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99851)

(cherry picked from commit 1d1bb95abdcafe92c771fb3dc4722351b032cc24)
Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
2 years ago`fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (GH-99819)
Miss Islington (bot) [Mon, 28 Nov 2022 18:17:07 +0000 (10:17 -0800)] 
`fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (GH-99819)

(cherry picked from commit ca3e611b1f620eabb657ef08a95d5f5f554ea773)

Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
2 years agogh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)
Miss Islington (bot) [Mon, 28 Nov 2022 11:25:04 +0000 (03:25 -0800)] 
gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)

These slots are marked "should be treated as read-only" in the
table at the start of the document.  That doesn't say anything about
setting them in the static struct.

`tp_bases` docs did say that it should be ``NULL`` (TIL!). If you
ignore that, seemingly nothing bad happens. However, some slots
may not be inherited, depending on which sub-slot structs are present.
(FWIW, NumPy sets tp_bases and is affected by the quirk -- though to
be fair, its DUAL_INHERIT code probably predates tp_bases docs, and
also the result happens to be benign.)

This patch makes things explicit.
It also makes the summary table legend easier to scan.

(cherry picked from commit 219696abb240607d3f807853c4c180825e60716e)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (GH...
Kumar Aditya [Mon, 28 Nov 2022 11:17:33 +0000 (16:47 +0530)] 
[3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (GH-18640) (#99841)

Co-authored-by: Oren Milman <orenmn@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 53eef27133c1da395b3b4d7ce0ab1d5b743ffb41)

2 years agobpo-41825: restructure docs for the os.wait*() family (GH-22356)
Miss Islington (bot) [Mon, 28 Nov 2022 09:48:52 +0000 (01:48 -0800)] 
bpo-41825: restructure docs for the os.wait*() family (GH-22356)

(cherry picked from commit 492dc02b01828f346dd62412fefc654e781de923)

Co-authored-by: Georg Brandl <georg@python.org>
2 years agogh-51524: Fix bug when calling trace.CoverageResults with valid infile (GH-99629)
Miss Islington (bot) [Mon, 28 Nov 2022 07:15:00 +0000 (23:15 -0800)] 
gh-51524: Fix bug when calling trace.CoverageResults with valid infile (GH-99629)

(cherry picked from commit 594de165bf2f21d6b28eb17003ea78fc20c0ffed)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years agoDocs: both sqlite3 "point examples" now adapt to str (GH-99823)
Miss Islington (bot) [Sun, 27 Nov 2022 21:21:00 +0000 (13:21 -0800)] 
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)

(cherry picked from commit 276643e207d44c53b87a8108d5b00982defcce1e)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2 years agogh-91340: Document multiprocessing.set_start_method force parameter (GH-32339)
Miss Islington (bot) [Sun, 27 Nov 2022 18:05:59 +0000 (10:05 -0800)] 
gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339)

GH-91340

https://bugs.python.org/issue47184
(cherry picked from commit dfc2732a57e3ea6603d62f769d4f9c80be726fa4)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Automerge-Triggered-By: GH:kumaraditya303
2 years agoGH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS (GH-99768)
Miss Islington (bot) [Sun, 27 Nov 2022 11:19:02 +0000 (03:19 -0800)] 
GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on macOS (GH-99768)

On macOS all file descriptors for a particular file in /dev/fd
share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
more like ``dup(9)`` than a regular open.

This causes problems when a user tries to run "/dev/fd/9" as a script
because zipimport changes the file offset to try to read a zipfile
directory. Therefore change zipimport to reset the file offset after
trying to read the zipfile directory.
(cherry picked from commit d08fb257698e3475d6f69bb808211d39e344e5b2)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2 years agodoc: Remove backslashes in doctest grammar docs (GH-29346)
Miss Islington (bot) [Sun, 27 Nov 2022 06:46:33 +0000 (22:46 -0800)] 
doc: Remove backslashes in doctest grammar docs (GH-29346)

(cherry picked from commit 22860dbbc8b53954055847d2bb036af68b4ea409)

Co-authored-by: George Zhang <geetransit@gmail.com>
2 years agobpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-24659)
Miss Islington (bot) [Sun, 27 Nov 2022 06:37:08 +0000 (22:37 -0800)] 
bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-24659)

The docs stated that PyImport_ImportFrozenModuleObject() returns a
new reference, but it actually returns an int.

(cherry picked from commit 62a5dc13e941d01beb215db4218a10977914ab55)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years agogh-91078: Return None from TarFile.next when the tarfile is empty (GH-91850)
Miss Islington (bot) [Sat, 26 Nov 2022 19:01:20 +0000 (11:01 -0800)] 
gh-91078: Return None from TarFile.next when the tarfile is empty (GH-91850)

(cherry picked from commit 78365b8e283c78e23725748500f48dd2c2ca1161)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years agogh-99795: Fix typo in importlib.resources.abc (GH-99796)
Miss Islington (bot) [Sat, 26 Nov 2022 18:12:23 +0000 (10:12 -0800)] 
gh-99795: Fix typo in importlib.resources.abc (GH-99796)

Changing TraversableReader to TraversableResources at one place of the documentation.

See GH-99795 for more details.
(cherry picked from commit 5f8898216e7b67b7de6b0b1aad9277e88bcebfdb)

Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2 years agogh-97966: Restore prior expectation that uname_result._fields and ._asdict would...
Miss Islington (bot) [Sat, 26 Nov 2022 13:53:00 +0000 (05:53 -0800)] 
gh-97966: Restore prior expectation that uname_result._fields and ._asdict would include the processor. (gh-98343)

(cherry picked from commit dc063a25d29840d863b15c86fdab15b4a1894c73)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2 years agoGH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (GH-95897)
Miss Islington (bot) [Sat, 26 Nov 2022 09:57:49 +0000 (01:57 -0800)] 
GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (GH-95897)

(cherry picked from commit ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf)

Co-authored-by: TheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.11] gh-99502: mention bytes-like objects as input in `secrets.compare_digest`...
Miss Islington (bot) [Sat, 26 Nov 2022 09:49:23 +0000 (01:49 -0800)] 
[3.11] gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512) (#99791)

gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512)

Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d81fc315069c14f9438ebe61fb70ef1ccc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years agoFix typo in `__match_args__` doc (GH-99785)
Miss Islington (bot) [Sat, 26 Nov 2022 00:10:48 +0000 (16:10 -0800)] 
Fix typo in `__match_args__` doc (GH-99785)

A opy of GH-98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.
(cherry picked from commit a86d8545221b16e714ffe3bda5afafc1d4748d13)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 years ago[3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)
Miss Islington (bot) [Fri, 25 Nov 2022 23:26:50 +0000 (15:26 -0800)] 
[3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)

Fix misspelling in docs for http.HTTPMethod (GH-99376)
(cherry picked from commit f0d12ca0e0e31b678448b6192ebaf9720228d4fa)

Co-authored-by: Matt Harasymczuk <github.com@haras.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years agogh-64019: Have attribute table in `inspect` docs link to module attributes instead...
Miss Islington (bot) [Fri, 25 Nov 2022 22:06:45 +0000 (14:06 -0800)] 
gh-64019: Have attribute table in `inspect` docs link to module attributes instead of listing them (GH-98116)

(cherry picked from commit 7d2dcc53d09fe903329926bf7bbfe460b1465dab)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
2 years ago[3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)
Miss Islington (bot) [Fri, 25 Nov 2022 17:49:40 +0000 (09:49 -0800)] 
[3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)

gh-85073: Add some missing links to source (GH-99363)

Add some missing links to source from Python docs
(cherry picked from commit 27d8dc2c9d3de886a884f79f0621d4586c0e0f7a)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2 years agobpo-38031: Fix a possible assertion failure in _io.FileIO() (GH-GH-5688)
Miss Islington (bot) [Fri, 25 Nov 2022 13:20:00 +0000 (05:20 -0800)] 
bpo-38031: Fix a possible assertion failure in _io.FileIO() (GH-GH-5688)

(cherry picked from commit d386115039e75c332c8471c239cf7dc5dee791a7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2 years agogh-96168: Add sqlite3 row factory how-to (GH-99507)
Miss Islington (bot) [Fri, 25 Nov 2022 13:15:09 +0000 (05:15 -0800)] 
gh-96168: Add sqlite3 row factory how-to (GH-99507)

(cherry picked from commit 8749121b07f48994ea47f2e7ff75fb13c13953f6)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2 years agoFix rendering of audioop license in Doc/license.rst (GH-99752)
Miss Islington (bot) [Thu, 24 Nov 2022 16:29:21 +0000 (08:29 -0800)] 
Fix rendering of audioop license in Doc/license.rst (GH-99752)

Also some cosmetic blank line additions for consistency with the
formatting of the rest of the file.
(cherry picked from commit b5b3904f05e77f044f158307bc6bdd2bc1b670a2)

Co-authored-by: Zachary Ware <zach@python.org>
2 years agogh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)
Miss Islington (bot) [Thu, 24 Nov 2022 09:45:40 +0000 (01:45 -0800)] 
gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)

Issue: GH-98872
(cherry picked from commit 4e5f2db6f228d45a655cf22fd587792d56116145)

Co-authored-by: SQLPATCH <95843853+SQLPATCH@users.noreply.github.com>
Automerge-Triggered-By: GH:kumaraditya303
2 years agoUse faster APIs to calculate paths at startup for Store packaged Python on Windows...
Miss Islington (bot) [Wed, 23 Nov 2022 20:12:34 +0000 (12:12 -0800)] 
Use faster APIs to calculate paths at startup for Store packaged Python on Windows (GH-99345)

(cherry picked from commit 71a4a2da983a651bfcbc1be59c6e27508cdd05c6)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 years ago[3.11] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises...
Dong Uk, Kang [Wed, 23 Nov 2022 18:37:24 +0000 (03:37 +0900)] 
[3.11] gh-88863: Clear ref cycles to resolve leak when asyncio.open_connection raises (GH-95739) (#99721)

Break reference cycles to resolve memory leak, by
removing local exception and future instances from the frame.
(cherry picked from commit 995f6170c78570eca818f7e7dbd8a7661c171a81)

Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
2 years agogh-99619: fix error in documentation of ExceptionGroup.derive() (GH-99621)
Miss Islington (bot) [Wed, 23 Nov 2022 11:08:22 +0000 (03:08 -0800)] 
gh-99619: fix error in documentation of ExceptionGroup.derive() (GH-99621)

(cherry picked from commit 5d9183c7ad68eb9ddb53d54a3f9a27e29dbabf31)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years agoGH-95283: Add note about compilers in Mac/README.txt (GH-99506)
Miss Islington (bot) [Wed, 23 Nov 2022 11:03:43 +0000 (03:03 -0800)] 
GH-95283: Add note about compilers in Mac/README.txt (GH-99506)

The build machinery assumes that the compiler that's used
to build on macOS includes an SDK that's at least as new
as the OS version on the build machine. Explicitly mention
this in Mac/README.txt.
(cherry picked from commit 8f024a02d7d63315ecc3479f0715e927f48fc91b)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>