]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-99051: remove duplicated test from `test_weakref` (GH-99052)
Miss Islington (bot) [Sun, 6 Nov 2022 19:50:12 +0000 (11:50 -0800)] 
gh-99051: remove duplicated test from `test_weakref` (GH-99052)

(cherry picked from commit 8463cb55dabb78571e32d8c8c7de8679ab421c2c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-83004: Clean up refleak in _pickle initialisation (GH-98841)
Miss Islington (bot) [Sun, 6 Nov 2022 14:44:28 +0000 (06:44 -0800)] 
gh-83004: Clean up refleak in _pickle initialisation (GH-98841)

(cherry picked from commit d3b82b4463c4eb51954c0afd98342f0c5e479baa)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agogh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842)
Miss Islington (bot) [Sun, 6 Nov 2022 14:38:26 +0000 (06:38 -0800)] 
gh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842)

(cherry picked from commit 31f2f6568d89564cc1d686cd6b75ba5578aaa748)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years ago`test_typing`: use all pickle protocols (GH-99154)
Miss Islington (bot) [Sun, 6 Nov 2022 12:15:29 +0000 (04:15 -0800)] 
`test_typing`: use all pickle protocols (GH-99154)

(cherry picked from commit a0bc75e2fdd53680cb147881bcb3754bd56aa2fa)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-99134: Update bundled pip to 22.3.1 (gh-99135)
Miss Islington (bot) [Sat, 5 Nov 2022 19:00:12 +0000 (12:00 -0700)] 
gh-99134: Update bundled pip to 22.3.1 (gh-99135)

Update bundled pip to 22.3.1
(cherry picked from commit 47ab8480e71ab3949a336a94c7fd146b1fce595d)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
3 years ago[3.11] gh-90867: test.support.wait_process() uses LONG_TIMEOUT (GH-99071) (GH-99098)
Miss Islington (bot) [Fri, 4 Nov 2022 15:20:35 +0000 (08:20 -0700)] 
[3.11] gh-90867: test.support.wait_process() uses LONG_TIMEOUT (GH-99071) (GH-99098)

The test.support.wait_process() function now uses a timeout of
LONG_TIMEOUT seconds by default, instead of SHORT_TIMEOUT.  It
doesn't matter if a Python buildbot is slower, it only matters that
the process completes. The timeout should just be shorter than
"forever".

(cherry picked from commit a9a8c8712665377cfa83af4b632b0db529ec1853)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit f09da28768b77713566e932e912f107b6b57e8fd)

3 years agominor edits to locale doc (GH-98537)
Miss Islington (bot) [Fri, 4 Nov 2022 13:12:47 +0000 (06:12 -0700)] 
minor edits to locale doc (GH-98537)

(cherry picked from commit c0bf7607a1c215cd92f2976c9e915b913fc149d1)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
3 years agoDocs: add `named` to the list of styles in the sqlite3.paramstyle attr docs (GH-99078)
Miss Islington (bot) [Thu, 3 Nov 2022 23:31:33 +0000 (16:31 -0700)] 
Docs: add `named` to the list of styles in the sqlite3.paramstyle attr docs (GH-99078)

(cherry picked from commit 016c7d37b6acfe2203542a2655080c6402b3be1f)

Co-authored-by: Nick Pope <nick@nickpope.me.uk>
3 years agogh-83004: Clean up refleak in _io initialisation (GH-98840)
Miss Islington (bot) [Thu, 3 Nov 2022 14:58:44 +0000 (07:58 -0700)] 
gh-83004: Clean up refleak in _io initialisation (GH-98840)

(cherry picked from commit 1208037246eeab4c5c003f1651edfefb045e6fb7)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years ago[3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) (GH-99046)
Serhiy Storchaka [Thu, 3 Nov 2022 10:18:50 +0000 (12:18 +0200)] 
[3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) (GH-99046)

In very rare circumstances the JUMP opcode could be confused with the
argument of the opcode in the "then" part which doesn't end with the
JUMP opcode. This led to incorrect detection of the final JUMP opcode
and incorrect calculation of the size of the subexpression.

NOTE: Changed return value of functions _validate_inner() and
_validate_charset() in Modules/_sre/sre.c.  Now they return 0 on success,
-1 on failure, and 1 if the last op is JUMP (which usually is a failure).
Previously they returned 1 on success and 0 on failure.
(cherry picked from commit e9ac890c0273aee413aa528cc202c3efa29f1d7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-98512: Add more tests for `ValuesView` (GH-98515)
Miss Islington (bot) [Thu, 3 Nov 2022 02:33:01 +0000 (19:33 -0700)] 
gh-98512: Add more tests for `ValuesView` (GH-98515)

(cherry picked from commit 29e027c3e6535aa1c0eacc2fb2002c53405e1f6f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-65002: Make note that null bytes are used to pad bytes (GH-98635)
Miss Islington (bot) [Thu, 3 Nov 2022 02:24:15 +0000 (19:24 -0700)] 
gh-65002: Make note that null bytes are used to pad bytes (GH-98635)

(cherry picked from commit 8cd21c2c5d34a5c5e857782da58d773f29ff8821)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agoDocs: Add 'as, match statement' to the index (GH-99001)
Miss Islington (bot) [Thu, 3 Nov 2022 02:23:22 +0000 (19:23 -0700)] 
Docs: Add 'as, match statement' to the index (GH-99001)

(cherry picked from commit 26720fffd090929fd2058b73e5970cc520b30aef)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
3 years agoargparse howto: Use f-string in preference to "...".format() (GH-98883)
Miss Islington (bot) [Thu, 3 Nov 2022 02:16:33 +0000 (19:16 -0700)] 
argparse howto: Use f-string in preference to "...".format() (GH-98883)

(cherry picked from commit 1fd20d0b57478d8b0d8d58718fa773135348bf98)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
3 years ago[3.10] gh-96265: Formatting changes for faq/programming (GH-98242) (#98994)
Stanley [Thu, 3 Nov 2022 00:30:12 +0000 (17:30 -0700)] 
[3.10] gh-96265: Formatting changes for faq/programming (GH-98242) (#98994)

* Formatting changes for faq/programming

* Add missing method formatting, use non-literal formatting

* Fix sphinx warnings

* Some extra formatting missed earlier

* More formatting suggestions from review

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Add missing colon, avoid referening external module

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 0689b99bb8c4f6058af43a52effaa8a25609dbed)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)
Miss Islington (bot) [Wed, 2 Nov 2022 21:56:14 +0000 (14:56 -0700)] 
gh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)

(cherry picked from commit c053284e3930027847d5adf99efcb1aa5ccbacd1)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.10] gh-97731: Specify the full path to the docs for `make docclean` (GH-98982...
Miss Islington (bot) [Wed, 2 Nov 2022 21:05:00 +0000 (14:05 -0700)] 
[3.10] gh-97731: Specify the full path to the docs for `make docclean` (GH-98982) (#99025)

Specify the full path to the docs for `make docclean`
This is to have `make clean` not error out on cross-builds.
(cherry picked from commit 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f)

3 years agogh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)
Miss Islington (bot) [Wed, 2 Nov 2022 19:22:19 +0000 (12:22 -0700)] 
gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)

The uuid.getnode() function has multiple implementations, tested sequentially.
The ifconfig implementation was incorrect and always failed: fix it.

In practice, functions of libuuid library are preferred, if available:
uuid_generate_time_safe(), uuid_create() or uuid_generate_time().

(cherry picked from commit e3ec272f57c3948834a6159cf2604978d3db67a0)

Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
3 years ago[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958) (#98986)
Jelle Zijlstra [Wed, 2 Nov 2022 09:12:37 +0000 (02:12 -0700)] 
[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958) (#98986)

[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958).
(cherry picked from commit 65d1407737befc3e9430eda8ae14ab1c7f9d8c7a)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
3 years agogh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)
Miss Islington (bot) [Wed, 2 Nov 2022 05:05:28 +0000 (22:05 -0700)] 
gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)

(cherry picked from commit 898d0d9ad8328326ba5f7df9952e9dc287766ca3)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years ago[3.10] [doc] Update cookbook example for socket-based logging in a production sett...
Miss Islington (bot) [Tue, 1 Nov 2022 23:34:48 +0000 (16:34 -0700)] 
[3.10] [doc] Update cookbook example for socket-based logging in a production sett… (GH-98922) (GH-98981)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)
Miss Islington (bot) [Tue, 1 Nov 2022 18:30:40 +0000 (11:30 -0700)] 
gh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)

(cherry picked from commit c0859743d9ad3bbd4c021200f4162cfeadc0c17a)

Co-authored-by: Zachary Ware <zach@python.org>
3 years ago[3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) (GH...
Serhiy Storchaka [Tue, 1 Nov 2022 18:14:38 +0000 (20:14 +0200)] 
[3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) (GH-98969)

Fix subscription of types.GenericAlias instances containing bare generic types:
for example tuple[A, T][int], where A is a generic type, and T is a type
variable.

3 years agoDoc: use "unnumbered" footnotes (GH-98954)
Miss Islington (bot) [Tue, 1 Nov 2022 13:35:26 +0000 (06:35 -0700)] 
Doc: use "unnumbered" footnotes (GH-98954)

Use unnumbered footnote in this file to avoid reseting the footnotes numbering.

Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
(cherry picked from commit f042646595d1cdd2ecdc15222b1766f746d010f0)

Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
3 years agoGH-98897: fix memory leak if `math.dist` raises exception (GH-98898)
Miss Islington (bot) [Tue, 1 Nov 2022 02:47:29 +0000 (19:47 -0700)] 
GH-98897: fix memory leak if `math.dist` raises exception (GH-98898)

(cherry picked from commit ab575050709e2b313ca9a9585f09b6f4b0560318)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years ago[3.10] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98890)
Charlie Zhao [Mon, 31 Oct 2022 18:22:02 +0000 (02:22 +0800)] 
[3.10] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98890)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 3ac8c0ab6ee819a14b1c8e0992acbaf376a46058)

3 years agogh-98576: Fix types in dataclass.InitVar example (gh-98577)
Miss Islington (bot) [Mon, 31 Oct 2022 15:08:54 +0000 (08:08 -0700)] 
gh-98576: Fix types in dataclass.InitVar example (gh-98577)

(cherry picked from commit 880bafc574bcd811dd7244f9a82056430b489996)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years ago[3.10] gh-96151: Use a private name for passing builtins to dataclass. This now allow...
Miss Islington (bot) [Mon, 31 Oct 2022 14:59:18 +0000 (07:59 -0700)] 
[3.10] gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143) (gh-98899)

gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143)
(cherry picked from commit 29f98b46b77ee528477b9a7b335974b9682f7f14)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agoglossary.rst: Fix typo in package definition (GH-98865)
Miss Islington (bot) [Sat, 29 Oct 2022 22:52:05 +0000 (15:52 -0700)] 
glossary.rst: Fix typo in package definition (GH-98865)

This is a tiny typo fix of package definition in glossary.
According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly.

Automerge-Triggered-By: GH:AlexWaygood
(cherry picked from commit fc94d55ff453a3101e4c00a394d4e38ae2fece13)

Co-authored-by: ab <abousselmi@users.noreply.github.com>
3 years agogh-93358: Fix python-config docs for how to embed Python (GH-98649)
Miss Islington (bot) [Sat, 29 Oct 2022 18:53:54 +0000 (11:53 -0700)] 
gh-93358: Fix python-config docs for how to embed Python (GH-98649)

(cherry picked from commit e063c23c65143a3afae3e201459dc0d52cb6fc96)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years agoFix typo in contextvars docs (GH-98823)
Miss Islington (bot) [Fri, 28 Oct 2022 21:19:43 +0000 (14:19 -0700)] 
Fix typo in contextvars docs (GH-98823)

(cherry picked from commit 72fa57a8fe2e9df637170dc97f994ac70931e8e9)

Co-authored-by: cburroughs <chris.burroughs@gmail.com>
3 years ago[3.10] `argparse` docs: normalize constant references (#98765) (#98808)
Alex Waygood [Fri, 28 Oct 2022 17:17:03 +0000 (18:17 +0100)] 
[3.10] `argparse` docs: normalize constant references (#98765) (#98808)

`argparse` docs: normalize constant references (#98765)

(cherry picked from commit b27b57c6e44a276c8a9843fd37d4cf65b2827d5c)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
3 years ago[3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) (#98678)
Erlend E. Aasland [Fri, 28 Oct 2022 12:16:38 +0000 (14:16 +0200)] 
[3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) (#98678)

(cherry picked from commit 0c84593275969d9b8f42e75abb2638b69d5b5f4a)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years ago[3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98798)
Miss Islington (bot) [Fri, 28 Oct 2022 10:16:53 +0000 (03:16 -0700)] 
[3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98798)

(cherry picked from commit 0346eddbe933b5f1f56151bdebf5bd49392bc275)

Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
3 years ago[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)
samypr100 [Fri, 28 Oct 2022 10:13:44 +0000 (06:13 -0400)] 
[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)

3 years ago[3.10] gh-98548: Fix `-ne` shell operator spelling (#98555)
sterliakov [Fri, 28 Oct 2022 10:12:42 +0000 (13:12 +0300)] 
[3.10] gh-98548: Fix `-ne` shell operator spelling (#98555)

3 years ago[3.10] bpo-2716: add license for audioop module (GH-19972) (#98532)
Miss Islington (bot) [Fri, 28 Oct 2022 10:11:26 +0000 (03:11 -0700)] 
[3.10] bpo-2716: add license for audioop module (GH-19972) (#98532)

bpo-2716: add license for audioop module (GH-19972)
(cherry picked from commit 4c1145bb3796c550d477c8c154ff980d566fe4a2)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
3 years ago[3.10] Add more tkinter.Canvas tests (GH-98475) (#98477)
Miss Islington (bot) [Fri, 28 Oct 2022 10:10:41 +0000 (03:10 -0700)] 
[3.10] Add more tkinter.Canvas tests (GH-98475) (#98477)

Add more tkinter.Canvas tests (GH-98475)

It is a prerequisite for GH-94473. Add tests for the coords() method and
for creation of some Canvas items.
(cherry picked from commit ff173ed2f6b07f38ec18f854daba6451bf1a9000)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)
Miss Islington (bot) [Thu, 27 Oct 2022 21:22:18 +0000 (14:22 -0700)] 
gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)

* Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680.

Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com>
(cherry picked from commit 3e07f827b359617664ad0880f218f17ae4483299)

Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
3 years agoobmalloc: Remove unused variable. (GH-98770)
Miss Islington (bot) [Thu, 27 Oct 2022 16:33:44 +0000 (09:33 -0700)] 
obmalloc: Remove unused variable. (GH-98770)

(cherry picked from commit bded5edd9abf7ae6b2874916d70ec29ad209217c)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
3 years agogh-98703: Add tests for closing `_ProactorSocketTransport` with proactor event loop...
Miss Islington (bot) [Thu, 27 Oct 2022 03:35:07 +0000 (20:35 -0700)] 
gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor event loop (GH-98730)

(cherry picked from commit 96ae80f1d004f2df4a707919853f0745c9c352d1)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times...
Miss Islington (bot) [Thu, 27 Oct 2022 03:03:58 +0000 (20:03 -0700)] 
gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times (GH-98704)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 8a755423eba8e19704d96905730cf7f50083eb23)

Co-authored-by: Ken Jin <kenjin@python.org>
3 years agoFix readline.c compiler warning. (GH-98738)
Miss Islington (bot) [Wed, 26 Oct 2022 23:28:40 +0000 (16:28 -0700)] 
Fix readline.c compiler warning. (GH-98738)

```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    completer_word_break_characters =
                                    ^
```
(cherry picked from commit 29b391b1378577825a658b14764a8ff3e0b5c958)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
3 years ago[3.10] Change links to label refs (GH-98454) (#98726)
Stanley [Wed, 26 Oct 2022 20:19:39 +0000 (13:19 -0700)] 
[3.10] Change links to label refs (GH-98454) (#98726)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years ago[3.10] gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720) (...
Erlend E. Aasland [Wed, 26 Oct 2022 20:19:20 +0000 (22:19 +0200)] 
[3.10] gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720) (#98737)

(cherry picked from commit 365852a03a0c934ccd9b6c2b8e24c71181c41f03)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years agogh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (GH-98486)
Miss Islington (bot) [Wed, 26 Oct 2022 04:53:36 +0000 (21:53 -0700)] 
gh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (GH-98486)

(cherry picked from commit 5d30544485dc56ab999ad7656ef6559306fd013f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
Miss Islington (bot) [Wed, 26 Oct 2022 03:55:29 +0000 (20:55 -0700)] 
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)

(cherry picked from commit 216f45e4fec42407ff744b915523a226a0070ff1)

Co-authored-by: fancidev <fancidev@gmail.com>
3 years agogh-77753: Add example for values that compare equal in stdtypes (GH-98497)
Miss Islington (bot) [Wed, 26 Oct 2022 03:01:11 +0000 (20:01 -0700)] 
gh-77753: Add example for values that compare equal in stdtypes (GH-98497)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 0ca6a4d64086055a8a3aa4b4c024fc080de148ab)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-84747: Add `async for` comment for StreamReader (GH-98633)
Miss Islington (bot) [Wed, 26 Oct 2022 02:23:08 +0000 (19:23 -0700)] 
gh-84747: Add `async for` comment for StreamReader (GH-98633)

(cherry picked from commit 4196ee5c8b489f457874759ee22c9237e08f85c4)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (GH-98648)
Miss Islington (bot) [Wed, 26 Oct 2022 00:02:48 +0000 (17:02 -0700)] 
gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (GH-98648)

(cherry picked from commit b1783bc124712fa03fea9621a0eb4119d29b14fe)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-98623: Fix base classes in `typing.rst` (GH-98626)
Miss Islington (bot) [Tue, 25 Oct 2022 14:15:07 +0000 (07:15 -0700)] 
gh-98623: Fix base classes in `typing.rst` (GH-98626)

(cherry picked from commit 5076108872df07592931cd27efac4a4496aba2e8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agoUse more precise exception types in `assertRaises` in typing tests (GH-98650)
Miss Islington (bot) [Tue, 25 Oct 2022 14:12:59 +0000 (07:12 -0700)] 
Use more precise exception types in `assertRaises` in typing tests (GH-98650)

(cherry picked from commit 45c89358b71e4638455e75ba6e60b42c511bbc2a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-93696: Locate frozen module source with __file__ (GH-93697)
Miss Islington (bot) [Tue, 25 Oct 2022 13:48:41 +0000 (06:48 -0700)] 
gh-93696: Locate frozen module source with __file__ (GH-93697)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit d91de288e73c67805e4c838b5f770ab7ec3661f9)

Co-authored-by: James Gerity <snoopjedi@gmail.com>
3 years ago[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) (#98647)
Erlend E. Aasland [Tue, 25 Oct 2022 12:23:38 +0000 (14:23 +0200)] 
[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) (#98647)

[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639).
(cherry picked from commit 8aa1e994a530e538a5433c8ada6500ffc1214467)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years ago[3.10] gh-98456: Replace deprecated `set-output` with up-to-date vers… (gh-98564)
Dong-hee Na [Tue, 25 Oct 2022 03:02:47 +0000 (12:02 +0900)] 
[3.10] gh-98456: Replace deprecated `set-output` with up-to-date vers… (gh-98564)

[3.10] gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457).
(cherry picked from commit 1db2a0cb20a1de5231a73fc7381056d725e90535)

Co-authored-by: Noam Cohen <noam@noam.me>
Co-authored-by: Noam Cohen <noam@noam.me>
3 years agoGH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572)
Miss Islington (bot) [Mon, 24 Oct 2022 20:42:20 +0000 (13:42 -0700)] 
GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572)

(cherry picked from commit ad1dc3ebb6aadaeeeacde13d4ed2d62bf302bf62)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting...
Miss Islington (bot) [Mon, 24 Oct 2022 18:17:33 +0000 (11:17 -0700)] 
gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting" (GH-98508)

(cherry picked from commit e3b9dd8e870a61016e0f221e30d4f7d0b99cddb3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agoGH-91635: clarify docs about closing of transport in asyncio (GH-98563)
Miss Islington (bot) [Mon, 24 Oct 2022 18:01:37 +0000 (11:01 -0700)] 
GH-91635: clarify docs about closing of transport in asyncio  (GH-98563)

(cherry picked from commit 2fdcc6f2cb5e3e1e09b8dff179f4c11193799998)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-98500: Fix typing docs for `*View` classes (GH-98511)
Miss Islington (bot) [Mon, 24 Oct 2022 17:54:35 +0000 (10:54 -0700)] 
gh-98500: Fix typing docs for `*View` classes (GH-98511)

(cherry picked from commit 1a217f9ffc6d014536c08d7fb0136d117b8a0add)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-98561: Fix a typo in typing (GH-98562)
Miss Islington (bot) [Sun, 23 Oct 2022 14:11:29 +0000 (07:11 -0700)] 
gh-98561: Fix a typo in typing (GH-98562)

(cherry picked from commit b6d5d5b60afc61337c569c07a881003faaa791e7)

Co-authored-by: Omkaar <79257339+Infiniticity@users.noreply.github.com>
3 years agogh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion...
Miss Islington (bot) [Fri, 21 Oct 2022 23:28:25 +0000 (16:28 -0700)] 
gh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion to binary mode (GH-94370)

(cherry picked from commit d9407b174c81fda33e6c09a6f988c9a7cb8368af)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years ago[3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)
Theo Buehler [Fri, 21 Oct 2022 19:26:01 +0000 (21:26 +0200)] 
[3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)

This is a port of the applicable part of XKCP's fix [1] for
CVE-2022-37454 and avoids the segmentation fault and the infinite
loop in the test cases published in [2].

[1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a
[2]: https://mouha.be/sha-3-buffer-overflow/

Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>

3 years ago[3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501)...
Miss Islington (bot) [Thu, 20 Oct 2022 23:55:51 +0000 (16:55 -0700)] 
[3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) (GH-98503)

Linux abstract sockets are insecure as they lack any form of filesystem
permissions so their use allows anyone on the system to inject code into
the process.

This removes the default preference for abstract sockets in
multiprocessing introduced in Python 3.9+ via
https://github.com/python/cpython/pull/18866 while fixing
https://github.com/python/cpython/issues/84031.

Explicit use of an abstract socket by a user now generates a
RuntimeWarning.  If we choose to keep this warning, it should be
backported to the 3.7 and 3.8 branches.
(cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Automerge-Triggered-By: GH:gpshead
3 years agogh-96035: Make urllib.parse.urlparse reject non-numeric ports (GH-98273)
Miss Islington (bot) [Thu, 20 Oct 2022 21:29:21 +0000 (14:29 -0700)] 
gh-96035: Make urllib.parse.urlparse reject non-numeric ports (GH-98273)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 6f15ca8c7afa23e1adc87f2b66b958b721f9acab)

Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
3 years agoCODEOWNERS: Become a typing code owner (GH-98480)
Miss Islington (bot) [Thu, 20 Oct 2022 14:18:09 +0000 (07:18 -0700)] 
CODEOWNERS: Become a typing code owner (GH-98480)

(cherry picked from commit cb93b4aee5eb12dc6c4b2dccc81a2e5ace3ea4de)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.10] [doc] Improve logging cookbook example. (GH-98481) (GH-98482)
Miss Islington (bot) [Thu, 20 Oct 2022 11:53:53 +0000 (04:53 -0700)] 
[3.10] [doc] Improve logging cookbook example. (GH-98481) (GH-98482)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
3 years ago[3.10] [doc] Refresh the venv introduction documentation, and correct… (GH-98466)
Vinay Sajip [Wed, 19 Oct 2022 21:56:26 +0000 (22:56 +0100)] 
[3.10] [doc] Refresh the venv introduction documentation, and correct… (GH-98466)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Phil Elson <pelson.pub@gmail.com>
3 years agoDoc: Remove title text from internal links (GH-98409)
Miss Islington (bot) [Wed, 19 Oct 2022 15:45:25 +0000 (08:45 -0700)] 
Doc: Remove title text from internal links (GH-98409)

Rely on the title of the linked internal page instead of putting the title. Sphinx will render with the title correctly, and this will reduce work for translators
(cherry picked from commit 52fcba651288ac1c0f9b1fb71379f1dad54ee1da)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
3 years agogh-97928: Fix handling options starting with "-" in tkinter.Text.count() (GH-98436)
Miss Islington (bot) [Wed, 19 Oct 2022 09:57:18 +0000 (02:57 -0700)] 
gh-97928: Fix handling options starting with "-" in tkinter.Text.count() (GH-98436)

Previously they were silently ignored. Now they are errors.
(cherry picked from commit e4ec8de6fa6f0a07e64f6a3e3f894926b4b0652d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-97928: Add tests for tkinter.Text.count() (GH-98269)
Miss Islington (bot) [Wed, 19 Oct 2022 06:40:40 +0000 (23:40 -0700)] 
gh-97928: Add tests for tkinter.Text.count() (GH-98269)

(cherry picked from commit 1b684c8f5f738b56f859e5c87b7280610b90399f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years ago[3.10] gh-93858: Prevent error when activating venv in nested fish instances (GH...
Miss Islington (bot) [Tue, 18 Oct 2022 15:39:06 +0000 (08:39 -0700)] 
[3.10] gh-93858: Prevent error when activating venv in nested fish instances (GH-93931) (GH-98403)

Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
3 years ago[3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399)
Miss Islington (bot) [Tue, 18 Oct 2022 15:36:23 +0000 (08:36 -0700)] 
[3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399)

3 years ago[3.10] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98373)
C.A.M. Gerlach [Mon, 17 Oct 2022 23:49:47 +0000 (18:49 -0500)] 
[3.10] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98373)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit fa2d43e5184f5eaf3391844ec2400342a1b2ead4)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
3 years agogh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_m...
Miss Islington (bot) [Mon, 17 Oct 2022 16:13:37 +0000 (09:13 -0700)] 
gh-98174: Handle EPROTOTYPE under macOS in test_sendfile_fallback_close_peer_in_the_middle_of_receiving (GH-98316)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
(cherry picked from commit 3e82ad05b18d004e4d01fdb643344d6a2bf11900)

Co-authored-by: fancidev <fancidev@gmail.com>
3 years agogh-85299: Add note warning about entry point guard for asyncio example (GH-93457)
Miss Islington (bot) [Sun, 16 Oct 2022 17:13:28 +0000 (10:13 -0700)] 
gh-85299: Add note warning about entry point guard for asyncio example (GH-93457)

(cherry picked from commit 79fd6ccdbe00ec95e4d33fc24fe76076282a334e)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-97527: IDLE - fix buggy macosx patch (GH-98313)
Miss Islington (bot) [Sun, 16 Oct 2022 15:33:33 +0000 (08:33 -0700)] 
gh-97527: IDLE - fix buggy macosx patch (GH-98313)

GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI.
But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and
Microsoft Python 3.10.2288.0 when test/* is not installed.
After this patch, test.* is only imported when testing on Mac.
(cherry picked from commit 35fa5d5e7f2b0971b39b2659dc70cb77e34a7dd6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 years ago[3.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). (#98293)
Jelle Zijlstra [Sun, 16 Oct 2022 04:08:46 +0000 (21:08 -0700)] 
[3.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). (#98293)

(cherry picked from commit 02389658a4751a0166e2ed22be112b646378a01b)

Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
3 years ago[3.10] [doc] Update logging cookbook with an example of custom handli… (GH-98299)
Vinay Sajip [Sat, 15 Oct 2022 20:59:13 +0000 (21:59 +0100)] 
[3.10] [doc] Update logging cookbook with an example of custom handli… (GH-98299)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972)
Miss Islington (bot) [Sat, 15 Oct 2022 15:40:43 +0000 (08:40 -0700)] 
gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 07b5c4699e64eb30c3bdcb1275c167e675d37423)

Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
3 years agogh-95731: Fix module docstring extraction in pygettext (GH-95732)
Miss Islington (bot) [Sat, 15 Oct 2022 15:33:19 +0000 (08:33 -0700)] 
gh-95731: Fix module docstring extraction in pygettext (GH-95732)

(cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282)

Co-authored-by: Jakub Kuczys <me@jacken.men>
3 years agogh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip when they...
Miss Islington (bot) [Fri, 14 Oct 2022 16:22:19 +0000 (09:22 -0700)] 
gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip when they do not impact path resolution (GH-98259)

(cherry picked from commit 2fe44f728afa2dd506c304641f0481d6813d1dbd)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agobpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)
Miss Islington (bot) [Thu, 13 Oct 2022 17:27:14 +0000 (10:27 -0700)] 
bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)

Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de>
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
(cherry picked from commit c9ed0327a9c741a1808926b409df29467baf303a)

Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>
3 years agogh-98178: syslog() is not thread-safe on macOS (GH-98213)
Miss Islington (bot) [Thu, 13 Oct 2022 12:05:18 +0000 (05:05 -0700)] 
gh-98178: syslog() is not thread-safe on macOS (GH-98213)

On macOS, fix a crash in syslog.syslog() in multi-threaded
applications. On macOS, the libc syslog() function is not
thread-safe, so syslog.syslog() no longer releases the GIL to call
it.
(cherry picked from commit d4b91663857e85eab1f309cacec4d27b5f6657ec)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.10] gh-86404: Doc CI: Disable suspicious checks. (GH-26575) (GH-98221)
Julien Palard [Wed, 12 Oct 2022 19:26:27 +0000 (21:26 +0200)] 
[3.10] gh-86404: Doc CI: Disable suspicious checks. (GH-26575) (GH-98221)

gh-86404: Doc CI: Disable suspicious checks.

3 years agogh-96265: Formatting changes for faq/general (GH-98129)
Miss Islington (bot) [Wed, 12 Oct 2022 16:12:14 +0000 (09:12 -0700)] 
gh-96265: Formatting changes for faq/general (GH-98129)

* Some formatting changes for general faq

* Use list for Python versioning

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* New line for list, list for a/b/rc

* Line wrap for 80 chars

* More line wrap

* Remove PythonWin mention.

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit e9569ec43e2376aa77240cd630db4be07e8720f3)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agotutorial: remove "with single quotes" (GH-98204)
Miss Islington (bot) [Wed, 12 Oct 2022 16:07:49 +0000 (09:07 -0700)] 
tutorial: remove "with single quotes" (GH-98204)

Closes GH-91856.

On Windows double quotes are sometimes better, on Unix usually
single quotes. It's not our place to explain that, so just don't.
(cherry picked from commit 5f8ca1b7969f34ee09adb7b28337ebd920e6215a)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agogh-65046: Link to logging cookbook from asyncio docs (GH-98207)
Miss Islington (bot) [Wed, 12 Oct 2022 04:50:15 +0000 (21:50 -0700)] 
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)

(cherry picked from commit c39a0c335486fa8eac0f3030930f9e8769118a4f)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agoFormatting fixes in contextlib docs (GH-98111)
Miss Islington (bot) [Wed, 12 Oct 2022 04:06:40 +0000 (21:06 -0700)] 
Formatting fixes in contextlib docs (GH-98111)

(cherry picked from commit 3b33c2010aa00ef5877bc35b02ae658e3c9f27af)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-95276: Add callable entry to the glossary (GH-95738)
Miss Islington (bot) [Wed, 12 Oct 2022 02:49:23 +0000 (19:49 -0700)] 
gh-95276: Add callable entry to the glossary (GH-95738)

(cherry picked from commit e3bf125c81d5da0734429c1cb6ae75e6086e35ae)

Co-authored-by: MonadChains <monadchains@gmail.com>
3 years agogh-96130: Rephrase use of "typecheck" verb for clarity (GH-98144)
Miss Islington (bot) [Wed, 12 Oct 2022 02:48:39 +0000 (19:48 -0700)] 
gh-96130: Rephrase use of "typecheck" verb for clarity (GH-98144)

I'm sympathetic to the issue report, especially in case this helps
clarify to new users that Python itself does not do type checking at runtime
(cherry picked from commit ed6344eed043eaaa41d11c1176c25aa79de64ef4)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
3 years agoPost 3.10.8
Pablo Galindo [Tue, 11 Oct 2022 17:27:10 +0000 (18:27 +0100)] 
Post 3.10.8

3 years agoPython 3.10.8 v3.10.8
Pablo Galindo [Tue, 11 Oct 2022 11:21:06 +0000 (12:21 +0100)] 
Python 3.10.8

3 years ago[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)
Ezio Melotti [Mon, 10 Oct 2022 20:26:38 +0000 (22:26 +0200)] 
[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)

* Auto-cancel old builds when new commit pushed to branch

* Add a fallback

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Use the same group for all workflows.

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 75751f4aa5d70f65856645a9128fd42d92d6692c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
3 years ago[3.10] gh-88452: Add a warning about non-portability of environments. (GH-98155)...
Miss Islington (bot) [Mon, 10 Oct 2022 20:09:27 +0000 (13:09 -0700)] 
[3.10] gh-88452: Add a warning about non-portability of environments. (GH-98155) (GH-98156)

3 years ago[3.10] ci: add GitHub token permissions (GH-92999) (#98161)
Ezio Melotti [Mon, 10 Oct 2022 19:46:09 +0000 (21:46 +0200)] 
[3.10] ci: add GitHub token permissions (GH-92999) (#98161)

* ci: add GitHub token permissions (#92999)

(cherry picked from commit b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055)

* [3.10] ci: add GitHub token permissions (GH-92999).
(cherry picked from commit b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055)

Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
3 years agogh-83940: os docs: Improve wording for getenv/getenvb (GH-98113)
Miss Islington (bot) [Mon, 10 Oct 2022 14:01:17 +0000 (07:01 -0700)] 
gh-83940: os docs: Improve wording for getenv/getenvb (GH-98113)

(cherry picked from commit 187e853690908ca2af19a0701ca7529b43d05df9)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agodoc: remove a misleading statement. (GH-98093)
Miss Islington (bot) [Mon, 10 Oct 2022 08:50:17 +0000 (01:50 -0700)] 
doc: remove a misleading statement. (GH-98093)

(cherry picked from commit 571e23d99157ed7ad67ca2334a396fc9ddbe07ec)

Co-authored-by: Julien Palard <julien@palard.fr>
3 years ago[3.10] bpo-43564: preserve original exception in args of FTP URLError (GH-24938)...
Senthil Kumaran [Mon, 10 Oct 2022 06:36:51 +0000 (23:36 -0700)] 
[3.10] bpo-43564: preserve original exception in args of FTP URLError (GH-24938) (#98138)

* bpo-43564: preserve original error in args of FTP URLError

* Add NEWS blurb

Co-authored-by: Carl Meyer <carljm@instagram.com>.
(cherry picked from commit ad817cd5c44416da3752ebf9baf16d650703275c)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Carl Meyer <carl@oddbird.net>
3 years agogh-56133: copyreg docs: Clarify function/constructor parameter (GH-95497)
Miss Islington (bot) [Mon, 10 Oct 2022 01:34:53 +0000 (18:34 -0700)] 
gh-56133: copyreg docs: Clarify function/constructor parameter (GH-95497)

(cherry picked from commit 281a3f18cc2afac0fa92c75e807775971e531711)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agoFix types in buffer/memoryview docs (GH-98118)
Miss Islington (bot) [Mon, 10 Oct 2022 01:02:49 +0000 (18:02 -0700)] 
Fix types in buffer/memoryview docs (GH-98118)

The definition of obj in the `Py_buffer` struct is as a PyObject*
https://github.com/python/cpython/blob/ec091bd47e2f968b0d1631b9a8104283a7beeb1b/Include/pybuffer.hGH-L22

PyMemoryView_GET_BASE returns `.obj` - thus its return type
should be a PyObject* (or at least a void*). It definitely
doesn't return `Py_buffer`
(cherry picked from commit c459fedf7cfd5dadf72e088d789c7375b3a6e093)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>