You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat) #45361
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/freddrake'closed_at=<Date2007-11-21.00:55:13.090>created_at=<Date2007-08-25.17:27:41.660>labels= ['library']
title="pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)"updated_at=<Date2008-01-06.22:29:45.331>user='https://bugs.python.org/nnorwitz'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/neal/python/dev/py3k/Lib/site.py", line 350, in __call__return pydoc.help(*args, **kwds)
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1685, in __call__self.help(request)
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1729, in helpelse: doc(request, 'Help on %s:')
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1512, in doc
pager(render_doc(thing, title, forceload))
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1490, in
render_doc
return title % desc +'\n\n'+ text.document(object, name)
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 319, in documentif inspect.ismodule(object): returnself.docmodule(*args)
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1076, in
docmodule
contents.append(self.document(value, key, name))
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 320, in documentif inspect.isclass(object): returnself.docclass(*args)
File "/home/neal/python/dev/py3k/Lib/pydoc.py", line 1126, in docclass
mro = deque(inspect.getmro(object))
TypeError: 'NoneType' object is not iterable
Activity
nnorwitz commentedon Aug 25, 2007
help(pyexpat) causes an exception:
tiran commentedon Nov 8, 2007
It's not a problem with pydoc but a problem in the pyexpat module. I
believe that the C code is broken. See for yourself:
>>> dir(pyexpat.XMLParserType) ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'xZK\x08']There is an issue in the method list. Since most lines of pyexpat were
written by fdrake I'm assigning the bug to him.
[-]pydoc doesn't work on pyexpat[/-][+]pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)[/+]tiran commentedon Nov 21, 2007
Fixed in r59083
The sentinel in the methods list of XMLparsetype was missing.