[New-bugs-announce] [issue28626] Tutorial: rearrange discussion of output formatting to encourage f-strings

A.M. Kuchling report at bugs.python.org
Sun Nov 6 12:20:55 EST 2016


New submission from A.M. Kuchling:

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.

The attached patch doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, featuring the discussion of formatting specifiers; then calling .format(); finally manual formatting with .ljust().

Open question:

----------
assignee: docs at python
components: Documentation
files: tutorial-patch.txt
keywords: needs review, patch
messages: 280153
nosy: akuchling, docs at python
priority: normal
severity: normal
stage: patch review
status: open
title: Tutorial: rearrange discussion of output formatting to encourage f-strings
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file45372/tutorial-patch.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28626>
_______________________________________


More information about the New-bugs-announce mailing list