[docs] http://docs.python.org/2/library/string.html#format-string-syntax

http://docs.python.org/2/library/string.html#format-string-syntax I suggest to change the examples so that they also work in Python 2.6 or add a comment to each line that it requires Python 2.7 It did bite me on android: PythonAPK is 2.7 but Py4A is still 2.6 Aligning the text and specifying a width:
thank you!

Python examples should reflect new use cases and best practices. They are should not be backward-compatible. Omitting of positional argument numbers is directly mentioned at this page: Changed in version 2.7: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'. On Mon, Dec 3, 2012 at 10:40 PM, Martin Herweg <m.herweg@gmx.de> wrote:
-- Thanks, Andrew Svetlov

Python examples should reflect new use cases and best practices. They are should not be backward-compatible. Omitting of positional argument numbers is directly mentioned at this page: Changed in version 2.7: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'. On Mon, Dec 3, 2012 at 10:40 PM, Martin Herweg <m.herweg@gmx.de> wrote:
-- Thanks, Andrew Svetlov
participants (2)
-
Andrew Svetlov
-
Martin Herweg