[issue9139] Add examples for str.format()

Ezio Melotti report at bugs.python.org
Fri Jul 2 04:43:09 CEST 2010

New submission from Ezio Melotti <ezio.melotti at gmail.com>:

The attached patch adds a section with examples about str.format() after http://docs.python.org/library/string.html#format-specification-mini-language .
The patch needs some small improvements:
  1) the examples in the previous sections could be removed and/or a link to the new section could be added;
  2) the last example could be improved;
  3) another example using custom formats (e.g. for datetime) should be added;

I'd like to have this in 2.7 (Benjamin said it's OK), please review.

assignee: ezio.melotti
components: Documentation
files: issue9139.diff
keywords: patch
messages: 109087
nosy: benjamin.peterson, eric.smith, ezio.melotti
priority: high
severity: normal
stage: patch review
status: open
title: Add examples for str.format()
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17833/issue9139.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list