"convert" string to bytes without changing data (encoding)
rridge at csclub.uwaterloo.ca
Wed Mar 28 20:22:50 CEST 2012
Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
>The right way to convert bytes to strings, and vice versa, is via
>encoding and decoding operations.
If you want to dictate to the original poster the correct way to do
things then you don't need to do anything more that. You don't need to
pretend like Chris Angelico that there's isn't a direct mapping from
the his Python 3 implementation's internal respresentation of strings
to bytes in order to label what he's asking for as being "silly".
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rridge at csclub.uwaterloo.ca
More information about the Python-list