This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: struni: help() is broken
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: kbk Nosy List: christian.heimes, kbk
Priority: normal Keywords:

Created on 2007-07-11 14:27 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg32477 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-07-11 14:27
The help() system doesn't work any more in the py3k-struni branch.

>>> help(str)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/heimes/dev/python/py3k-struni/Lib/site.py", line 350, in __call__
    return pydoc.help(*args, **kwds)
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1686, in __call__
    self.help(request)
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1730, in help
    else: doc(request, 'Help on %s:')
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1513, in doc
    pager(render_doc(thing, title, forceload))
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1491, in render_doc
    return title % desc + '\n\n' + text.document(object, name)
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 320, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1203, in docclass
    lambda t: t[1] == 'method')
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1151, in spill
    name, mod, object))
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 321, in document
    if inspect.isroutine(object): return self.docroutine(*args)
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 1271, in docroutine
    return decl + '\n' + (doc and self.indent(doc).rstrip() + '\n')
  File "/home/heimes/dev/python/py3k-struni/Lib/pydoc.py", line 991, in indent
    if lines: lines[-1] = lines[-1].rstrip()
TypeError: 'itertools.imap' object is unsubscriptable
msg32478 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2007-07-18 06:43
I believe I fixed this 14 July at r56361 in the 'p3yk' branch.

http://mail.python.org/pipermail/python-3000-checkins/2007-July/001141.html

It should get to struni in the next merge from p3yk.  Reopen if it doesn't get there soon.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45170
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-11 14:27:41christian.heimescreate