what is this kind of string: b'string' ?

Stef Mientki stef.mientki at gmail.com
Wed Sep 1 17:32:57 EDT 2010


 in winpdb I see strings like this:

>>>a = b'string'
>>>a
'string'
>>> type(a)
<type 'str'>

what's the "b" doing in front of the string ?

thanks,
Stef Mientki



More information about the Python-list mailing list