]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 22 Aug 2023 20:07:15 +0000 (13:07 -0700)]
[3.12] GH-92584: Remove distutils from the newtypes tutorial includes (GH-108024) (#108333)
GH-92584: Remove distutils from the newtypes tutorial includes (GH-108024)
(cherry picked from commit
e97b7bef4fbe71821d59d2f41f311e514fd29e39 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Aug 2023 20:06:53 +0000 (13:06 -0700)]
[3.12] Docs: Add link to skip to datetime's format codes (GH-108027) (#108329)
Docs: Add link to skip to datetime's format codes (GH-108027)
(cherry picked from commit
35cb1605d08a77f1c18bd476b26391acaaa35599 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Aug 2023 20:06:33 +0000 (13:06 -0700)]
[3.12] gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-108325) (#108328)
gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-108325)
* Move test_cppext to its own directory
* Rename setup_testcppext.py to setup.py
* Rename _testcppext.cpp to extension.cpp
* The source (extension.cpp) is now also copied by the test.
(cherry picked from commit
21dda09600848ac280481f7c64f8d9516dc69bb2 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Tue, 22 Aug 2023 20:06:07 +0000 (22:06 +0200)]
[3.12] gh-106016: Add Lib/test/test_module/ directory (#108293) (#108306)
gh-106016: Add Lib/test/test_module/ directory (#108293)
* Move Python scripts related to test_module to this new directory:
good_getattr.py and bad_getattrX.py scripts.
* Move Lib/test/test_module.py to Lib/test/test_module/__init__.py.
(cherry picked from commit
adfc118fdab66882599e01a84c22bd897055f3f1 )
Miss Islington (bot) [Tue, 22 Aug 2023 19:38:13 +0000 (12:38 -0700)]
[3.12] Document 3.13, 3.14 and future removals (GH-108055) (#108331)
(cherry picked from commit
39de79b345f925ce3bbb79b33534872fe0c90877 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Aug 2023 19:37:14 +0000 (12:37 -0700)]
[3.12] gh-105857: Document that asyncio subprocess std{in,out,err} can be file handles (GH-107986) (#108332)
(cherry picked from commit
13966da71b693b1fae1a8ef66e34e2f0a90ec6c0 )
Co-authored-by: Hadházy Tamás <85063808+Hels15@users.noreply.github.com>
Łukasz Langa [Tue, 22 Aug 2023 19:03:20 +0000 (21:03 +0200)]
[3.12] gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close flaw (#108316)
Instances of `ssl.SSLSocket` were vulnerable to a bypass of the TLS handshake
and included protections (like certificate verification) and treating sent
unencrypted data as if it were post-handshake TLS encrypted data.
The vulnerability is caused when a socket is connected, data is sent by the
malicious peer and stored in a buffer, and then the malicious peer closes the
socket within a small timing window before the other peers’ TLS handshake can
begin. After this sequence of events the closed socket will not immediately
attempt a TLS handshake due to not being connected but will also allow the
buffered data to be read as if a successful TLS handshake had occurred.
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Miss Islington (bot) [Tue, 22 Aug 2023 18:34:56 +0000 (11:34 -0700)]
[3.12] gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260) (#108301)
(cherry picked from commit
e8ef0bdd8c613a722bf7965bf1da912882141a52 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Tue, 22 Aug 2023 14:17:03 +0000 (07:17 -0700)]
[3.12] Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285) (#108287)
Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285)
- no parameters of create_aggregate() are positional-only
- all parameters of create_collation() are positional-only
(cherry picked from commit
893215a4e7f59eabb8ccdf188c4b9b1de5bd8966 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Tue, 22 Aug 2023 14:16:31 +0000 (07:16 -0700)]
[3.12] gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258) (#108284)
gh-107298: Fix numerous ref errors and typos in the C API docs (GH-108258)
(cherry picked from commit
d7202e4879bf4e7e00a69500ddcb3143864139b4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 22 Aug 2023 14:15:59 +0000 (07:15 -0700)]
[3.12] gh-106971: Docs: Add missing issue reference (GH-106992) (#108283)
gh-106971: Docs: Add missing issue reference (GH-106992)
(cherry picked from commit
c556f9a3c9af48c9af9e1f298be638553a6c886e )
Co-authored-by: Junya Fukuda <junya.fukuda.e@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Aug 2023 14:15:34 +0000 (07:15 -0700)]
[3.12] gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop (GH-108242) (#108275)
gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop (GH-108242)
(cherry picked from commit
a1cc74c4eebc55795877eb3be019a1bec34402f8 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 22 Aug 2023 10:02:32 +0000 (03:02 -0700)]
[3.12] gh-108179: Add error message for parser stack overflows (GH-108256) (#108263)
gh-108179: Add error message for parser stack overflows (GH-108256)
(cherry picked from commit
86617518c4ac824e2b6dc20691ba5a08df04f285 )
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Erlend E. Aasland [Tue, 22 Aug 2023 10:01:38 +0000 (12:01 +0200)]
[3.12] gh-107801: Improve the accuracy of io.TextIOWrapper.seek docs (#107933) (#108262)
(cherry picked from commit
7f87ebbc3f52680c939791f397b9a478edf0c8d4 )
Clearly document the supported seek() operations:
- Rewind to the start of the stream
- Restore a previous stream position (given by tell())
- Fast-forward to the end of the stream
Miss Islington (bot) [Tue, 22 Aug 2023 10:01:24 +0000 (03:01 -0700)]
[3.12] gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248) (#108251)
gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248)
* gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls
* Update 2023-08-22-00-36-57.gh-issue-106242.q24ITw.rst
mention Windows and the former incorrect ValueError.
---------
(cherry picked from commit
de33b5c662ea8d35d81ed857c6a39e34ab94c510 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 22 Aug 2023 10:00:07 +0000 (03:00 -0700)]
[3.12] Fix test_generators: save/restore warnings filters (GH-108246) (#108249)
Fix test_generators: save/restore warnings filters (GH-108246)
Previously, depending on existing filters, the test
could modify the warnings and so fail as "env changed".
(cherry picked from commit
531930f47f6b2a548d31e62cb4ad3e215a24bf53 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Serhiy Storchaka [Mon, 21 Aug 2023 19:44:45 +0000 (22:44 +0300)]
[3.12] gh-107298: Fix C API datetime documentation (GH-108034). (#108234)
(cherry picked from commit
d63972e289e05b0d82e59f32f107312a8b3de7b5 )
Miss Islington (bot) [Mon, 21 Aug 2023 19:44:08 +0000 (12:44 -0700)]
[3.12] gh-108224: Fix asyncio doc inconsistency (GH-108230) (#108231)
gh-108224: Fix asyncio doc inconsistency (GH-108230)
(Spawning subprocesses does not require the event loop to run in the main thread -- only signal handling does.)
(cherry picked from commit
1cc391d9e2ea24ca750005335507b52933fc0b52 )
Co-authored-by: temach <tematibr@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 19:43:28 +0000 (12:43 -0700)]
[3.12] gh-107298: Fix references to deprecated and removed PyUnicode C API (GH-108077) (#108225)
gh-107298: Fix references to deprecated and removed PyUnicode C API (GH-108077)
(cherry picked from commit
db55383829ccd5ce80c551d60f26851346741fdf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 19:40:08 +0000 (12:40 -0700)]
[3.12] docs: fix grammar in isolating-extensions.rst (GH-108037) (#108218)
docs: fix grammar in isolating-extensions.rst (GH-108037)
(cherry picked from commit
47022a079eb9d2a2af781abae3de4a71f80247c2 )
Co-authored-by: David Lechner <david@pybricks.com>
T. Wouters [Mon, 21 Aug 2023 19:39:45 +0000 (21:39 +0200)]
[3.12] Fix sphinx-lint issue now that lint runs on Misc/NEWS.d (#108237)
Fix lint warnings in Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst
(effectively a backport of GH-108212).
Miss Islington (bot) [Mon, 21 Aug 2023 19:18:42 +0000 (12:18 -0700)]
[3.12] gh-107905: Test raising `__value__` for `TypeAliasType` (GH-107997) (#108217)
gh-107905: Test raising `__value__` for `TypeAliasType` (GH-107997)
(cherry picked from commit
13104f3b7412dce9bf7cfd09bf2d6dad1f3cc2ed )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Hugo van Kemenade [Mon, 21 Aug 2023 13:32:33 +0000 (16:32 +0300)]
[3.12] Run sphinx-lint on Misc/NEWS.d/next/ (GH-108212) (#108213)
Run sphinx-lint on Misc/NEWS.d/next/
Miss Islington (bot) [Mon, 21 Aug 2023 13:31:40 +0000 (06:31 -0700)]
[3.12] gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846) (#108211)
gh-107845: Fix symlink handling for tarfile.data_filter (GH-107846)
(cherry picked from commit
acbd3f9c5c5f23e95267714e41236140d84fe962 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 12:35:18 +0000 (05:35 -0700)]
[3.12] gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485) (#108207)
gh-107396: tarfiles: set self.exception before _init_read_gz() (GH-107485)
In the stack call of: _init_read_gz()
```
_read, tarfile.py:548
read, tarfile.py:526
_init_read_gz, tarfile.py:491
```
a try;except exists that uses `self.exception`, so it needs to be set before
calling _init_read_gz().
(cherry picked from commit
37135d25e269ede92bc7da363bebfa574782e59a )
Co-authored-by: balmeida-nokia <83089745+balmeida-nokia@users.noreply.github.com>
Miss Islington (bot) [Mon, 21 Aug 2023 12:33:46 +0000 (05:33 -0700)]
[3.12] gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929) (#108205)
gh-107916: Save the error code before decoding the filename in PyErr_SetFromErrnoWithFilename() etc (GH-107929)
(cherry picked from commit
80bdebdd8593f007a2232ec04a7729bba6ebf12c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 12:31:11 +0000 (05:31 -0700)]
[3.12] gh-105736: Sync pure python version of OrderedDict with the C version (GH-108098) (#108200)
gh-105736: Sync pure python version of OrderedDict with the C version (GH-108098)
(cherry picked from commit
20cc90c0df3e368fe7cb63d958f0b17a78fa9d0a )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 21 Aug 2023 11:20:21 +0000 (04:20 -0700)]
[3.12] Improve references in the tutorial (GH-108069) (#108203)
Improve references in the tutorial (GH-108069)
* Use full qualified names for references (even if they do not work now,
they will work in future).
* Silence references to examples.
(cherry picked from commit
622ddc41674c2566062af82f7b079aa01d2aae8c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 11:18:04 +0000 (04:18 -0700)]
[3.12] gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168) (#108196)
gh-107895: Fix test_asyncio.test_runners when run it in CPython's "development mode" (GH-108168)
(cherry picked from commit
014a5b71e7538926ae1c03c8c5ea13c96e741be3 )
Co-authored-by: Joon Hwan 김준환 <xncbf12@gmail.com>
Miss Islington (bot) [Mon, 21 Aug 2023 11:16:53 +0000 (04:16 -0700)]
[3.12] Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145) (#108190)
Docs: document 'manager' and '_log' attrs of logging.Logging (GH-108145)
(cherry picked from commit
f904aa4e1f6943e5bd9a8a73cf762f063e6fa247 )
Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 20 Aug 2023 21:09:18 +0000 (14:09 -0700)]
[3.12] Resolve reference warnings in faq/library.rst (GH-108149) (#108182)
Resolve reference warnings in faq/library.rst (GH-108149)
(cherry picked from commit
6323bc33ff9f445a947adf4af42b8be7e44c730c )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 20 Aug 2023 21:08:57 +0000 (14:08 -0700)]
[3.12] Resolve reference warnings in faq/design.rst (GH-108148) (#108180)
Resolve reference warnings in faq/design.rst (GH-108148)
(cherry picked from commit
92815cc7cf3df8ab702c7cea4efaef349a4b0480 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Erlend E. Aasland [Sun, 20 Aug 2023 21:08:39 +0000 (23:08 +0200)]
[3.12] Docs: Fix Sphinx warnings in sys.rst (#108106) (#108178)
(cherry picked from commit
29fa7afef94d74e18d97485c085d1ccf80c16ca3 )
- Mark up named tuple attributes as attributes
- Remove links for external functions
- io.BufferedIOBase has no 'buffer' attribute;
remove the link and mark up using :attr:`!buffer`
- (Re)format some tables as bullet lists:
- sys._emscripten_info
- sys.hash_info
- sys.int_info
- sys.thread_info
- In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes',
add links to the frame objects reference.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Erlend E. Aasland [Sun, 20 Aug 2023 21:08:16 +0000 (23:08 +0200)]
[3.12] Docs: Fix Sphinx warnings in logging.rst (GH-108139) (#108174)
(cherry picked from commit
c735e79afb62324624864e1943f84825249f58ed )
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 20 Aug 2023 21:07:24 +0000 (14:07 -0700)]
[3.12] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) (#108134)
* gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918)
Such C API functions as PyErr_SetString(), PyErr_Format(),
PyErr_SetFromErrnoWithFilename() and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.
(cherry picked from commit
633ea217a85f6b6ba5bdbc73094254d5811b3485 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Define PY_SSIZE_T_CLEAN.
---------
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 20 Aug 2023 14:44:43 +0000 (07:44 -0700)]
[3.12] Resolve reference warnings in faq/programming.rst (GH-108150) (#108170)
Resolve reference warnings in faq/programming.rst (GH-108150)
(cherry picked from commit
a390ec20f5a85b9c16e8708f117667783d08863c )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 20 Aug 2023 13:50:29 +0000 (06:50 -0700)]
[3.12] Docs: Fix Sphinx warnings in license.rst (GH-108142) (#108167)
Docs: Fix Sphinx warnings in license.rst (GH-108142)
- Fix links to stdlib modules
- Silence links to external functions
(cherry picked from commit
4d4393139fae39db26dead33529b6ae0bafbfc58 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 20 Aug 2023 13:50:09 +0000 (06:50 -0700)]
[3.12] gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769) (#108163)
gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769)
(cherry picked from commit
beffb30dc7a07044f4198245d049ddda1f4b24db )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 20 Aug 2023 13:49:32 +0000 (06:49 -0700)]
[3.12] gh-107619: Extend functools LRU cache docs with generators and async functions (GH-107934) (#108161)
gh-107619: Extend functools LRU cache docs with generators and async functions (GH-107934)
(cherry picked from commit
1a713eac47b26899044752f02cbfcb4d628dda2a )
Co-authored-by: Hadházy Tamás <85063808+Hels15@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 20 Aug 2023 13:49:03 +0000 (06:49 -0700)]
[3.12] Fix patchcheck for `asyncio.tasks` (GH-108159) (#108160)
Fix patchcheck for `asyncio.tasks` (GH-108159)
(cherry picked from commit
b1e5d2c601bbd3d435b60deef4818f3622bdfca3 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sun, 20 Aug 2023 13:48:46 +0000 (06:48 -0700)]
[3.12] Fix misspellings in sysconfig docs (GH-108156) (#108157)
Fix misspellings in sysconfig docs (GH-108156)
(cherry picked from commit
1dc0c58d2b17819720d184ec0287a8a9b1dc347e )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Aug 2023 23:08:40 +0000 (16:08 -0700)]
[3.12] gh-107980: fix doc role for asyncio.timeouts (GH-108126) (#108152)
gh-107980: fix doc role for asyncio.timeouts (GH-108126)
(cherry picked from commit
a47c13cae5b32e6f3d7532cc6dbb4e1ac31219de )
Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
Miss Islington (bot) [Sat, 19 Aug 2023 23:08:14 +0000 (16:08 -0700)]
[3.12] Docs: Remove links to external C functions and macros in os.rst (GH-108138) (#108143)
Docs: Remove links to external C functions and macros in os.rst (GH-108138)
(cherry picked from commit
c31c61c04e55ef431615ffec959d84ac73a3db81 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Erlend E. Aasland [Sat, 19 Aug 2023 23:07:41 +0000 (01:07 +0200)]
[3.12] gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and .close() (#108084) (#108141)
- Add explanatory comments
- Add return value to connection_close() for propagating errors
- Always check the return value of connection_exec_stmt()
- Assert pre/post state in remove_callbacks()
- Don't log unraisable exceptions in case of interpreter shutdown
- Make sure we're not initialized if reinit fails
- Try to close the database even if ROLLBACK fails
(cherry picked from commit
fd195092204aa7fc9f13c5c6d423bc723d0b3520 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend E. Aasland [Sat, 19 Aug 2023 23:05:00 +0000 (01:05 +0200)]
[3.12] gh-107801: Improve the accuracy of os.lseek docs (#107935) (#108136)
- name the last parameter *whence*, like it is for seek() methods on
file objects
- add param docstrings
- structure the valid *whence* params
(cherry picked from commit
dd4442c8f597af1ec3eaf20f7ad89c4ac7e2dbc9 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Aug 2023 23:00:31 +0000 (16:00 -0700)]
[3.12] Docs: format sys.float_info properly (GH-108107) (#108130)
Docs: format sys.float_info properly (GH-108107)
- Normalise capitalisation and punctuation
- Use attribute markup for named tuple attributes
- Use :c:macro: markup for C macros
- Use a list for the 'rounds' attribute values
- Use list-table, for better .rst readability
- Remove one unneeded sys.float_info.dig link
(cherry picked from commit
ca0c6c1f1ef79d10bc49b61d638d87cde265aa94 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Aug 2023 23:00:09 +0000 (16:00 -0700)]
[3.12] gh-101100: Only show GitHub check annotations on changed doc paragraphs (GH-108065) (#108127)
gh-101100: Only show GitHub check annotations on changed doc paragraphs (GH-108065)
* Only show GitHub check annotations on changed doc paragraphs
* Improve check-warnings script arg parsing following Hugo's suggestions
* Factor filtering warnings by modified diffs into helper function
* Build docs on unmerged branch so warning lines match & avoid deep clone
---------
(cherry picked from commit
eb953d6e4484339067837020f77eecac61f8d4f8 )
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Aug 2023 22:59:32 +0000 (15:59 -0700)]
[3.12] gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897) (#108121)
gh-107565: Update macOS installer to use OpenSSL 3.0.10. (GH-107897)
(cherry picked from commit
dc7b630b2359663bb7b8212d9f2f720c978d3daa )
Co-authored-by: Ned Deily <nad@python.org>
C.A.M. Gerlach [Fri, 18 Aug 2023 21:21:16 +0000 (16:21 -0500)]
[3.12] gh-101100: Docs: Check Sphinx warnings and fail if improved (GH-106460) (#108116)
* gh-101100: Docs: Check Sphinx warnings and fail if improved (#106460)
(cherry picked from commit
806d7c98a5da5c1fd2e52a5b666f36ca4f545092 )
* [3.12] gh-101100: Docs: Check Sphinx warnings and fail if improved (GH-106460).
(cherry picked from commit
806d7c98a5da5c1fd2e52a5b666f36ca4f545092 )
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) [Fri, 18 Aug 2023 20:30:34 +0000 (13:30 -0700)]
[3.12] gh-107565: Update multissltests and GitHub CI workflows to use OpenSSL 1.1.1v, 3.0.10, and 3.1.2. (GH-108118)
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Fri, 18 Aug 2023 12:17:12 +0000 (05:17 -0700)]
[3.12] Docs: emphasise warning and add accurate markups for sys.unraisablehook (GH-108105) (#108109)
Docs: emphasise warning and add accurate markups for sys.unraisablehook (GH-108105)
(cherry picked from commit
cc58ec9724772a8d5c4a5c9a6525f9f96e994227 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Erlend E. Aasland [Fri, 18 Aug 2023 12:16:42 +0000 (14:16 +0200)]
[3.12] gh-107801: Improve the docs of the SEEK_* constants (#108099) (#108108)
(cherry picked from commit
02079b010c39a89b284e8f0bb6d5f378e554260e )
Miss Islington (bot) [Fri, 18 Aug 2023 08:55:33 +0000 (01:55 -0700)]
[3.12] Docs: Fix Sphinx warnings in io.rst (GH-107903) (#108093)
Docs: Fix Sphinx warnings in io.rst (GH-107903)
- Mark up parameter and argument names properly
- If possible, link to docs for methods like `seek`, `tell`, `write`, `read`, etc.
(cherry picked from commit
5c76899dadf3bdcfdedf6f30b3ab9742cb87af04 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Thu, 17 Aug 2023 22:40:09 +0000 (15:40 -0700)]
[3.12] gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936) (#108086)
gh-107801: Document SEEK_HOLE and SEEK_DATA (GH-107936)
(cherry picked from commit
8a19f225b948db1eebe1d9fc71a486258841f578 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Miss Islington (bot) [Thu, 17 Aug 2023 10:53:59 +0000 (03:53 -0700)]
[3.12] gh-107909: Test explicit `object` base in PEP695 generic classes (GH-108001) (#108022)
gh-107909: Test explicit `object` base in PEP695 generic classes (GH-108001)
(cherry picked from commit
b61f5995aebb93496e968ca8d307375fa86d9329 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Adam Turner [Thu, 17 Aug 2023 10:53:26 +0000 (11:53 +0100)]
[3.12] GH-92584: Remove Installing Python Modules (Distutils version) (GH-108020) (#108062)
* [3.12] GH-92584: Remove Installing Python Modules (Distutils version) (GH-108020).
(cherry picked from commit
fbb7cbc0e92168077fd56de942901511e99ca60a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 17 Aug 2023 10:52:48 +0000 (03:52 -0700)]
[3.12] gh-107298: Fix some references in the C API documentation (GH-108072) (#108074)
gh-107298: Fix some references in the C API documentation (GH-108072)
(cherry picked from commit
f51f0466c07eabc6177c2f64f70c952dada050e8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 17 Aug 2023 10:52:08 +0000 (03:52 -0700)]
[3.12] gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029) (#108070)
gh-107298: Add standard exceptions and warnings in the nitpick_ignore list (GH-108029)
(cherry picked from commit
c9d83f93d804b80ee14480466ebee63a6f97dac2 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 17 Aug 2023 10:51:07 +0000 (03:51 -0700)]
[3.12] gh-108000: Test that `lambda` also has `__type_params__` (GH-108002) (#108019)
gh-108000: Test that `lambda` also has `__type_params__` (GH-108002)
(cherry picked from commit
a8d440b3837273926af5ce996162b019290ddad5 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Miss Islington (bot) [Thu, 17 Aug 2023 10:50:46 +0000 (03:50 -0700)]
[3.12] GH-107987: Remove the Distributing Python Modules guide (GH-108016) (#108081)
GH-107987: Remove the Distributing Python Modules guide (GH-108016)
(cherry picked from commit
33e6e3fec02ff3035dec52692542d3dd10124bef )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:30:08 +0000 (16:30 -0700)]
[3.12] GH-92584: Remove references to Distutils in configure.rst (GH-108043) (#108063)
GH-92584: Remove references to Distutils in configure.rst (GH-108043)
Remove references to Distutils in configure.rst
(cherry picked from commit
e88eb3775ecdcb3af6c6d694a935b7fa5f41e5ce )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:21:08 +0000 (16:21 -0700)]
[3.12] GH-92584: Redirect macOS package installation to the PPUG (GH-108044) (#108058)
GH-92584: Redirect macOS package installation to the PPUG (GH-108044)
(cherry picked from commit
902864256cb261428ae9682ca0ffddd597e1f894 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:20:49 +0000 (16:20 -0700)]
[3.12] GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (GH-108040) (#108060)
GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (GH-108040)
Remove references to Distutils in ``PYTHONUSERBASE``
(cherry picked from commit
636ca313b2f7ce09a311889995778dccae8ebe40 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Serhiy Storchaka [Wed, 16 Aug 2023 23:20:23 +0000 (02:20 +0300)]
[3.12] gh-107298: Fix C API Buffer documentation (GH-108011). (#108048)
(cherry picked from commit
c2941cba7a986e6158eebb2a0bf33906dcd78616 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Steve Dower [Wed, 16 Aug 2023 23:19:48 +0000 (00:19 +0100)]
[3.12] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107981)
* gh-106242: Fix path truncation in os.path.normpath (GH-106816)
* gh-106242: Minor fixup to avoid compiler warnings
---------
Co-authored-by: Finn Womack <flan313@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:18:57 +0000 (16:18 -0700)]
[3.12] GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (GH-108047) (#108057)
GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (GH-108047)
Remove reference to Distutils in ``cx_Freeze``'s description
(cherry picked from commit
57fcf96e4f21b8955b3ae4b4d70e4b756949712f )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:18:24 +0000 (16:18 -0700)]
[3.12] gh-91051: fix type watcher test to be robust to existing watcher (GH-107989) (#108053)
gh-91051: fix type watcher test to be robust to existing watcher (GH-107989)
(cherry picked from commit
fce93c80ae2d792b8ca443b044e28abbf28bb89a )
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Wed, 16 Aug 2023 23:18:01 +0000 (16:18 -0700)]
[3.12] Remove Sphinx problem matcher to avoid annotating unchanged files (GH-108005) (#108049)
Remove Sphinx problem matcher to avoid annotating unchanged files (GH-108005)
(cherry picked from commit
0d7f5d3ba3641f8c7d32facbb177bf70ee7520d1 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 23:17:23 +0000 (16:17 -0700)]
[3.12] GH-92584: Drop reference to Distutils in ``site.USER_BASE`` (GH-108031) (#108039)
GH-92584: Drop reference to Distutils in ``site.USER_BASE`` (GH-108031)
Drop reference to Distutils in ``site.USER_BASE``
(cherry picked from commit
f2a9dfdee9de381e4adf29a7f1e2aec56580bfda )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 12:32:04 +0000 (05:32 -0700)]
[3.12] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (#107709)
gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688)
In future Tcl and Tk versions can be desynchronized.
(cherry picked from commit
3c8e8f3ceeae08fc43d885f5a4c65a3ee4b1a2c8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 16 Aug 2023 12:30:58 +0000 (05:30 -0700)]
[3.12] Docs: Fix more Sphinx annotations in ctypes.rst (GH-107708) (#107717)
Docs: Fix more Sphinx annotations in ctypes.rst (GH-107708)
(cherry picked from commit
8c9af6b9a0d6fc9cb237e96588d8dcab727e32b8 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Wed, 16 Aug 2023 12:30:31 +0000 (05:30 -0700)]
[3.12] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (#107722)
gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692)
Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
(cherry picked from commit
50e3cc9748eb2103eb7ed6cc5a74d177df3cfb13 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 16 Aug 2023 12:29:42 +0000 (05:29 -0700)]
[3.12] gh-107715: Escape class name in regular expression (GH-107716) (#107726)
* gh-107715: Escape class name in regular expression (GH-107716)
This patch escapes the class name before embedding it in the regular expression
for `pat` in `doctest.DocTestFinder._find_lineno`. While class names do not
ordinarily contain special characters, it is possible to encounter these when a
class is created dynamically. Escaping the name will correctly return `None` in
this scenario, rather than potentially matching a different class or raising
`re.error` depending on the symbols used.
(cherry picked from commit
85793278793708ad6b7132a54ac9fb4b2c5bcac1 )
Co-authored-by: Gertjan van Zwieten <git@gjvz.nl>
* Update 2023-08-07-14-12-07.gh-issue-107715.238r2f.rst
---------
Co-authored-by: Gertjan van Zwieten <git@gjvz.nl>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Wed, 16 Aug 2023 12:29:08 +0000 (15:29 +0300)]
[3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728)
Cover all the Mapping Protocol, almost all the Sequence Protocol
(except PySequence_Fast) and a part of the Object Protocol.
Move existing tests to Lib/test/test_capi/test_abstract.py and
Modules/_testcapi/abstract.c.
Add also tests for PyDict C API..
(cherry picked from commit
16c9415fba4972743f1944ebc44946e475e68bc4 )
Serhiy Storchaka [Wed, 16 Aug 2023 12:28:14 +0000 (15:28 +0300)]
[3.12] gh-107735: Add C API tests for PySys_GetObject() and PySys_SetObject() (GH-107736) (#107740)
[3.12] gh-107735: Add C API tests for PySys_GetObject() and PySys_SetObject() (GH-107736).
(cherry picked from commit
bea5f93196d213d6fbf4ba8984caf4c3cd1da882 )
Serhiy Storchaka [Wed, 16 Aug 2023 12:27:32 +0000 (15:27 +0300)]
[3.12] gh-86457: Fix signature for code.replace() (GH-23199) (#107744)
* [3.12] gh-86457: Fix signature for code.replace() (GH-23199)
Also add support of @text_signature in Argument Clinic..
(cherry picked from commit
0e6e32fb84b2f7cb668e0b9927637587081e38cd )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update 2023-08-07-16-30-48.gh-issue-95065.-im4R5.rst
Miss Islington (bot) [Wed, 16 Aug 2023 12:25:18 +0000 (05:25 -0700)]
[3.12] README: remove unmaintained sections (GH-107703) (#107762)
README: remove unmaintained sections (GH-107703)
(cherry picked from commit
7a250fdc16bb6f1fe0a6b0df8bb502870405b5d6 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Wed, 16 Aug 2023 12:24:47 +0000 (05:24 -0700)]
[3.12] gh-91795: Update build optimization part of PCbuild/readme.txt (GH-91849) (#107776)
gh-91795: Update build optimization part of PCbuild/readme.txt (GH-91849)
(cherry picked from commit
906b73be5eada1995bd667a02c59f7a11998310f )
Co-authored-by: Fatih <77548106+fatihkabakk@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 12:22:22 +0000 (05:22 -0700)]
[3.12] More actionable error message when spawn is incorrectly used. (GH-102203) (#107990)
More actionable error message when spawn is incorrectly used. (GH-102203)
(cherry picked from commit
a794ebeb028f7ef287c780d3890f816db9c21c51 )
Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com>
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Wed, 16 Aug 2023 12:21:57 +0000 (05:21 -0700)]
[3.12] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802) (#107998)
gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802)
Restore following CPython <= 3.10.5 behavior of shutil.make_archive()
that went away as part of gh-93160:
Do not create an empty archive if root_dir is not a directory, and, in
that case, raise FileNotFoundError or NotADirectoryError regardless
of format choice. Beyond the brought-back behavior, the function may
now also raise these exceptions in dry_run mode.
(cherry picked from commit
a86df298df5b02e2d69ea6879e9ed10a7adb85d0 )
Co-authored-by: 6t8k <58048945+6t8k@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 10:13:35 +0000 (03:13 -0700)]
[3.12] gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737) (#108006)
gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737)
Use a custom exception to prevent unintentional silence of actual errors.
(cherry picked from commit
fd9d70a94de5b0756b52b9ae21e236e25545db4f )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Serhiy Storchaka [Wed, 16 Aug 2023 10:10:42 +0000 (13:10 +0300)]
[3.12] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (#107874)
* Strings with length from 2**31-1 to 2**32-2 always caused MemoryError,
it doesn't matter how much memory is available.
* Strings with length exactly 2**32-1 caused OSError.
* Strings longer than 2**32-1 characters were truncated due to integer overflow bug.
* Strings containing the null character were truncated at the first null character.
Now strings longer than 2**31-1 characters caused OverflowError and the null character is allowed..
(cherry picked from commit
04cc01453db2f0af72a06440831637f8bf512daf )
Eric Snow [Wed, 16 Aug 2023 10:03:05 +0000 (04:03 -0600)]
[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (#107751)
* Unrevert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)".
This reverts commit
6e4eec760648a71e1cd8f8f551997b1823b4bb9f (gh-107648).
* Initialize each interpreter's refchain properly.
* Skip test_basic_multiple_interpreters_deleted_no_reset on tracerefs builds.
Serhiy Storchaka [Wed, 16 Aug 2023 10:00:55 +0000 (13:00 +0300)]
[3.12] gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612) (#108003)
Restore the global Input Stream pointer after trying to match a sub-pattern.
.
(cherry picked from commit
abd9cc52d94b8e2835322b62c29f09bb0e6fcfe9 )
Co-authored-by: SKO <41810398+uyw4687@users.noreply.github.com>
Miss Islington (bot) [Wed, 16 Aug 2023 09:58:54 +0000 (02:58 -0700)]
[3.12] gh-91051: fix segfault when using all 8 type watchers (GH-107853) (#107876)
* gh-91051: fix segfault when using all 8 type watchers (GH-107853)
(cherry picked from commit
66e4edd7346b1cd65ddff6da890a0d725e325116 )
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Tue, 15 Aug 2023 14:56:53 +0000 (07:56 -0700)]
[3.12] gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965) (#107975)
gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965)
(cherry picked from commit
6515ec3d3d5acd3d0b99c88794bdec09f0831e5b )
gh-107963: Fix set_forkserver_preload to check the type of given list
Co-authored-by: Dong-hee Na <donghee.na@python.org>
Miss Islington (bot) [Tue, 15 Aug 2023 12:41:55 +0000 (05:41 -0700)]
[3.12] gh-107967: Fix infinite recursion on invalid escape sequence warning (GH-107968) (#107970)
gh-107967: Fix infinite recursion on invalid escape sequence warning (GH-107968)
(cherry picked from commit
d66bc9e8a7a8d6774d912a4b9d151885c4d8de1d )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Mon, 14 Aug 2023 14:58:54 +0000 (07:58 -0700)]
[3.12] Add another example to the statistics docs (GH-107904) (#107941)
Add another example to the statistics docs (GH-107904)
(cherry picked from commit
2b6dc2accc315ce279d259ed39e058a225068531 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Mon, 14 Aug 2023 12:40:47 +0000 (05:40 -0700)]
[3.12] gh-107877: Update logging levels reference table with usage criteria. (GH-107894) (#107922)
gh-107877: Update logging levels reference table with usage criteria. (GH-107894)
(cherry picked from commit
cc2cf85d03cf29994a707aae5cc9a349a4165b84 )
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 14 Aug 2023 12:39:30 +0000 (05:39 -0700)]
[3.12] gh-107891: Fix typo in 3.12 whatsnew (GH-107892) (#107893)
gh-107891: Fix typo in 3.12 whatsnew (GH-107892)
(cherry picked from commit
2e1f688fe0f0a612e54c09f5a7027a834dd8b8d5 )
Co-authored-by: wookie184 <wookie1840@gmail.com>
Miss Islington (bot) [Fri, 11 Aug 2023 20:29:57 +0000 (13:29 -0700)]
[3.12] Docs: Document PyBUF_MAX_NDIM (GH-107865) (#107871)
Docs: Document PyBUF_MAX_NDIM (GH-107865)
(cherry picked from commit
637f7ff2c60f262659da0334f1cb672bd361f398 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Fri, 11 Aug 2023 14:13:14 +0000 (07:13 -0700)]
[3.12] gh-91054: make code watcher tests resilient to other watchers (GH-107821) (#107835)
gh-91054: make code watcher tests resilient to other watchers (GH-107821)
(cherry picked from commit
2ec16fed14aae896e38dd5bd9e73e2eddc974439 )
Co-authored-by: Carl Meyer <carl@oddbird.net>
Miss Islington (bot) [Fri, 11 Aug 2023 14:12:50 +0000 (07:12 -0700)]
[3.12] gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new (GH-107834) (#107864)
gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new (GH-107834)
(cherry picked from commit
16dcce21768ba381996a88ac8c255bf1490b3680 )
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Fri, 11 Aug 2023 09:59:45 +0000 (02:59 -0700)]
[3.12] Fix the long64 reader in umarshal.py (GH-107828) (#107849)
Fix the long64 reader in umarshal.py (GH-107828)
(cherry picked from commit
50bbc56009ae7303d2482f28eb62f2603664b58f )
Co-authored-by: Martin DeMello <martindemello@gmail.com>
Miss Islington (bot) [Fri, 11 Aug 2023 09:58:58 +0000 (02:58 -0700)]
[3.12] GH-107774: Add missing audit event for PEP 669 (GH-107775) (#107839)
GH-107774: Add missing audit event for PEP 669 (GH-107775)
(cherry picked from commit
494e3d4436774a5ac1a569a635b8c5c881ef1c0c )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Fri, 11 Aug 2023 09:58:27 +0000 (02:58 -0700)]
[3.12] GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725) (#107802)
GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725)
(cherry picked from commit
52fbcf61b5a70993c2d32332ff0ad9f369d968d3 )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Thu, 10 Aug 2023 09:24:22 +0000 (02:24 -0700)]
[3.12] GH-106684: Close `asyncio.StreamWriter` when `asyncio.StreamWriter` is not closed by application (GH-107650) (#107656)
GH-106684: raise `ResourceWarning` when `asyncio.StreamWriter` is not closed (GH-107650)
(cherry picked from commit
41178e41995992bbe417f94bce158de93f9e3188 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Aug 2023 09:19:14 +0000 (02:19 -0700)]
[3.12] gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815) (#107823)
gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)
(cherry picked from commit
1e229e2c3d212accbd5fbe3a46cd42f8252b2868 )
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Serhiy Storchaka [Wed, 9 Aug 2023 10:26:51 +0000 (13:26 +0300)]
[3.12] gh-106052: Fix bug in the matching of possessive quantifiers (GH-106515) (#107796)
[3.12] gh-106052: Fix bug in the matching of possessive quantifiers (gh-106515)
It did not work in the case of a subpattern containing backtracking.
Temporary implement possessive quantifiers as equivalent greedy qualifiers
in atomic groups..
(cherry picked from commit
7b6e34e5baeb4162815ffa4d943b09a58e3f6580 )
Miss Islington (bot) [Tue, 8 Aug 2023 14:25:35 +0000 (07:25 -0700)]
[3.12] gh-98154: Clarify Usage of "Reference Count" In the Docs (gh-107552) (#107752)
* gh-98154: Clarify Usage of "Reference Count" In the Docs (gh-107552)
PEP 683 (immortal objects) revealed some ways in which the Python documentation has been unnecessarily coupled to the implementation details of reference counts. In the end users should focus on reference ownership, including taking references and releasing them, rather than on how many reference counts an object has.
This change updates the documentation to reflect that perspective. It also updates the docs relative to immortal objects in a handful of places.
(cherry picked from commit
5dc825d504ad08d64c9d1ce578f9deebbe012604 )
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* Fix a typo.
---------
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>