Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca3486c

Browse files
authored
[3.12]gh-122300: Preserve AST nodes for format specifiers with single elements (GH-122308) (#122363)
(cherry picked from commitdb2d8b6)
1 parent8205c16 commitca3486c

File tree

4 files changed

+133
-2826
lines changed

4 files changed

+133
-2826
lines changed

‎Doc/library/ast.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ Literals
302302
Name(id='a', ctx=Load())],
303303
keywords=[]),
304304
conversion=-1,
305-
format_spec=Constant(value='.3'))]))
305+
format_spec=JoinedStr(
306+
values=[
307+
Constant(value='.3')]))]))
306308

307309

308310
..class::List(elts, ctx)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp