#8224: help(w) is broken for infinite word w defined by a callable
-----------------------------+----------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.3
Component: documentation | Keywords: help
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
The following works :
{{{
sage: w = Word(range(10))
sage: help(w)
}}}
but this one :
{{{
sage: w = Word(lambda n:n)
sage: w
word:
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,...
sage: help(w)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/Users/slabbe/Applications/sage-4.3.2/devel/sage-
combinat/sage/combinat/words/<ipython console> in <module>()
/Users/slabbe/Applications/sage-4.3.2/local/lib/python2.6/site-
packages/sage/misc/sagedoc.pyc in help(module)
1202 Welcome to Sage ...
1203 """
-> 1204 if module:
1205 python_help(module)
1206 else:
TypeError: an integer is required
}}}
neither the following :
{{{
sage: from itertools import repeat
sage: w = Word(repeat(4))
sage: w
word: 4444444444444444444444444444444444444444...
sage: help(w)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/Users/slabbe/Applications/sage-4.3.2/devel/sage-
combinat/sage/combinat/words/<ipython console> in <module>()
/Users/slabbe/Applications/sage-4.3.2/local/lib/python2.6/site-
packages/sage/misc/sagedoc.pyc in help(module)
1202 Welcome to Sage ...
1203 """
-> 1204 if module:
1205 python_help(module)
1206 else:
TypeError: an integer is required
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8224>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.