diff Doc/tutorial/stdlib.rst @ 42654:74446509f0f2

Another merge. Only doc stuff was affected (but this aligns the UTF-32 codec changes in trubk and branch). Hopefully the Py3k glossary wasn't different from the trunk one.
author Guido van Rossum <guido@python.org>
date Fri, 17 Aug 2007 18:30:38 +0000
parents 9e1529bf0442
children 95d6fe2e8e0e
line wrap: on
line diff
--- a/Doc/tutorial/stdlib.rst	Fri Aug 17 17:14:17 2007 +0000
+++ b/Doc/tutorial/stdlib.rst	Fri Aug 17 18:30:38 2007 +0000
@@ -158,12 +158,14 @@
    >>> import smtplib
    >>> server = smtplib.SMTP('localhost')
    >>> server.sendmail('soothsayer@example.org', 'jcaesar@example.org',
-   """To: jcaesar@example.org
-   From: soothsayer@example.org
+   ... """To: jcaesar@example.org
+   ... From: soothsayer@example.org
+   ...
+   ... Beware the Ides of March.
+   ... """)
+   >>> server.quit()
 
-   Beware the Ides of March.
-   """)
-   >>> server.quit()
+(Note that the second example needs a mailserver running on localhost.)
 
 
 .. _tut-dates-and-times: