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 st33med
Recipients georg.brandl, st33med
Date 2008-08-14.02:24:18
SpamBayes Score 3.1405378e-08
Marked as misclassified No
Message-id <1218680660.59.0.981908565171.issue3550@psf.upfronthosting.co.za>
In-reply-to
Content
I am confused by the socket docs for Python 3000. It says to pass a
string through socket.send or socket.sendall, however, it does not seem
to account for the ASCII to Unicode transition. Trying to send an
ordinary Python 3k string through socket.send fails with a TypeError
stating that the first arg must be bytes or buffers but not a str.

Besides the misdocumented sockets, I would think it would be easier to
translate a Unicode string to ASCII, however, I fear this might violate
the "Explicit is better than implicit" rule and RFC tables.
History
Date User Action Args
2008-08-14 02:24:20st33medsetrecipients: + st33med, georg.brandl
2008-08-14 02:24:20st33medsetmessageid: <1218680660.59.0.981908565171.issue3550@psf.upfronthosting.co.za>
2008-08-14 02:24:19st33medlinkissue3550 messages
2008-08-14 02:24:18st33medcreate