Re: [Python-Dev] Getting a list of registered codecs

2013-04-30 Thread Paul Moore
On 30 April 2013 10:42, M.-A. Lemburg wrote: > It would be possible to get a list of registered codec search functions, > but there's no API to ask the search functions for a list of supported > codecs. > OK, so there's no way to determine in advance what values of enc will work in bytestr.decod

Re: [Python-Dev] Getting a list of registered codecs

2013-04-30 Thread M.-A. Lemburg
On 30.04.2013 11:52, Paul Moore wrote: > On 30 April 2013 10:42, M.-A. Lemburg wrote: > >> It would be possible to get a list of registered codec search functions, >> but there's no API to ask the search functions for a list of supported >> codecs. >> > > OK, so there's no way to determine in ad

Re: [Python-Dev] Getting a list of registered codecs

2013-04-30 Thread M.-A. Lemburg
On 30.04.2013 11:15, Paul Moore wrote: > Before I raise a bug for this, can someone confirm if I've simply missed > something? I don't see any way, either in the docs or in the helpstrings > from the codecs, of listing the codecs that have been registered. > > FWIW, I picked this up when I was loo

Re: [Python-Dev] Getting a list of registered codecs

2013-04-30 Thread Steven D'Aprano
On Tue, Apr 30, 2013 at 10:15:58AM +0100, Paul Moore wrote: > Before I raise a bug for this, can someone confirm if I've simply missed > something? I don't see any way, either in the docs or in the helpstrings > from the codecs, of listing the codecs that have been registered. > > FWIW, I picked t

[Python-Dev] Getting a list of registered codecs

2013-04-30 Thread Paul Moore
Before I raise a bug for this, can someone confirm if I've simply missed something? I don't see any way, either in the docs or in the helpstrings from the codecs, of listing the codecs that have been registered. FWIW, I picked this up when I was looking at writing a simple encoding converter, and