mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
[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.
This commit is contained in:
parent
99714cf9d0
commit
7acb7b40ba
1 changed files with 1 additions and 0 deletions
|
@ -340,6 +340,7 @@ objects, they are converted to \class{DateTime} objects internally, so only
|
|||
|
||||
\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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue