What does a b prefix before a python string means ?

Posted by kriss on Stack Overflow See other posts from Stack Overflow or by kriss
Published on 2010-04-07T13:28:36Z Indexed on 2010/04/07 13:33 UTC
Read the original article Hit count: 202

Filed under:

In a python source code I stumbled upon I've seen a small b before a string like in:

b"abcdef"

I know of u prefix that means unicode and r prefix that means raw.

What does the b stand for and in which kind of source code is it useful as it seems to be exactly like a plain string without any prefix ?

© Stack Overflow or respective owner

Related posts about python