summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-115570: Fix DeprecationWarnings in test_typing (#115571) (#115574)Jelle Zijlstra2024-02-163-2/+16
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-100734: What's New in 3.x: Add missing detail from 3.x branch ↵Miss Islington (bot)2024-02-157-0/+325
| | | | | | (GH-114689) (#115526) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-108303: Move all `pydoc` related files to `test_pydoc` (GH-114506) ↵Nikita Sobolev2024-02-157-25/+32
| | | | | (#115502) (cherry picked from commit ccc76c3e88647e416184bb1f5210b4e8946ae358)
* [3.12] GH-113516: don't set `LDSHARED` when building for WASI (GH-115495) ↵Brett Cannon2024-02-152-1/+1
| | | | (GH-115496)
* [3.12] gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (#115469)Miss Islington (bot)2024-02-1415-306/+431
| | | | | | gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (cherry picked from commit 4b2d1786ccf913bc80ff571c32b196be1543ca54) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-112302: Move pip SBOM discovery to release-tools (GH-115360) (#115486)Miss Islington (bot)2024-02-142-921/+0
| | | | Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-112087: Fix reduce logic for the empty reverse iterator for list ↵Donghee Na2024-02-143-8/+9
| | | | (gh-115471)
* [3.12] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) ↵Miss Islington (bot)2024-02-141-6/+8
| | | | | | | (#115476) (cherry picked from commit 49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-115243: Fix crash in deque.index() when the deque is concurrently ↵Miss Islington (bot)2024-02-143-2/+8
| | | | | | | modified (GH-115247) (GH-115465) (cherry picked from commit 671360161f0b7a5ff4c1d062e570962e851b4bde) Co-authored-by: kcatss <kcats9731@gmail.com>
* [3.12] gh-115392: Fix doctest reporting incorrect line numbers for decorated ↵Miss Islington (bot)2024-02-145-1/+23
| | | | | | | | functions (GH-115440) (#115459) gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440) (cherry picked from commit bb791c7728e0508ad5df28a90b27e202d66a9cfa) Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
* [3.12] Docs: reword sentences about dbm submodule traits (GH-114609) (#115462)Miss Islington (bot)2024-02-141-14/+6
| | | | | | Don't repeatedly say that keys and values are coerced into bytes. (cherry picked from commit 81e140d10b77f0a41a5581412e3f3471cc77981f) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-115403: Remove extra colon after "Examples" in datetime ↵Miss Islington (bot)2024-02-141-1/+1
| | | | | | | | documentation (GH-115452) (#115455) gh-115403: Remove extra colon after "Examples" in datetime documentation (GH-115452) (cherry picked from commit 6755c4e0c8803a246e632835030c0b8837b3b676) Co-authored-by: Stanislav Lyu <wallseat@gmail.com>
* [3.12] gh-115450: Fix direct invocation of `test_desctut` (GH-115451) (#115453)Miss Islington (bot)2024-02-141-11/+11
| | | | | | gh-115450: Fix direct invocation of `test_desctut` (GH-115451) (cherry picked from commit ec8909a23931338f81803ea3f18dc2073f74a152) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) ↵Miss Islington (bot)2024-02-141-3/+3
| | | | | | | | (#115445) ftplib docs: `timeout` doesn't have to be a whole number (GH-115443) (cherry picked from commit 3fd2ad8241a61e75b2cd33c697af276863efbb51) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [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>