[issue17878] There is no way to get a list of available codecs
Marc-Andre Lemburg
report at bugs.python.org
Thu May 2 17:40:54 CEST 2013
Marc-Andre Lemburg added the comment:
On 02.05.2013 16:53, Marc-Andre Lemburg wrote:
>
> Marc-Andre Lemburg added the comment:
>
> On 02.05.2013 16:45, Walter Dörwald wrote:
>> ...
>> The search function can't return a list of codec names in this case, as the list is infinite.
>
> True.
>
> The search object will have to be allowed to raise a
> NotImplementedError or some other error/return value
> to signal that the list of supported codecs is not available.
>
> Note that the search object should only return a list of
> supported canonical encoding names with .list_codecs(),
> not all possible ones :-)
Scratch that last sentence. Returning CodecInfo instances,
as I originally wrote, is a better way to go.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17878>
_______________________________________
More information about the Python-bugs-list
mailing list