Title: xmlrpc.client - default 'SlowParser' not defined
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: mwatkins, vstinner
Priority: normal Keywords:

Created on 2008-11-17 20:55 by mwatkins, last changed 2010-01-31 01:45 by vstinner. This issue is now closed.

Messages (3)
msg75980 - (view) Author: Mike Watkins (mwatkins) Date: 2008-11-17 20:55
Running example code from docs:

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)
>>> from xmlrpc.client import ServerProxy, Error
>>> server = ServerProxy("")
>>> print(server)
<ServerProxy for>
>>> print(server)
<ServerProxy for>
>>> print(server.examples.getStateName(41))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/xmlrpc/", line 1095, in 
    return self.__send(self.__name, args)
  File "/usr/local/lib/python3.0/xmlrpc/", line 1353, in 
  File "/usr/local/lib/python3.0/xmlrpc/", line 1136, in 
    return self._parse_response(resp, None)
  File "/usr/local/lib/python3.0/xmlrpc/", line 1235, in 
    p, u = self.getparser()
  File "/usr/local/lib/python3.0/xmlrpc/", line 1145, in 
    return getparser(use_datetime=self._use_datetime)
  File "/usr/local/lib/python3.0/xmlrpc/", line 975, in 
    parser = SlowParser(target)
NameError: global name 'SlowParser' is not defined

No definition of SlowParser in

/src/py3k/Lib/xmlrpc% grep -n SlowParser
116:  SlowParser     Slow but safe standard parser (based on xmllib)
975:            parser = SlowParser(target)
msg76059 - (view) Author: Mike Watkins (mwatkins) Date: 2008-11-19 17:13
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.
msg98588 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-01-31 01:45
I'm unable to reproduce the bug on py3k nor python3.1. Reopen the issue if the bug reappears.
Date User Action Args
2010-01-31 01:45:54vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg98588

resolution: not a bug
2008-11-19 17:13:50mwatkinssetmessages: + msg76059
2008-11-17 20:55:58mwatkinscreate