Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue25280

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:Message can be formatted twice in importlib
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.6, Python 3.4, Python 3.5
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: serhiy.storchakaNosy List: brett.cannon, eric.snow, ncoghlan, python-dev, serhiy.storchaka
Priority:normalKeywords:patch

Created on2015-09-30 13:32 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
importlib_format_verbose_message.patchserhiy.storchaka,2015-09-30 13:32review
Messages (3)
msg251937 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2015-09-30 13:32
In importlib a verbose message can be formatted twice, the first time before passing it to _verbose_message(), and the second time in _verbose_message(), Example:$ python -v...>>> open('{0}.pyc', 'wb').close()>>> __import__('{0}')Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "<frozen importlib._bootstrap>", line 969, in _find_and_load  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked  File "<frozen importlib._bootstrap_external>", line 658, in exec_module  File "<frozen importlib._bootstrap_external>", line 869, in get_code  File "<frozen importlib._bootstrap_external>", line 440, in _validate_bytecode_header  File "<frozen importlib._bootstrap_external>", line 368, in _verbose_messageIndexError: tuple index out of rangeProposed patch fixes the issue.
msg252009 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2015-10-01 08:57
New changesetda42b38f7470 by Serhiy Storchaka in branch '3.4':Issue#25280: Import trace messages emitted in verbose (-v) mode are nohttps://hg.python.org/cpython/rev/da42b38f7470New changeset10c13441bf8d by Serhiy Storchaka in branch '3.5':Issue#25280: Import trace messages emitted in verbose (-v) mode are nohttps://hg.python.org/cpython/rev/10c13441bf8dNew changesete377d568928b by Serhiy Storchaka in branch 'default':Issue#25280: Import trace messages emitted in verbose (-v) mode are nohttps://hg.python.org/cpython/rev/e377d568928b
msg252011 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2015-10-01 09:20
Thank you Brett for your review.
History
DateUserActionArgs
2022-04-11 14:58:22adminsetgithub: 69467
2015-10-01 09:20:34serhiy.storchakasetstatus: open -> closed
messages: +msg252011

assignee:serhiy.storchaka
resolution: fixed
stage: patch review -> resolved
2015-10-01 08:57:07python-devsetnosy: +python-dev
messages: +msg252009
2015-09-30 13:32:17serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp