[Python-ideas] RFC: bytestring as a str representation [was: a new bytestring type?]

Antoine Pitrou solipsis at pitrou.net
Tue Jan 7 19:47:52 CET 2014


On Tue, 07 Jan 2014 10:10:19 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/07/2014 09:57 AM, Antoine Pitrou wrote:
> > On Tue, 07 Jan 2014 08:48:05 -0800
> > Ethan Furman <ethan at stoneleaf.us> wrote:
> >>     - ascii that has to be converted (ints stored as ascii text)
> >>     - encoded text (character and memo fields)
> >
> > What is the difference supposed to be between those two?
> 
> The method used for conversion and the return type:
> 
>    - ascii-encoded text:  b'123' --> int(123)
>    - encoded text (ascii or russian or asian or ...):  b'abc' --> u'abc'

I'm sorry, I still don't parse this. What is it in Python 3.3 that
prevents you from doing this?

Regards

Antoine.




More information about the Python-ideas mailing list