Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 7, 2018

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 ced350b)

Co-authored-by: Andrew Kuchling [email protected]

https://bugs.python.org/issue28626

…trings (pythonGH-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 ced350b)

Co-authored-by: Andrew Kuchling <[email protected]>
@miss-islington
Copy link
Contributor Author

@akuchling: Backport status check is done, and it's a success ✅ .

Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport looks sensible to me.

@miss-islington miss-islington merged commit 80a5f04 into python:3.7 Jul 9, 2018
@miss-islington miss-islington deleted the backport-ced350b-3.7 branch July 9, 2018 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants