[Python-Dev] Re: adding a bytes sequence type to Python

Bill Janssen janssen at parc.com
Wed Aug 18 01:13:21 CEST 2004


Yes, that works for me.

Martin writes:
> If you also had
> 
>     var = bytes(u"foo")
> 
> then I guess people would prefer that. People who want to save typing
> can do
> 
>     b = bytes
> 
> and, given that the u prefix will be redundant, write
> 
>    var = b("foo")

Bill


More information about the Python-Dev mailing list