Issue 6813: update format() documentation and tutorial (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/51062

classification

Title: update format() documentation and tutorial
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2

process

Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: eric.smith, georg.brandl, grooverdan
Priority: normal Keywords: patch

Created on 2009-09-01 04:05 by grooverdan, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
documentation-str-format.patch grooverdan,2009-09-01 04:05 documentation and tutorial updates for format()
Messages (4)
msg92119 - (view) Author: Daniel Black (grooverdan) * Date: 2009-09-01 04:05
Release notes show the use of '{}'.format('this') and the attached patch updates this to be the default example in the tutorial. Library references are updated to show field_name as optional and a few examples are added. Relates to the improvements from issue 5237.
msg92122 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-09-01 07:43
Thanks, committed as r74614 (trunk), r74615 (3k).
msg92135 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2009-09-01 08:50
2.7 does not support the !a conversion specifier. It's only available in 3.1 and above. It's because ascii() is a 3.x only builtin.
msg92136 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2009-09-01 08:51
Never mind, I see that you didn't add the !a docs to trunk.
History
Date User Action Args
2022-04-11 14:56:52 admin set github: 51062
2009-09-01 08:51:58 eric.smith set messages: +
2009-09-01 08:50:03 eric.smith set nosy: + eric.smithmessages: +
2009-09-01 07:43:05 georg.brandl set status: open -> closedresolution: acceptedmessages: +
2009-09-01 04:05:05 grooverdan create