Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in documentation for SimpleXMLRPCServer #45493

Closed
frankmillman mannequin opened this issue Sep 12, 2007 · 2 comments
Closed

Bug in documentation for SimpleXMLRPCServer #45493

frankmillman mannequin opened this issue Sep 12, 2007 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@frankmillman
Copy link
Mannequin

frankmillman mannequin commented Sep 12, 2007

BPO 1152
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2007-09-12.18:06:07.437>
created_at = <Date 2007-09-12.05:21:35.882>
labels = ['docs']
title = 'Bug in documentation for SimpleXMLRPCServer'
updated_at = <Date 2007-09-12.18:06:07.435>
user = 'https://bugs.python.org/FrankMillman'

bugs.python.org fields:

activity = <Date 2007-09-12.18:06:07.435>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2007-09-12.18:06:07.437>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2007-09-12.05:21:35.882>
creator = 'FrankMillman'
dependencies = []
files = []
hgrepos = []
issue_num = 1152
keywords = []
message_count = 2.0
messages = ['55836', '55849']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'FrankMillman']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1152'
versions = ['Python 2.5']

@frankmillman
Copy link
Mannequin Author

frankmillman mannequin commented Sep 12, 2007

I spotted a minor bug in the documentation to SimpleXMLRPCServer.

Background:
xmlrpclib.py has the following -

\# This class is available as ServerProxy and Server.  New code 

should
# use ServerProxy, to avoid confusion.
#
...
class ServerProxy:
...
Server = ServerProxy

The bug:
Section 18.25.1 SimpleXMLRPCServer Objects
...
Example:
...
The following client code will call the methods made available by
the preceding server:
import xmlrpclib
s = xmlrpclib.Server('http://localhost:8000')

It should say:
s = xmlrpclib.ServerProxy('http://localhost:8000')

@frankmillman frankmillman mannequin added the docs Documentation in the Doc dir label Sep 12, 2007
@birkenfeld birkenfeld self-assigned this Sep 12, 2007
@birkenfeld
Copy link
Member

Fixed in rev. 58114.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant