← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 eric.snow
收信人 eric.snow
日期 2016-09-07.18:17:08
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1473272228.69.0.973027040329.issue28005@psf.upfronthosting.co.za>
In-reply-to
内容
In Lib/encodings/__init__.py, search_function() looks up an encoding by name.  It loads the encoding by importing the corresponding module in the encodings package.  If there's an ImportError while importing that module then the encoding gets silently ignored.  I noticed this while working on issue #16384.

While I don't have any direct interest in the matter, I expect that it would be more useful to users if we issued a warning or some other printed message when an encoding is ignored.
历史
日期 用户 动作 参数
2016-09-07 18:17:08eric.snow修改recipients: + eric.snow
2016-09-07 18:17:08eric.snow修改messageid: <1473272228.69.0.973027040329.issue28005@psf.upfronthosting.co.za>
2016-09-07 18:17:08eric.snow链接issue28005 messages
2016-09-07 18:17:08eric.snow创建