]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Stanley [Sat, 19 Nov 2022 14:44:52 +0000 (06:44 -0800)]
[3.10] gh-85073: Add some missing links to source (GH-99363) (#99589)
(cherry picked from commit
27d8dc2c9d3de886a884f79f0621d4586c0e0f7a )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Miss Islington (bot) [Fri, 18 Nov 2022 19:34:17 +0000 (11:34 -0800)]
Doc: Replace question mark with fullstop (GH-99558)
The sentence "Set the LC_CTYPE locale to the user preferred locale." should end with a period
instead of a question mark.
(cherry picked from commit
0e09d2cc59cad61ad6a7a79aade52e9a2cfa7b34 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Tue, 15 Nov 2022 20:52:14 +0000 (12:52 -0800)]
gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373)
(cherry picked from commit
4e4b13e8f6211abbc0d53056da11357756daa314 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Kamil Turek [Sun, 13 Nov 2022 23:55:58 +0000 (00:55 +0100)]
[3.10] gh-92119: ctypes: Print exception class name instead of its representation (GH-98302) (#99452)
gh-92119: ctypes: Print exception class name instead of its representation (#98302)
(cherry picked from commit
b9dedfe61dce2997e3e6be318d8c50b0c19c9394 )
Miss Islington (bot) [Sun, 13 Nov 2022 19:40:18 +0000 (11:40 -0800)]
gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283)
(cherry picked from commit
343eb0f94b26f2a4c1c15505d417e8157ec19660 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Sat, 12 Nov 2022 19:47:59 +0000 (11:47 -0800)]
gh-99392: Fix sqlite3 converter recipes (GH-99393)
(cherry picked from commit
dfc1b17a23fed933cffa09eec125a7e8c90ea867 )
Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
Miss Islington (bot) [Sat, 12 Nov 2022 17:36:49 +0000 (09:36 -0800)]
bpo-34272: Reorganize C API tests. (GH-8551)
Move some C API tests into Lib/test/test_capi/.
(cherry picked from commit
f883b7f8ee3209b52863fc662343c8cd81abdc59 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Nov 2022 02:16:18 +0000 (18:16 -0800)]
gh-80448: argparse: Fix IndexError on store_true action (GH-15656)
(cherry picked from commit
e02cc6d42aee1f0a9ee629f76576eee478224d9d )
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Nov 2022 13:41:41 +0000 (05:41 -0800)]
gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372)
(cherry picked from commit
c3c3871415c86088d45abcf73ccd2c2b09dc5772 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 11 Nov 2022 01:32:30 +0000 (17:32 -0800)]
gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437)
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py
[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
(cherry picked from commit
d26ee8a0a552de111b8245ef0de63e3f3f535d9f )
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Miss Islington (bot) [Thu, 10 Nov 2022 21:27:42 +0000 (13:27 -0800)]
GH-99183: Document behavior of count() for empty substrings (GH-99339)
(cherry picked from commit
2f4af2d99cffed6ba81e4b8fd886de6ae8625a3f )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Jason R. Coombs [Thu, 10 Nov 2022 15:59:38 +0000 (10:59 -0500)]
[3.10] gh-99130: Apply bugfixes from importlib_metadata 4.11.4. (#99132)
Miss Islington (bot) [Thu, 10 Nov 2022 12:59:25 +0000 (04:59 -0800)]
gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)
(cherry picked from commit
dbf2faf579b4094387d65ee41f049456ca67c446 )
Co-authored-by: Anton Ryzhov <anton@ryzhov.me>
Miss Islington (bot) [Thu, 10 Nov 2022 11:19:30 +0000 (03:19 -0800)]
gh-99320: remove tests for old-style class from `test_complex` (GH-99321)
(cherry picked from commit
26726c76494d85c7b565b764c732dd4473458409 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 8 Nov 2022 21:08:08 +0000 (13:08 -0800)]
gh-99238: clarify the type of the env dict. (GH-99253)
(cherry picked from commit
2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 8 Nov 2022 16:33:28 +0000 (08:33 -0800)]
Fix broken link in `asyncio-subprocesses` doc (GH-99214)
GH- Fix broken link in Doc/library/asyncio-subprocess.rst
This is a trivial fix in documentation to fix a broken link.
There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.htmlGH-asyncio.subprocess.Process) for the function ``wait_for``:

I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs.
This PR fixes the link and the result looks like the following:

(cherry picked from commit
acf4d5d5bdecbc8756276731e09bae245d88518d )
Co-authored-by: Mikael Koli <koli.mikael@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
Miss Islington (bot) [Tue, 8 Nov 2022 03:23:16 +0000 (19:23 -0800)]
[3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)
There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.
(cherry picked from commit
d315722564927c7202dd6e111dc79eaf14240b0d )
(cherry picked from commit
a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15 )
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 8 Nov 2022 02:30:38 +0000 (18:30 -0800)]
gh-99124: use concrete exception types in `test_builtin` (GH-99125)
(cherry picked from commit
c32bc1bffd9d63ede0d0505abab983247a3ad0c6 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 8 Nov 2022 02:19:33 +0000 (18:19 -0800)]
gh-98513: Test abstract methods of some `collections` types (GH-98516)
(cherry picked from commit
a309ad9f76db4ab9a8f933ab1ffea78ecaca827f )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Mon, 7 Nov 2022 18:56:21 +0000 (10:56 -0800)]
[3.10] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) (GH-99213)
gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002)
The flag is not inherited, but its effect -- a NULL tp_new -- is.
Drop hints for people who come here wanting to “disallow instantiation”.
(cherry picked from commit
1438b779971605e516bd0a4051a704d6ffbbd58d )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 7 Nov 2022 17:14:28 +0000 (09:14 -0800)]
doc: Formatting and typo fixes (GH-98974)
(cherry picked from commit
728e42fcf51cbb2108caf1382df224c13b53d024 )
Co-authored-by: jmcb <joelsgp@protonmail.com>
Miss Islington (bot) [Mon, 7 Nov 2022 12:08:39 +0000 (04:08 -0800)]
bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937)
(cherry picked from commit
5ff81da6d3a8eb01fc5500fd1c9eaa6543286301 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 7 Nov 2022 10:16:54 +0000 (02:16 -0800)]
[3.10] [ GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH-99156). (GH-99188) (GH-99190)
Miss Islington (bot) [Mon, 7 Nov 2022 06:05:20 +0000 (22:05 -0800)]
gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162)
(cherry picked from commit
f626b7b504df454d289527a4f922b09deeae9e21 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Erlend E. Aasland [Sun, 6 Nov 2022 21:39:34 +0000 (22:39 +0100)]
[3.10] gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM (GH-99085) (#99119)
(cherry picked from commit
12078e78f6e4a21f344e4eaff529e1ff3b97734f )
Co-authored-by: Sam James <sam@cmpct.info>
Co-authored-by: Sam James <sam@cmpct.info>
Miss Islington (bot) [Sun, 6 Nov 2022 20:23:01 +0000 (12:23 -0800)]
gh-94286 Fix documentation of print default param (GH-94297)
(cherry picked from commit
2db55e0c0069a928775fa819973a76f840c5ab5a )
Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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.
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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)
sterliakov [Fri, 28 Oct 2022 10:12:42 +0000 (13:12 +0300)]
[3.10] gh-98548: Fix `-ne` shell operator spelling (#98555)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>