@@ -82,7 +82,7 @@ The general form of a *standard format specifier* is:
82
82
width: `integer ` | "{" [`arg_id `] "}"
83
83
precision: `integer ` | "{" [`arg_id `] "}"
84
84
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" | "?"
86
86
87
87
The *fill * character can be any Unicode code point other than ``'{' `` or
88
88
``'}' ``. The presence of a fill character is signaled by the character following
@@ -177,6 +177,9 @@ The available string presentation types are:
177
177
| ``'s' `` | String format. This is the default type for strings and |
178
178
| | may be omitted. |
179
179
+---------+----------------------------------------------------------+
180
+ | ``'?' `` | Debug format. The string is quoted and special |
181
+ | | characters escaped. |
182
+ +---------+----------------------------------------------------------+
180
183
| none | The same as ``'s' ``. |
181
184
+---------+----------------------------------------------------------+
182
185
@@ -188,6 +191,9 @@ The available character presentation types are:
188
191
| ``'c' `` | Character format. This is the default type for |
189
192
| | characters and may be omitted. |
190
193
+---------+----------------------------------------------------------+
194
+ | ``'?' `` | Debug format. The character is quoted and special |
195
+ | | characters escaped. |
196
+ +---------+----------------------------------------------------------+
191
197
| none | The same as ``'c' ``. |
192
198
+---------+----------------------------------------------------------+
193
199
0 commit comments