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.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2017-01-07.11:35:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483788911.55.0.222681922661.issue29193@psf.upfronthosting.co.za>
In-reply-to
Content
Passing a format string as a keyword argument to string.Formatter.format() was deprecated in 3.5 (issue23671). Proposed patch finishes the deprecation period and converts a warning to an error.

Python 3.5-3.6:

>>> string.Formatter().format(format_string='foo: {foo}', foo=123)
__main__:1: DeprecationWarning: Passing 'format_string' as keyword argument is deprecated
'foo: 123'

Python 3.7:

>>> string.Formatter().format(format_string='foo: {foo}', foo=123)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/string.py", line 179, in format
    "argument: 'format_string'") from None
TypeError: format() missing 1 required positional argument: 'format_string'
History
Date User Action Args
2017-01-07 11:35:11serhiy.storchakasetrecipients: + serhiy.storchaka
2017-01-07 11:35:11serhiy.storchakasetmessageid: <1483788911.55.0.222681922661.issue29193@psf.upfronthosting.co.za>
2017-01-07 11:35:11serhiy.storchakalinkissue29193 messages
2017-01-07 11:35:11serhiy.storchakacreate