]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Oct 2025 14:39:02 +0000 (16:39 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Oct 2025 14:39:02 +0000 (14:39 +0000)
commit564bb00b2763d57d0379be5f522dd9a2b81b61f7
tree365fbe49f520216c1be185e924bcc594d631153a
parentd1a434f7b211b7061883b8cf4c8687cf00e0c2c7
[3.14] gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast.Interpolation` (GH-139415) (#140503)

gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast.Interpolation` (GH-139415)
(cherry picked from commit 4d0849426f4c6862e50658c4e35341ffb5ab288b)

Co-authored-by: George Ogden <38294960+George-Ogden@users.noreply.github.com>
Doc/library/ast.rst
Lib/_ast_unparse.py
Lib/test/test_unparse.py
Misc/NEWS.d/next/Library/2025-10-23-12-12-22.gh-issue-138774.mnh2gU.rst [new file with mode: 0644]