Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue29193

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Remove support of format_string as keyword argument in string.Formatter().format()
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: serhiy.storchakaNosy List: python-dev, serhiy.storchaka
Priority:normalKeywords:patch

Created on2017-01-07 11:35 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
string_formatter_positional_only.patchserhiy.storchaka,2017-01-07 11:35review
Pull Requests
URLStatusLinkedEdit
PR 552closeddstufft,2017-03-31 16:36
Messages (2)
msg284907 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)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)(Python triager)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
DateUserActionArgs
2022-04-11 14:58:41adminsetgithub: 73379
2017-03-31 16:36:07dstufftsetpull_requests: +pull_request832
2017-01-13 07:11:32serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-01-13 07:11:07python-devsetnosy: +python-dev
messages: +msg285363
2017-01-13 07:06:33serhiy.storchakasetassignee:serhiy.storchaka
2017-01-07 11:35:11serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp