on Fri, 20 Jun 2008 08:47:26 +0400
Georgij Kondratjev wrote:
>On Friday 20 June 2008 06:04:44 Benjamin Peterson wrote:
>> On Thu, Jun 19, 2008 at 8:18 PM, nirinA raseliarison
>>
>> <[EMAIL PROTECTED]> wrote:
>> > hello all,
>> > i tried to build Python3.0b1 but the make process hangs
>> > while ru
why the following behavior:
>>> b=b'thisisbytes'
>>> b[0] == b't'
False
>>> b[0]
116
i expected same thing as:
>>> b.startswith(b't')
True
>>> b[0:1] == b't'
True
>>> b[0:1]
b't'
>>> b[:1]
b't'
and this is a bit curious:
>>> b[2:5]
b'
> so, how do you deal with bytes in these cases?
Set your locale correctly so that the filename is properly decoded
as a string. Then, bytes will not show up.
Regards,
Martin
___
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mai
nirinA raseliarison schrieb:
why the following behavior:
>>> b=b'thisisbytes'
>>> b[0] == b't'
False
>>> b[0]
116
i expected same thing as:
>>> b.startswith(b't')
True
>>> b[0:1] == b't'
True
>>> b[0:1]
b't'
>>> b[:1]
b't'
and this is a bit