Stephen J. Turnbull wrote: > You chose the context of round-tripping *across > encodings*, not me. Please stick with your context.
Maybe we have different ideas of what the problem is. I thought the problem is to take arbitrary byte sequences coming in as command-line args and represent them as unicode strings in such a way that the can be losslessly converted back into the same byte strings. I was just pointing out that if you do this in a way that involves some sort of dynamically generated mapping, then it won't work if the round trip spans more than one Python session -- and that there are any number of ways that the data could get from one session to another, many of them not involving anything that one would recognise as a unicode encoding in the conventional sense. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
