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 r.david.murray
Recipients JTMoon79, docs@python, r.david.murray
Date 2011-01-19.02:10:55
SpamBayes Score 2.224999e-08
Marked as misclassified No
Message-id <1295403058.22.0.853259499446.issue10942@psf.upfronthosting.co.za>
In-reply-to
Content
This is indeed a doc problem, although there was some discussion of working toward a method rename.  See issue 8047 (but be prepared to read a novel to understand why tostring returns bytes...)  The doc for 3.2 is slightly clearer, but both 3.1 and 3.2 could be made clearer by referring to an 'encoded byte string' rather than just an 'encoded string'.  (An encoded string has to be a byte string, but that isn't obvious unless you've dealt with encode/decode a bunch.)

Technically this could be closed as a duplicate of issue 8047, since that issue proposes that the API fix (which would include the doc change) be backported to 3.1.  But no one has proposed a patch there, so at a minimum the 3.1 docs should be clarified.
History
Date User Action Args
2011-01-19 02:10:58r.david.murraysetrecipients: + r.david.murray, docs@python, JTMoon79
2011-01-19 02:10:58r.david.murraysetmessageid: <1295403058.22.0.853259499446.issue10942@psf.upfronthosting.co.za>
2011-01-19 02:10:56r.david.murraylinkissue10942 messages
2011-01-19 02:10:55r.david.murraycreate