Keep it to 3.0 behavior because it answers the question of life, universe
and everything.

On Tue, May 5, 2009 at 11:26 PM, Dino Viehland <[email protected]> wrote:

>  We have an active bug against our new bytes implementation for 2.6.
> Currently if you do:
>
>
>
> b'***'[0]
>
>
>
> you get back 42 as an int.  This matches the 3.0 behavior of bytes but in
> CPython 2.6 you get back ‘*’.
>
>
>
> We could choose to match either form and then we could change it for 3.0.
> But because we only have Unicode strings today it seems like we might want
> to match the 3.0 behavior.  Of course people might write code expecting the
> 2.6 behavior and they might be explicitly using byte literals as part of
> migrating to being compatible w/ 3.0.
>
>
>
> Does anyone have an opinion on what we should do here?
>
>
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
nomadlife.org
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to