"convert" string to bytes without changing data (encoding)

Neil Cerutti neilc at norwich.edu
Wed Mar 28 22:56:49 CEST 2012


On 2012-03-28, Ross Ridge <rridge at csclub.uwaterloo.ca> wrote:
> Evan Driscoll  <driscoll at cs.wisc.edu> wrote:
>> So yes, you can say that pretending there's not a mapping of
>> strings to internal representation is silly, because there is.
>> However, there's nothing you can say about that mapping.
>
> I'm not the one labeling anything as being silly.  I'm the one
> labeling the things as bullshit, and that's what you're doing
> here.  I can in fact say what the internal byte string
> representation of strings is any given build of Python 3.  Just
> because I can't say what it would be in an imaginary
> hypothetical implementation doesn't mean I can never say
> anything about it.

I am in a similar situation viz a viz my wife's undergarments.

-- 
Neil Cerutti



More information about the Python-list mailing list