This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: update format() documentation and tutorial
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2
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.

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.
Date User Action Args
2022-04-11 14:56:52adminsetgithub: 51062
2009-09-01 08:51:58eric.smithsetmessages: + msg92136
2009-09-01 08:50:03eric.smithsetnosy: + eric.smith
messages: + msg92135
2009-09-01 07:43:05georg.brandlsetstatus: open -> closed
resolution: accepted
messages: + msg92122
2009-09-01 04:05:05grooverdancreate