
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2017-01-07 11:35 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| string_formatter_positional_only.patch | serhiy.storchaka,2017-01-07 11:35 | review | ||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 552 | closed | dstufft,2017-03-31 16:36 | |
| Messages (2) | |||
|---|---|---|---|
| msg284907 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2017-01-07 11:35 | |
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 NoneTypeError: format() missing 1 required positional argument: 'format_string' | |||
| msg285363 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2017-01-13 07:11 | |
New changesetd571d8cd4258 by Serhiy Storchaka in branch 'default':Issue#29193: A format string argument for string.Formatter.format()https://hg.python.org/cpython/rev/d571d8cd4258 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:41 | admin | set | github: 73379 |
| 2017-03-31 16:36:07 | dstufft | set | pull_requests: +pull_request832 |
| 2017-01-13 07:11:32 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2017-01-13 07:11:07 | python-dev | set | nosy: +python-dev messages: +msg285363 |
| 2017-01-13 07:06:33 | serhiy.storchaka | set | assignee:serhiy.storchaka |
| 2017-01-07 11:35:11 | serhiy.storchaka | create | |