[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +832

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d571d8cd4258 by Serhiy Storchaka in branch 'default':
Issue #29193: A format string argument for string.Formatter.format()
https://hg.python.org/cpython/rev/d571d8cd4258

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

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 "", line 1, in 
  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'

--
components: Library (Lib)
files: string_formatter_positional_only.patch
keywords: patch
messages: 284907
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Remove support of format_string as keyword argument in 
string.Formatter().format()
type: enhancement
versions: Python 3.7
Added file: 
http://bugs.python.org/file46189/string_formatter_positional_only.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com