[issue17878] There is no way to get a list of available codecs

Marc-Andre Lemburg report at bugs.python.org
Thu May 2 16:53:14 CEST 2013


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 :-)

----------

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


More information about the Python-bugs-list mailing list