[New-bugs-announce] [issue28005] Broken encoding modules are silently skipped.

Eric Snow report at bugs.python.org
Wed Sep 7 14:17:08 EDT 2016


New submission from Eric Snow:

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.

----------
components: Interpreter Core
messages: 274856
nosy: eric.snow
priority: normal
severity: normal
stage: test needed
status: open
title: Broken encoding modules are silently skipped.
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28005>
_______________________________________


More information about the New-bugs-announce mailing list