DEV Community

Discussion on: strings in python2 and python3

Collapse
 
cipharius profile image
Valts Liepiņš

Luckily you can type byte string literals in Python3: base64.b64encode(b'test')
That should make it as neat and simple as in Python2!

Collapse
 
tonetheman profile image
Tony Colston

Even better than mine! Good catch.