File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,10 +254,10 @@ Some simple format string examples::
254
254
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.
255
255
256
256
The *conversion * field causes a type coercion before formatting. Normally, the
257
- job of formatting a value is done by the :meth: `__format__ ` method of the value
257
+ job of formatting a value is done by the :meth: `~object. __format__ ` method of the value
258
258
itself. However, in some cases it is desirable to force a type to be formatted
259
259
as a string, overriding its own definition of formatting. By converting the
260
- value to a string before calling :meth: `__format__ `, the normal formatting logic
260
+ value to a string before calling :meth: `~object. __format__ `, the normal formatting logic
261
261
is bypassed.
262
262
263
263
Three conversion flags are currently supported: ``'!s' `` which calls :func: `str `
You can’t perform that action at this time.
0 commit comments