On Wed, Feb 26, 2020 at 10:41 AM Matt Billenstein via pypy-dev <
pypy-dev@python.org> wrote:

> You can think of 'u' as being the default in python3 where 'b' was the
> default in python2 (not ascii) - but most stdlib functions would accept
> bytes as strings.
>
> So in python3, you don't need 'u' and you only occasionally need 'b' or
> to convert between the two.  The defaults are generally better for the
> programming most people do imo.
>
I think you mostly don't want u'foo' in 3.x or b'foo' in 2.x - except when
you're writing code intended to run on both.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to