[Python-checkins] r45751 - python/trunk/Doc/lib/libxmlrpclib.tex

andrew.kuchling python-checkins at python.org
Thu Apr 27 14:34:41 CEST 2006


Author: andrew.kuchling
Date: Thu Apr 27 14:34:39 2006
New Revision: 45751

Modified:
   python/trunk/Doc/lib/libxmlrpclib.tex
Log:
[Bug #1477102] Add necessary import to example

This may be a useful style question for the docs -- should examples show
the necessary imports, or should it be assumed that the reader will
figure it out?  In the What's New, I'm not consistent but usually opt
for omitting the imports.

Modified: python/trunk/Doc/lib/libxmlrpclib.tex
==============================================================================
--- python/trunk/Doc/lib/libxmlrpclib.tex	(original)
+++ python/trunk/Doc/lib/libxmlrpclib.tex	Thu Apr 27 14:34:39 2006
@@ -340,6 +340,7 @@
 
 \begin{verbatim}
 # simple test program (from the XML-RPC specification)
+from xmlrpclib import ServerProxy
 
 # server = ServerProxy("http://localhost:8000") # local server
 server = ServerProxy("http://betty.userland.com")


More information about the Python-checkins mailing list