Skip to content

Commit

Permalink
Document '?'
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 28, 2023
1 parent 3a25a58 commit 18ca224
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The general form of a *standard format specifier* is:
width: `integer` | "{" [`arg_id`] "}"
precision: `integer` | "{" [`arg_id`] "}"
type: "a" | "A" | "b" | "B" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" |
: "o" | "p" | "s" | "x" | "X"
: "o" | "p" | "s" | "x" | "X" | "?"

The *fill* character can be any Unicode code point other than ``'{'`` or
``'}'``. The presence of a fill character is signaled by the character following
Expand Down Expand Up @@ -177,6 +177,9 @@ The available string presentation types are:
| ``'s'`` | String format. This is the default type for strings and |
| | may be omitted. |
+---------+----------------------------------------------------------+
| ``'?'`` | Debug format. The string is quoted and special |
| | characters escaped. |
+---------+----------------------------------------------------------+
| none | The same as ``'s'``. |
+---------+----------------------------------------------------------+

Expand All @@ -188,6 +191,9 @@ The available character presentation types are:
| ``'c'`` | Character format. This is the default type for |
| | characters and may be omitted. |
+---------+----------------------------------------------------------+
| ``'?'`` | Debug format. The character is quoted and special |
| | characters escaped. |
+---------+----------------------------------------------------------+
| none | The same as ``'c'``. |
+---------+----------------------------------------------------------+

Expand Down

0 comments on commit 18ca224

Please sign in to comment.