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

xmlrpc.client - default 'SlowParser' not defined #48590

Closed
mwatkins mannequin opened this issue Nov 17, 2008 · 3 comments
Closed

xmlrpc.client - default 'SlowParser' not defined #48590

mwatkins mannequin opened this issue Nov 17, 2008 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@mwatkins
Copy link
Mannequin

mwatkins mannequin commented Nov 17, 2008

BPO 4340
Nosy @vstinner

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 = None
closed_at = <Date 2010-01-31.01:45:54.402>
created_at = <Date 2008-11-17.20:55:58.882>
labels = ['invalid', 'library']
title = "xmlrpc.client - default 'SlowParser' not defined"
updated_at = <Date 2010-01-31.01:45:54.400>
user = 'https://bugs.python.org/mwatkins'

bugs.python.org fields:

activity = <Date 2010-01-31.01:45:54.400>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2010-01-31.01:45:54.402>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2008-11-17.20:55:58.882>
creator = 'mwatkins'
dependencies = []
files = []
hgrepos = []
issue_num = 4340
keywords = []
message_count = 3.0
messages = ['75980', '76059', '98588']
nosy_count = 2.0
nosy_names = ['vstinner', 'mwatkins']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4340'
versions = ['Python 3.0']

@mwatkins
Copy link
Mannequin Author

mwatkins mannequin commented Nov 17, 2008

Running example code from docs:

http://docs.python.org/dev/3.0/library/xmlrpc.client.html#example-of-
client-usage

z% python
Python 3.0rc2+ (py3k:67152, Nov  7 2008, 16:48:55) 
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> str(None)
'None'
>>> from xmlrpc.client import ServerProxy, Error
>>> server = ServerProxy("http://betty.userland.com")
>>> print(server)
<ServerProxy for betty.userland.com/RPC2>
>>> print(server)
<ServerProxy for betty.userland.com/RPC2>
>>> print(server.examples.getStateName(41))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 1095, in 
__call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 1353, in 
__request
    verbose=self.__verbose
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 1136, in 
request
    return self._parse_response(resp, None)
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 1235, in 
_parse_response
    p, u = self.getparser()
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 1145, in 
getparser
    return getparser(use_datetime=self._use_datetime)
  File "/usr/local/lib/python3.0/xmlrpc/client.py", line 975, in 
getparser
    parser = SlowParser(target)
NameError: global name 'SlowParser' is not defined

No definition of SlowParser in client.py:

/src/py3k/Lib/xmlrpc% grep -n SlowParser client.py
116: SlowParser Slow but safe standard parser (based on xmllib)
975: parser = SlowParser(target)

@mwatkins mwatkins mannequin added the stdlib Python modules in the Lib dir label Nov 17, 2008
@mwatkins
Copy link
Mannequin Author

mwatkins mannequin commented Nov 19, 2008

Running the same code today passes, despite the fact I'm still running
the same svn version. Bizarre.

However the core reported issue - SlowParser being undefined in the
module, remains.

@vstinner
Copy link
Member

I'm unable to reproduce the bug on py3k nor python3.1. Reopen the issue if the bug reappears.

@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
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant