This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrabarnett
Recipients ezio.melotti, georg.brandl, lemburg, mrabarnett, pitrou
Date 2009-05-02.16:22:02
SpamBayes Score 5.530942e-05
Marked as misclassified No
Message-id <1241281324.18.0.837565501172.issue5902@psf.upfronthosting.co.za>
In-reply-to
Content
How about a 'full' form and a 'key' form generated by the function:

def codec_key(name):
    return name.lower().replace("-", "").replace("_", "")

The key form would be the key to an available codec, and the key
generated by a user-supplied codec name would have to match one of those
keys.

For example:

Full: "UTF-8", key: "utf8".

Full: "ISO-8859-1", key: "iso88591".
History
Date User Action Args
2009-05-02 16:22:04mrabarnettsetrecipients: + mrabarnett, lemburg, georg.brandl, pitrou, ezio.melotti
2009-05-02 16:22:04mrabarnettsetmessageid: <1241281324.18.0.837565501172.issue5902@psf.upfronthosting.co.za>
2009-05-02 16:22:02mrabarnettlinkissue5902 messages
2009-05-02 16:22:02mrabarnettcreate