summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-113437: Update documentation about PyUnicode_AsWideChar() function ↵Miss Islington (bot)2024-02-141-1/+6
| | | | | | | (GH-113455) (GH-115407) (cherry picked from commit 5719aa23ab7f1c7a5f03309ca4044078a98e7b59) Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
* [3.12] gh-115383: Use runner version to compute config.cache key (GH-115409) ↵Miss Islington (bot)2024-02-143-6/+18
| | | | | | (#115427) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `c-api/gcsupport.rst` (GH-114786) ↵Miss Islington (bot)2024-02-133-5/+9
| | | | | | (#115263) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115405: add versionadded tag for co_qualname in code objects ↵Miss Islington (bot)2024-02-131-0/+2
| | | | | | | | documentation (GH-115411) (#115412) gh-115405: add versionadded tag for co_qualname in code objects documentation (GH-115411) (cherry picked from commit de07941729b8899b187b8ef9690f9a74b2d6286b) Co-authored-by: Christophe Papazian <114495376+christophe-papazian@users.noreply.github.com>
* [3.12] gh-115252: Fix test_enum with -OO mode again (GH-115334) (GH-115396)Miss Islington (bot)2024-02-131-5/+5
| | | | | (cherry picked from commit ca3604a3e33d833ef698b44a4b82c5bc8c771fcb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] GH-112215: Backport C recursion changes (GH-115083)Mark Shannon2024-02-1314-45/+64
|
* [3.12] Update "Using Python on a Mac" (GH-115024) (#115387)Miss Islington (bot)2024-02-132-46/+63
| | | | | | Update "Using Python on a Mac" (GH-115024) (cherry picked from commit 0a6e1a4119864bec0247b04a5c99fdd9799cd8eb) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-115317: Rewrite changelog filter to use vanilla JavaScript ↵Miss Islington (bot)2024-02-132-50/+56
| | | | | | | | | (GH-115324) (#115372) gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324) (cherry picked from commit 341d7874f063dcb141672b09f62c19ffedd0a557) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.12] gh-114563: C decimal falls back to pydecimal for unsupported format ↵John Belmonte2024-02-124-122/+88
| | | | | | | | | | | | | | | | | | | | | strings (GH-114879) (GH-115353) Immediate merits: * eliminate complex workarounds for 'z' format support (NOTE: mpdecimal recently added 'z' support, so this becomes efficient in the long term.) * fix 'z' format memory leak * fix 'z' format applied to 'F' * fix missing '#' format support Suggested and prototyped by Stefan Krah. Fixes gh-114563, gh-91060 (cherry picked from commit 72340d15cdfdfa4796fdd7c702094c852c2b32d2) Co-authored-by: John Belmonte <john@neggie.net> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* [3.12] gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286) (#115359)Miss Islington (bot)2024-02-121-0/+3
| | | | | | gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286) (cherry picked from commit 4297d7301b97aba2e0df9f9cc5fa4010e53a8950) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Remove stray backtick in NEWS entry (GH-115356) (#115364)Miss Islington (bot)2024-02-121-1/+1
| | | | | | Remove stray backtick in NEWS entry (GH-115356) (cherry picked from commit a82fbc13d0e352b9af7d7ffbef4bc04cf635f07f) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-115233: Fix an example in the Logging Cookbook (GH-115325) (GH-115355)Serhiy Storchaka2024-02-124-23/+106
| | | | | | Also add more tests for LoggerAdapter. Also support stacklevel in LoggerAdapter._log(). (cherry picked from commit 91822018eeba12a6c9eabbc748363b2fd4291b30)
* gh-115049: Fix py.exe failing when user has no LocalAppData. (GH-115185)Miss Islington (bot)2024-02-122-2/+14
| | | | | | Also ensure we always display a debug message or error for RC_INTERNAL_ERROR (cherry picked from commit c39272e143b346bd6a3c04ca4fbf299163888277) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-101100: Fix Sphinx warnings in `whatsnew/2.7.rst` and related ↵Hugo van Kemenade2024-02-129-101/+119
| | | | (GH-115319) (#115330)
* [3.12] Add missing sections to blurbs (GH-114553) (#115336)Miss Islington (bot)2024-02-123-0/+3
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst ↵Miss Islington (bot)2024-02-113-20/+28
| | | | | | | | (GH-114825) (GH-115308) (cherry picked from commit e1552fd19de17e7a6daa3c2a6d1ca207bb8eaf8e) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.12] gh-101100: Fix dangling refs in bdb.rst (#114983) (#115297)Skip Montanaro2024-02-112-9/+10
| | | | | Co-authored-by: AN Long <aisk@users.noreply.github.com> Fix dangling refs in bdb.rst (#114983)
* [3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)Serhiy Storchaka2024-02-115-52/+322
| | | | | | | | | | * 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 2939ad02be62110ffa2ac6c4d9211c85e1d1720f)
* [3.12] gh-115011: Improve support of __index__() in setters of members with ↵Serhiy Storchaka2024-02-113-67/+62
| | | | | | | | | | | | | | 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 d9d6909697501a2604d5895f9f88aeec61274ab0)
* [3.12] gh-79382: Fix recursive glob() with trailing "**" (GH-115134) (GH-115290)Miss Islington (bot)2024-02-113-1/+15
| | | | | | | Trailing "**" no longer allows to match files and non-existing paths in recursive glob(). (cherry picked from commit aeffc7f8951e04258f0fd8cadfa6cd8b704730f6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115172: Fix explicit index extries for the C API (GH-115173) ↵Serhiy Storchaka2024-02-1114-156/+153
| | | | | (GH-115292) (cherry picked from commit 573acb30f22a84c0f2c951efa002c9946e29b6a3)
* [3.12] gh-115133: Fix tests for XMLPullParser with Expat 2.6.0 (GH-115164) ↵Miss Islington (bot)2024-02-112-22/+38
| | | | | | | | | (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 4a08e7b3431cd32a0daf22a33421cd3035343dc4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-115274: Fix direct invocation of `testmock/testpatch.py` ↵Miss Islington (bot)2024-02-111-1/+1
| | | | | | | | (GH-115275) (#115280) gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275) (cherry picked from commit f8e9c57067e32baab4ed2fd824b892c52ecb7225) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115277)Miss Islington (bot)2024-02-111-1/+5
| | | | | | gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (cherry picked from commit 1f23837277e604f41589273aeb3a10377d416510) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115254: Fix `test_property` with `-00` mode (GH-115255) (#115261)Miss Islington (bot)2024-02-111-0/+1
| | | | | | gh-115254: Fix `test_property` with `-00` mode (GH-115255) (cherry picked from commit b70a68fbd6b72a25b5ef430603e39c9e40f40d29) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-114670: Fix `_testbuffer` module initialization (GH-114672) (#115272)Miss Islington (bot)2024-02-111-53/+74
| | | | | (cherry picked from commit 3a5b38e3b465e00f133ff8074a2d4afb1392dfb5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (GH-115260)Miss Islington (bot)2024-02-111-3/+14
| | | | | (cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115059: Remove debugging code in test_io (GH-115240) (GH-115244)Miss Islington (bot)2024-02-101-30/+0
| | | | | (cherry picked from commit 597fad07f7bf709ac7084ac20aa3647995759b01) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-114552: Update `__dir__` method docs: it allows returning an ↵Miss Islington (bot)2024-02-102-3/+11
| | | | | | | | iterable (GH-114662) (#115234) gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662) (cherry picked from commit e19103a346f0277c44a43dfaebad9a5aa468bf1e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-115165: Fix `typing.Annotated` for immutable types (GH-115213) ↵Miss Islington (bot)2024-02-093-1/+28
| | | | | | | | | | | (#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 564385612cdf72c2fa8e629a68225fb2cd3b3d99) Co-authored-by: dave-shawley <daveshawley@gmail.com>
* [3.12] gh-101100: Fix sphinx warnings in `library/enum.rst` (GH-114696) ↵Nikita Sobolev2024-02-092-13/+28
| | | | (GH-115208)
* [3.12] Docs: correctly link to code objects (GH-115214) (#115216)Miss Islington (bot)2024-02-091-2/+3
| | | | | (cherry picked from commit 769d4448260aaec687d9306950225316f9faefce) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-115059: Flush the underlying write buffer in ↵Miss Islington (bot)2024-02-093-0/+63
| | | | | | | io.BufferedRandom.read1() (GH-115163) (GH-115205) (cherry picked from commit 846fd721d518dda88a7d427ec3d2c03c45d9fa90) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-115167: Exclude vcruntime140_threads.dll from Windows build output ↵Miss Islington (bot)2024-02-082-1/+2
| | | | | | | (GH-115176) (cherry picked from commit 5914a211ef5542edd1f792c2684e373a42647b04) Co-authored-by: adang1345 <adang1345@gmail.com>
* [3.12] gh-115106 docs: 'enum.Flag.__iter__()' did not exist prior to Python ↵Miss Islington (bot)2024-02-081-3/+1
| | | | | | | | 3.11 (GH-115107) (GH-115117) change versionchanged to versionadded (cherry picked from commit 3f71c416c085cfaed49ef325f70eb374a4966256) Co-authored-by: Finite State Machine <38001514+finite-state-machine@users.noreply.github.com>
* [3.12] gh-114071: [Enum] update docs and code for tuples/subclasses ↵Miss Islington (bot)2024-02-084-5/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | (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 ff7588b729a2a414ea189a2012904da3fbd1401c) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-115136: Fix possible NULL deref in getpath_joinpath() (GH-115137) ↵Miss Islington (bot)2024-02-081-0/+4
| | | | | | | | (GH-115157) (cherry picked from commit 9e90313320a2af2d9ff7049ed3842344ed236630) Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru> Co-authored-by: Artem Chernyshev <62871052+dTenebrae@users.noreply.github.com>
* [3.12] gh-115146: Fix typo in pickletools.py documentation (GH-115148) ↵Miss Islington (bot)2024-02-081-1/+1
| | | | | | | (GH-115155) (cherry picked from commit 4a7f63869aa61b24a7cc2d33f8a5e5a7fd0d76a4) Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
* [3.12] gh-114828: parenthesize non-atomic macro definitions in ↵Miss Islington (bot)2024-02-071-12/+12
| | | | | | | | pycore_symtable.h (GH-115143) (#115149) gh-114828: parenthesize non-atomic macro definitions in pycore_symtable.h (GH-115143) (cherry picked from commit 8f0998e844c2fd8c0c94681d0a6331c34ee31562) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-114828: Fix __class__ in class-scope inlined comprehensions ↵Miss Islington (bot)2024-02-073-0/+33
| | | | | | | | (GH-115139) (#115140) gh-114828: Fix __class__ in class-scope inlined comprehensions (GH-115139) (cherry picked from commit fedbf77191ea9d6515b39f958cc9e588d23517c9) Co-authored-by: Carl Meyer <carl@oddbird.net>
* [3.12] gh-101100: Fix Py_DEBUG dangling Sphinx references (GH-115003) (#115135)Miss Islington (bot)2024-02-072-8/+9
| | | | | | gh-101100: Fix Py_DEBUG dangling Sphinx references (GH-115003) (cherry picked from commit d0322fdf2c1a7292a43959fe5a572d783b88a1c4) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.12] gh-103224: Resolve paths properly in test_sysconfig (GH-103292) ↵Miss Islington (bot)2024-02-071-14/+23
| | | | | | | | | | (GH-115100) To pass tests when executed through a Python symlink. (cherry picked from commit 71239d50b54c90afd3fdde260848e0c6d73a5c27) Co-authored-by: Artem Mukhin <artem.m.mukhin@gmail.com> Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2024-02-064-3/+4
|\
| * [3.12] gh-115009: Update Windows installer to use SQLite 3.45.1 (#115065) ↵Erlend E. Aasland2024-02-064-3/+4
| | | | | | | | | | (#115110) (cherry picked from commit 11ac6f5354ec7a4da2a7e052d27d636b5a41c714)
* | Post 3.12.2Thomas Wouters2024-02-061-1/+1
| |
* | Python 3.12.2v3.12.2Thomas Wouters2024-02-06109-530/+1455
|/
* [3.12] GH-gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117) ↵Miss Islington (bot)2024-02-063-3/+15
| | | | | | | (GH-115098) (cherry picked from commit 76108b8b05040fc49a6bc50eb2e990576595c57c) Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
* [3.12] gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' ↵Miss Islington (bot)2024-02-062-49/+51
| | | | | | | | | | | | | | (GH-115038) (#115088) * gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (GH-115038) (cherry picked from commit 4bf41879d03b1da3c6d38c39a04331e3ae2e7545) 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>
* [3.12] gh-46968: Fix invalid reference to Sound eXchange (SoX) 12.17.7 ↵Łukasz Langa2024-02-062-47/+48
| | | | | license (#115094) Fix invalid reference to Sound eXchange (SoX) 12.17.7 license
* [3.12] gh-112302: Backport SBOM generation tooling (#114730)Seth Michael Larson2024-02-065-1/+3402
| | | [3.12] Backport SBOM generation tooling