Author belopolsky
Recipients belopolsky, lemburg, loewis, vstinner
Date 2010-11-16.23:14:55
SpamBayes Score 6.60309e-06
Marked as misclassified No
Message-id <AANLkTi=y2uaFa1DRinJp__bHdjJskyO6foYJ2DHqF5D0@mail.gmail.com>
In-reply-to <1289948085.02.0.450866318383.issue10435@psf.upfronthosting.co.za>
Content
On Tue, Nov 16, 2010 at 5:54 PM, Marc-Andre Lemburg
<report@bugs.python.org> wrote:
>
> Marc-Andre Lemburg <mal@egenix.com> added the comment:
>
> Please note that PyCodec_Encode()/PyCodec_Decode() will return whatever the codec returns for these operations.
>
> The codec system is not limited to converting between Unicode and bytes only.

Not according to the latest reST documentation:

"""
* Encoding converts a string object to a bytes object using a
particular character set encoding (e.g., cp1252 or iso-8859-1).

* Decoding converts a bytes object encoded using a particular
character set encoding to a string object.
""" http://docs.python.org/dev/library/codecs.html?highlight=codecs#codecs.Codec.encode

> A typical example is a same-type codec such as rot13 that only transforms Unicode data.

I thought rot13 would only transform English (or Latin) alphabet.
History
Date User Action Args
2010-11-16 23:14:57belopolskysetrecipients: + belopolsky, lemburg, loewis, vstinner
2010-11-16 23:14:55belopolskylinkissue10435 messages
2010-11-16 23:14:55belopolskycreate