diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-09 13:52:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-09 13:52:48 (GMT) |
| commit | 80a5f04592f7d732a541d5c35a1be1e9a6472ecb (patch) | |
| tree | b0d1215f3bdf3b743f72b4793adce0190e6420a3 /Python/pythonrun.c | |
| parent | f5197ddfd0f2c5da848af57196448810bd18bb82 (diff) | |
| download | cpython-80a5f04592f7d732a541d5c35a1be1e9a6472ecb.zip cpython-80a5f04592f7d732a541d5c35a1be1e9a6472ecb.tar.gz cpython-80a5f04592f7d732a541d5c35a1be1e9a6472ecb.tar.bz2 | |
bpo-28626: rearrange discussion of output formatting to encourage f-strings (GH-6036)
The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings.
This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().
(cherry picked from commit ced350b1952857a9b9c68ec7e2786358bcb61050)
Co-authored-by: Andrew Kuchling <amk@amk.ca>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
