Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue23784

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:Reloading tokenize module leads to error
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.4
process
Status:closedResolution:duplicate
Dependencies:Superseder: Reloading tokenize breaks tokenize.open()
View:23615
Assigned To:Nosy List: dmarks, serhiy.storchaka
Priority:normalKeywords:

Created on2015-03-26 11:17 bydmarks, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Messages (2)
msg239322 -(view)Author: David Marks (dmarks)Date: 2015-03-26 11:17
On 432 in tokenize.py there is an assignment_builtin_open = openFollowed in 434 with a redefinition of opendef open(filename):If the module is reloaded, _builtin_open gets reassigned to the new function and subsequent calls to _builtin_open fail.
msg239323 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2015-03-26 11:22
Fixed inissue23615.
History
DateUserActionArgs
2022-04-11 14:58:14adminsetgithub: 67972
2015-03-26 15:01:10r.david.murraysetsuperseder:Reloading tokenize breaks tokenize.open()
resolution: fixed -> duplicate
2015-03-26 12:33:16vstinnersetresolution: out of date -> fixed
2015-03-26 11:22:42serhiy.storchakasetstatus: open -> closed

nosy: +serhiy.storchaka
messages: +msg239323

resolution: out of date
stage: resolved
2015-03-26 11:17:57dmarkscreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp