Author eric.snow
Recipients eric.snow
Date 2016-09-07.18:17:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473272228.69.0.973027040329.issue28005@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-07 18:17:08eric.snowsetrecipients: + eric.snow
2016-09-07 18:17:08eric.snowsetmessageid: <1473272228.69.0.973027040329.issue28005@psf.upfronthosting.co.za>
2016-09-07 18:17:08eric.snowlinkissue28005 messages
2016-09-07 18:17:08eric.snowcreate