Programmatically discovering encoding types supported by codecs module

python at bdurham.com python at bdurham.com
Wed Mar 24 17:17:16 CET 2010


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-encodings

I'm looking for a way to programmatically generate this table
through some form of module introspection.

Ideas?

Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100324/72ad8920/attachment.html>


More information about the Python-list mailing list