[New-bugs-announce] [issue35831] Format Spec example says limited to 3.1+ but works in 2.7

Mitchell L Model report at bugs.python.org
Fri Jan 25 23:06:00 EST 2019


New submission from Mitchell L Model <mlm at users.sourceforge.net>:

https://docs.python.org/3/library/string.html#format-examples includes this line:

    '{}, {}, {}'.format('a', 'b', 'c')  # 3.1+ only

This does in fact work in 2.7. I don't see anything special about this -- seems an entirely straightforward format.

----------
messages: 334385
nosy: mlm
priority: normal
severity: normal
status: open
title: Format Spec example says limited to 3.1+ but works in 2.7
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35831>
_______________________________________


More information about the New-bugs-announce mailing list