Miss Islington (bot)
2ed47d8f8b
[3.12] gh-115285: Fix test_dataclasses
with -OO
mode (GH-115286) ( #115359 )
...
gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286)
(cherry picked from commit 4297d7301b
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-12 20:27:48 +00:00
Miss Islington (bot)
8774f50e29
[3.12] Remove stray backtick in NEWS entry (GH-115356) ( #115364 )
...
Remove stray backtick in NEWS entry (GH-115356)
(cherry picked from commit a82fbc13d0
)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2024-02-12 19:30:30 +00:00
Serhiy Storchaka
225856ef3e
[3.12] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355)
...
Also add more tests for LoggerAdapter.
Also support stacklevel in LoggerAdapter._log().
(cherry picked from commit 91822018ee
)
2024-02-12 18:29:48 +00:00
Miss Islington (bot)
90d1037046
gh-115049: Fix py.exe failing when user has no LocalAppData. (GH-115185)
...
Also ensure we always display a debug message or error for RC_INTERNAL_ERROR
(cherry picked from commit c39272e143
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2024-02-12 18:18:45 +00:00
Hugo van Kemenade
5ec271db3b
[3.12] gh-101100: Fix Sphinx warnings in whatsnew/2.7.rst
and related (GH-115319) ( #115330 )
2024-02-12 16:37:20 +02:00
Miss Islington (bot)
6ca300fcc6
[3.12] Add missing sections to blurbs (GH-114553) ( #115336 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-12 14:22:48 +00:00
Miss Islington (bot)
67688609d2
[3.12] gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst (GH-114825) (GH-115308)
...
(cherry picked from commit e1552fd19d
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-02-11 19:02:21 +00:00
Skip Montanaro
18f5264145
[3.12] gh-101100: Fix dangling refs in bdb.rst ( #114983 ) ( #115297 )
...
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Fix dangling refs in bdb.rst (#114983 )
2024-02-11 11:32:37 -07:00
Serhiy Storchaka
cfb79caaab
[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)
...
* Class methods no longer have "method of builtins.type instance" note.
* Corresponding notes are now added for class and unbound methods.
* Method and function aliases now have references to the module or the
class where the origin was defined if it differs from the current.
* Bound methods are now listed in the static methods section.
* Methods of builtin classes are now supported as well as methods of
Python classes.
(cherry picked from commit 2939ad02be
)
2024-02-11 13:56:34 +00:00
Serhiy Storchaka
d8346d6c06
[3.12] gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) (GH-115294)
...
Setters for members with an unsigned integer type now support
the same range of valid values for objects that has a __index__()
method as for int.
Previously, Py_T_UINT, Py_T_ULONG and Py_T_ULLONG did not support
objects that has a __index__() method larger than LONG_MAX.
Py_T_ULLONG did not support negative ints. Now it supports them and
emits a RuntimeWarning.
(cherry picked from commit d9d6909697
)
2024-02-11 11:56:17 +00:00
Miss Islington (bot)
d65cd8bc4e
[3.12] gh-79382: Fix recursive glob() with trailing "**" (GH-115134) (GH-115290)
...
Trailing "**" no longer allows to match files and non-existing paths in
recursive glob().
(cherry picked from commit aeffc7f895
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-11 10:57:40 +00:00
Serhiy Storchaka
b9f560258c
[3.12] gh-115172: Fix explicit index extries for the C API (GH-115173) (GH-115292)
...
(cherry picked from commit 573acb30f2
)
2024-02-11 10:34:41 +00:00
Miss Islington (bot)
c4fa79b924
[3.12] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) (GH-115288)
...
Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.
(cherry picked from commit 4a08e7b343
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-11 10:34:04 +00:00
Miss Islington (bot)
6e13e50859
[3.12] gh-115274: Fix direct invocation of testmock/testpatch.py
(GH-115275) ( #115280 )
...
gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275)
(cherry picked from commit f8e9c57067
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 12:14:37 +03:00
Miss Islington (bot)
5baf90e038
[3.12] gh-115249: Fix test_descr
with -OO
mode (GH-115250) ( #115277 )
...
gh-115249: Fix `test_descr` with `-OO` mode (GH-115250)
(cherry picked from commit 1f23837277
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 11:57:49 +03:00
Miss Islington (bot)
f036b357b2
[3.12] gh-115254: Fix test_property
with -00
mode (GH-115255) ( #115261 )
...
gh-115254: Fix `test_property` with `-00` mode (GH-115255)
(cherry picked from commit b70a68fbd6
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 10:59:37 +03:00
Miss Islington (bot)
d19f0674ae
[3.12] gh-114670: Fix _testbuffer
module initialization (GH-114672) ( #115272 )
...
(cherry picked from commit 3a5b38e3b4
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-11 10:53:00 +03:00
Miss Islington (bot)
ada6629169
[3.12] gh-115252: Fix test_enum
with -OO
mode (GH-115253) (GH-115260)
...
(cherry picked from commit 33f56b7432
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-10 21:15:40 -08:00
Miss Islington (bot)
a5f49ce65e
[3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)
...
(cherry picked from commit 597fad07f7
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-10 16:04:49 +02:00
Miss Islington (bot)
7cc205872d
[3.12] gh-114552: Update __dir__
method docs: it allows returning an iterable (GH-114662) ( #115234 )
...
gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662)
(cherry picked from commit e19103a346
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-10 08:50:31 +00:00
Miss Islington (bot)
321ec5e0fe
[3.12] gh-115165: Fix typing.Annotated
for immutable types (GH-115213) ( #115227 )
...
gh-115165: Fix `typing.Annotated` for immutable types (GH-115213)
The return value from an annotated callable can raise any exception from
__setattr__ for the `__orig_class__` property.
(cherry picked from commit 564385612c
)
Co-authored-by: dave-shawley <daveshawley@gmail.com>
2024-02-09 22:31:57 +00:00
Nikita Sobolev
3539b02873
[3.12] gh-101100: Fix sphinx warnings in library/enum.rst
(GH-114696) (GH-115208)
2024-02-09 12:10:26 -08:00
Miss Islington (bot)
370cbbbfeb
[3.12] Docs: correctly link to code objects (GH-115214) ( #115216 )
...
(cherry picked from commit 769d444826
)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-02-09 14:17:49 +00:00
Miss Islington (bot)
0211f919b1
[3.12] gh-115059: Flush the underlying write buffer in io.BufferedRandom.read1() (GH-115163) (GH-115205)
...
(cherry picked from commit 846fd721d5
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-09 11:00:35 +00:00
Miss Islington (bot)
235c54fe9c
gh-115167: Exclude vcruntime140_threads.dll from Windows build output (GH-115176)
...
(cherry picked from commit 5914a211ef
)
Co-authored-by: adang1345 <adang1345@gmail.com>
2024-02-08 22:15:58 +00:00
Miss Islington (bot)
108ff59c8f
[3.12] gh-115106 docs: 'enum.Flag.__iter__()' did not exist prior to Python 3.11 (GH-115107) (GH-115117)
...
change versionchanged to versionadded
(cherry picked from commit 3f71c416c0
)
Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
2024-02-08 14:03:12 -08:00
Miss Islington (bot)
7d2f88edf0
[3.12] gh-114071: [Enum] update docs and code for tuples/subclasses (GH-114871) (GH-114993)
...
Update documentation with `__new__` and `__init__` entries.
Support use of `auto()` in tuple subclasses on member assignment lines. Previously, auto() was only supported on the member definition line either solo or as part of a tuple:
RED = auto()
BLUE = auto(), 'azul'
However, since Python itself supports using tuple subclasses where tuples are expected, e.g.:
from collections import namedtuple
T = namedtuple('T', 'first second third')
def test(one, two, three):
print(one, two, three)
test(*T(4, 5, 6))
GH- 4 5 6
it made sense to also support tuple subclasses in enum definitions.
(cherry picked from commit ff7588b729
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2024-02-08 14:01:38 -08:00
Miss Islington (bot)
dc01c84ed0
[3.12] gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137) (GH-115157)
...
(cherry picked from commit 9e90313320
)
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Co-authored-by: Artem Chernyshev <62871052+dTenebrae@users.noreply.github.com>
2024-02-08 11:18:38 +02:00
Miss Islington (bot)
2016fbd682
[3.12] gh-115146: Fix typo in pickletools.py documentation (GH-115148) (GH-115155)
...
(cherry picked from commit 4a7f63869a
)
Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
2024-02-08 08:30:31 +00:00
Miss Islington (bot)
3a67d3272c
[3.12] gh-114828: parenthesize non-atomic macro definitions in pycore_symtable.h (GH-115143) ( #115149 )
...
gh-114828: parenthesize non-atomic macro definitions in pycore_symtable.h (GH-115143)
(cherry picked from commit 8f0998e844
)
Co-authored-by: Carl Meyer <carl@oddbird.net>
2024-02-07 20:39:22 +00:00
Miss Islington (bot)
967f27d0a1
[3.12] gh-114828: Fix __class__ in class-scope inlined comprehensions (GH-115139) ( #115140 )
...
gh-114828: Fix __class__ in class-scope inlined comprehensions (GH-115139)
(cherry picked from commit fedbf77191
)
Co-authored-by: Carl Meyer <carl@oddbird.net>
2024-02-07 17:12:54 +00:00
Miss Islington (bot)
a69e68db60
[3.12] gh-101100: Fix Py_DEBUG dangling Sphinx references (GH-115003) ( #115135 )
...
gh-101100: Fix Py_DEBUG dangling Sphinx references (GH-115003)
(cherry picked from commit d0322fdf2c
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-02-07 10:55:21 +00:00
Miss Islington (bot)
060c3edc4b
[3.12] gh-103224: Resolve paths properly in test_sysconfig (GH-103292) (GH-115100)
...
To pass tests when executed through a Python symlink.
(cherry picked from commit 71239d50b5
)
Co-authored-by: Artem Mukhin <artem.m.mukhin@gmail.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2024-02-07 11:36:10 +02:00
Thomas Wouters
d975e791f2
Merge branch '3.12' of https://github.com/python/cpython into 3.12
2024-02-07 00:44:54 +01:00
Thomas Wouters
55cd0bff73
Post 3.12.2
2024-02-07 00:44:32 +01:00
Erlend E. Aasland
bf5cc327d0
[3.12] gh-115009: Update Windows installer to use SQLite 3.45.1 ( #115065 ) ( #115110 )
...
(cherry picked from commit 11ac6f5354
)
2024-02-06 23:02:58 +00:00
Thomas Wouters
6abddd9f6a
Python 3.12.2
2024-02-06 21:19:44 +01:00
Miss Islington (bot)
831b95d9b9
[3.12] GH-gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117) (GH-115098)
...
(cherry picked from commit 76108b8b05
)
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
2024-02-06 19:05:05 +00:00
Miss Islington (bot)
5fb2204ad4
[3.12] gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (GH-115038) ( #115088 )
...
* gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (GH-115038)
(cherry picked from commit 4bf41879d0
)
Co-authored-by: Seth Michael Larson <seth@python.org>
* Update pip SBOM package to version in source
---------
Co-authored-by: Seth Michael Larson <seth@python.org>
2024-02-06 19:34:03 +01:00
Łukasz Langa
b39119916c
[3.12] gh-46968: Fix invalid reference to Sound eXchange (SoX) 12.17.7 license ( #115094 )
...
Fix invalid reference to Sound eXchange (SoX) 12.17.7 license
2024-02-06 18:59:23 +01:00
Seth Michael Larson
5e64828064
[3.12] gh-112302: Backport SBOM generation tooling ( #114730 )
...
[3.12] Backport SBOM generation tooling
2024-02-06 16:02:28 +01:00
Miss Islington (bot)
f82f695028
[3.12] gh-111239: Update Windows build to use zlib 1.3.1 (GH-114877) (GH-115076)
...
gh-111239: Update Windows build to use zlib 1.3.1 (GH-114877)
(cherry picked from commit 618d7256e7
)
Co-authored-by: Zachary Ware <zach@python.org>
2024-02-06 15:53:30 +01:00
Miss Islington (bot)
7974f71478
[3.12] gh-106233: Fix stacklevel in zoneinfo.InvalidTZPathWarning (GH-106234) (GH-115081)
...
(cherry picked from commit d7334e2c20
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-06 13:26:39 +00:00
Erlend E. Aasland
9b66caf098
[3.12] gh-115009: Update macOS installer to use SQLite 3.45.1 ( #115066 ) ( #115071 )
...
(cherry picked from commit 13eb5215c9
)
Co-authored-by: Ned Deily <nad@python.org>
2024-02-06 10:21:53 +00:00
Erlend E. Aasland
6f5e360acd
[3.12] gh-115015: Argument Clinic: fix generated code for METH_METHOD methods without params ( #115016 ) ( #115067 )
...
(cherry picked from commit 09096a1647
)
2024-02-06 11:20:16 +01:00
Miss Islington (bot)
5ddb274040
[3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13. (GH-115055)
...
Also update multissltests to use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
(cherry picked from commit 299e16ca0f
)
Co-authored-by: Ned Deily <nad@python.org>
2024-02-06 02:29:17 +00:00
Miss Islington (bot)
51f8c0459d
[3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.13. (GH-115053)
...
(cherry picked from commit 638e811a3c
)
Co-authored-by: Ned Deily <nad@python.org>
2024-02-06 02:16:32 +00:00
Zachary Ware
b967eabedf
[3.12] gh-109991: Update Windows build to use OpenSSL 3.0.13 ( #115047 )
...
(cherry picked from commit 01dceba13e
)
2024-02-06 00:11:15 +00:00
Miss Islington (bot)
94ad68264c
[3.12] gh-109475: Fix support of explicit option value "--" in argparse (GH-114814) (GH-115036)
...
For example "--option=--".
(cherry picked from commit 4aa4f0906d
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-05 21:02:00 +00:00
Miss Islington (bot)
21f06a22c0
[3.12] gh-114967: Fix "Built-in Exceptions" documentation ambiguous wording (GH-114968) ( #115033 )
...
Change the somewhat vague "listed below" to "listed in this chapter" in Doc/library/exceptions.rst.
The exceptions are listed in multiple sections after two intermediate sections.
---------
(cherry picked from commit 750489cc77
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: HarryLHW <123lhw321@gmail.com>
2024-02-05 20:30:38 +00:00