[Python-ideas] Query available codecs and error handlers
Nick Coghlan
ncoghlan at gmail.com
Fri Aug 29 11:23:07 CEST 2014
On 29 August 2014 18:44, M.-A. Lemburg <mal at egenix.com> wrote:
> On 29.08.2014 09:49, Nick Coghlan wrote:
>> Agreed it would be good to make the info more readily available,
>> though (I had actually hoped to get some proposed revisions together
>> for the codecs module docs before 3.4 went out the door, but alas, it
>> was not to be).
>
> Since it's not a feature, the doc change could potentially
> be backported.
Right, I think that's probably worth doing. The tricky part is
figuring out *how* to change them.
At the moment, there isn't an especially clear distinction between the
text encoding specific parts (e.g. several of the error handlers, most
of the encodings) and the underlying general purpose codecs machinery.
However, beyond a vague notion of "that distinction should be made
clearer in the docs now that it affects which codecs can be used with
str.encode, bytes.decode and bytearray.decode, and which can *only* be
used with codecs.encode and codecs.decode", I don't have any specific
suggestions to make.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list