[issue9730] base64 docs refers to strings instead of bytes
Terry J. Reedy
report at bugs.python.org
Fri Sep 3 22:55:34 CEST 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Specifically, in section 17.6. base64..., near bottom, example should be
>>> import base64
>>> encoded = base64.b64encode(b'data to be encoded') #hang
>>> data = base64.b64decode(encoded)
b'data to be encoded'
with the first and third 'b' prefixes added.
I confirmed that doctest works with above.
I am a bit puzzled about Sphinx and 3.x comment, as doctest just need a plain ascii file and does not care how it was produced. (I used browser Save As text file function.) However, moot now.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list