[New-bugs-announce] [issue4403] regression from 2.6: smtplib.py requiring ascii for sending messages

"Martin v. Löwis" martin at v.loewis.de
Mon Nov 24 06:50:09 CET 2008


> Is there a good reason for this?

Most definitely. In Python 2.x, the string literal denotes
a byte string, whereas in 3.x, it is a character string.
It's not possible to send a character string directly over
the network; try encoding it.

It might be considered a bug that sendmail accepts a string
at all as long as the string only consists of ASCII characters;
it should reject such strings as well.


More information about the New-bugs-announce mailing list