This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Dmitry.Jemerov, JingCheng.LIU, docs@python, ezio.melotti, orsenthil, pitrou, r.david.murray, stutzbach, terry.reedy
Date 2010-09-03.20:55:32
SpamBayes Score 7.028545e-07
Marked as misclassified No
Message-id <1283547334.94.0.598926205062.issue9730@psf.upfronthosting.co.za>
In-reply-to
Content
PATCH
Specifically, in section 17.6. base64..., near bottom, example should be

>>> import base64
>>> encoded = base64.b64encode(b'data to be encoded') #hang
>>> encoded
b'ZGF0YSB0byBiZSBlbmNvZGVk'
>>> data = base64.b64decode(encoded)
>>> data
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.
History
Date User Action Args
2010-09-03 20:55:35terry.reedysetrecipients: + terry.reedy, orsenthil, pitrou, stutzbach, ezio.melotti, r.david.murray, Dmitry.Jemerov, docs@python, JingCheng.LIU
2010-09-03 20:55:34terry.reedysetmessageid: <1283547334.94.0.598926205062.issue9730@psf.upfronthosting.co.za>
2010-09-03 20:55:32terry.reedylinkissue9730 messages
2010-09-03 20:55:32terry.reedycreate