[ python-Bugs-1751932 ] struni: help() is broken

SourceForge.net noreply at sourceforge.net
Wed Jul 18 08:43:20 CEST 2007


Bugs item #1751932, was opened at 2007-07-11 10:27
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1751932&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 3000
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Christian Heimes (tiran)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: struni: help() is broken

Initial Comment:
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


----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2007-07-18 02:43

Message:
Logged In: YES 
user_id=149084
Originator: NO

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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1751932&group_id=5470


More information about the Python-bugs-list mailing list