Re: [Python-3000] failed to compile Python-3.0b1 with gcc-4.3.0: Fatal Python error: Py_Initialize: can't initialize sys standard streams]

2008-06-26 Thread nirinA raseliarison
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

[Python-3000] about bytes

2008-06-26 Thread nirinA raseliarison
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'

Re: [Python-3000] about bytes

2008-06-26 Thread Martin v. Löwis
> 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

Re: [Python-3000] about bytes

2008-06-26 Thread Georg Brandl
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