File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,9 @@ The ``','`` option signals the use of a comma for a thousands separator.
378
378
For a locale aware separator, use the ``'n' `` integer presentation type
379
379
instead.
380
380
381
+ .. versionchanged :: 2.7
382
+ Added the ``',' `` option (see also :pep: `378 `).
383
+
381
384
*width * is a decimal integer defining the minimum field width. If not
382
385
specified, then the field width will be determined by the content.
383
386
@@ -531,6 +534,7 @@ Accessing arguments by name::
531
534
532
535
Accessing arguments' attributes::
533
536
537
+ >>> c = 3-5j
534
538
>>> ('The complex number {0} is formed from the real part {0.real} '
535
539
... 'and the imaginary part {0.imag}.').format(c)
536
540
'The complex number (3-5j) is formed from the real part 3.0 and the imaginary part -5.0.'
You can’t perform that action at this time.
0 commit comments