On Thu, May 15, 2008 at 3:06 AM, Paul Moore <[EMAIL PROTECTED]> wrote:
> On 15/05/2008, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>> Consider code that gets an encoding passed in as a
>> variable e. It knows it has a bytes instance b. To encode b from bytes
>> to str (unicode), it can use s = b.decode(e).
>
> To encode, you use .decode? It's nice to know it's not just me who has
> trouble keeping the terminology straight...

It takes a lot of effort, and constant vigilance, to keep
encode/decode straight in one's head.  Maybe this means they need to
be renamed to something like tobytes() and tostring()?

tostring() is probably not the best choice though - too much baggage from java.

-param
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to