Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2911 by [email protected]: requesting help for a symbol raises an error
http://code.google.com/p/sympy/issues/detail?id=2911

asking for help on an expression/function gives some help:

help(2+x)
Help on Add in module sympy.core.add object:
...


But doing the same on a symbol raises an error:

help(x)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python26\lib\site.py", line 429, in __call__
    return pydoc.help(*args, **kwds)
  File "C:\python26\lib\pydoc.py", line 1723, in __call__
    self.help(request)
  File "C:\python26\lib\pydoc.py", line 1770, in help
    else: doc(request, 'Help on %s:')
  File "C:\python26\lib\pydoc.py", line 1508, in doc
    pager(render_doc(thing, title, forceload))
  File "C:\python26\lib\pydoc.py", line 1503, in render_doc
    return title % desc + '\n\n' + text.document(object, name)
  File "C:\python26\lib\pydoc.py", line 327, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "C:\python26\lib\pydoc.py", line 1212, in docclass
    lambda t: t[1] == 'method')
  File "C:\python26\lib\pydoc.py", line 1162, in spill
    name, mod, object))
  File "C:\python26\lib\pydoc.py", line 328, in document
    if inspect.isroutine(object): return self.docroutine(*args)
  File "C:\python26\lib\pydoc.py", line 1273, in docroutine
    doc = getdoc(object) or ''
  File "C:\python26\lib\pydoc.py", line 83, in getdoc
    result = inspect.getdoc(object) or inspect.getcomments(object)
  File "C:\python26\lib\inspect.py", line 579, in getcomments
    lines, lnum = findsource(object)
  File "C:\python26\lib\inspect.py", line 568, in findsource
    if pat.match(lines[lnum]): break
IndexError: list index out of range


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to