commit | ced350b1952857a9b9c68ec7e2786358bcb61050 | [log] [tgz] |
---|---|---|
author | Andrew Kuchling <amk@amk.ca> | Sat Jul 07 17:36:23 2018 -0400 |
committer | GitHub <noreply@github.com> | Sat Jul 07 17:36:23 2018 -0400 |
tree | 9f89048abc8e117a828b96d077509c1002d49be3 | |
parent | caccca78e46bf3c3b24e09b3afb1c1b08c39990c [diff] |
bpo-28626: rearrange discussion of output formatting to encourage f-strings (#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().