Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Programmatically discovering encoding types supported by codecs module
Benjamin Kaplan
3/24/2010 5:19:00 PM
On Wed, Mar 24, 2010 at 12:17 PM, <python@bdurham.com> wrote:
> Is there a way to programmatically discover the encoding types supported by
> the codecs module?
>
> For example, the following link shows a table with Codec, Aliases, and
> Language columns.
>
http://docs.python.org/library/codecs.html#standard...
>
> I'm looking for a way to programmatically generate this table through some
> form of module introspection.
>
> Ideas?
>
> Malcolm
> --
According to my brief messing around with the REPL,
encodings.aliases.aliases is a good place to start. I don't know of
any way to get the Language column, but at the very least that will
give you most of the supported encodings and any aliases they have.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Programmatically discovering encoding types supported by codecs module
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password