Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Doc/library/ast.rst
  • Loading branch information
AA-Turner authored Jul 23, 2025
commit 53b541b68848e73d167503851f0f7792b8bb53ba
6 changes: 3 additions & 3 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ Literals
* ``conversion`` is an integer:

* -1: no formatting
* 97: ``!a`` :func:`ASCII <ascii>` formatting (``ord('a')``)
* 114: ``!r`` :func:`repr` formatting (``ord('r')``)
* 115: ``!s`` :func:`string <str>` formatting (``ord('s')``)
* 97 (``ord('a')``): ``!a`` :func:`ASCII <ascii>` formatting
* 114 (``ord('r')``): ``!r`` :func:`repr` formatting
* 115 (``ord('s')``): ``!s`` :func:`string <str>` formatting

* ``format_spec`` is a :class:`JoinedStr` node representing the formatting
of the value, or ``None`` if no format was specified. Both
Expand Down