diff -r e948154af406 Lib/smtplib.py --- a/Lib/smtplib.py Sat Apr 13 18:00:04 2013 +0300 +++ b/Lib/smtplib.py Sat Apr 13 12:45:54 2013 -0400 @@ -222,12 +222,14 @@ If specified, `host' is the name of the remote host to which to connect. If specified, `port' specifies the port to which to connect. By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised - if the specified `host' doesn't respond correctly. If specified, - `local_hostname` is used as the FQDN of the local host. By default, - the local hostname is found using socket.getfqdn(). The - `source_address` parameter takes a 2-tuple (host, port) for the socket - to bind to as its source address before connecting. If the host is '' - and port is 0, the OS default behavior will be used. + if the specified `host' has a failure at the protocol level, and an + IOError is raised by the underlying socket if there are errors + at the network level. If specified, `local_hostname` is used as the FQDN + of the local host. By default, the local hostname is found using + socket.getfqdn(). The `source_address` parameter takes a 2-tuple + (host, port) for the socket to bind to as its source address before + connecting. If the host is '' and port is 0, the OS default behavior + will be used. """ self.timeout = timeout