Skip to content

Commit 18ca224

Browse files
committed
Document '?'
1 parent 3a25a58 commit 18ca224

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/syntax.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The general form of a *standard format specifier* is:
8282
width: `integer` | "{" [`arg_id`] "}"
8383
precision: `integer` | "{" [`arg_id`] "}"
8484
type: "a" | "A" | "b" | "B" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" |
85-
: "o" | "p" | "s" | "x" | "X"
85+
: "o" | "p" | "s" | "x" | "X" | "?"
8686

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

@@ -188,6 +191,9 @@ The available character presentation types are:
188191
| ``'c'`` | Character format. This is the default type for |
189192
| | characters and may be omitted. |
190193
+---------+----------------------------------------------------------+
194+
| ``'?'`` | Debug format. The character is quoted and special |
195+
| | characters escaped. |
196+
+---------+----------------------------------------------------------+
191197
| none | The same as ``'c'``. |
192198
+---------+----------------------------------------------------------+
193199

0 commit comments

Comments
 (0)