Hi all,

I came across an annoying problem. In a Notebook, do

lazy_import("sage.misc", "all", "bla")

and then

bla? <tab>

resulting in

Traceback (most recent call last): File "", line 1, in File 
"_sage_input_47.py", line 10, in exec compile(u'print 
_support_.docstring("bla", globals(), system="sage")' + '\n', '', 'single') 
File "", line 1, in File 
"/Users/stefan/sage-5.10.beta5/devel/sagenb/sagenb/misc/support.py", line 
271, in docstring s += '**Definition:** %s'%sageinspect.sage_getdef(obj, 
obj_name) File 
"/Users/stefan/sage-5.10.beta5/local/lib/python2.7/site-packages/sage/misc/sageinspect.py",
 
line 1375, in sage_getdef spec = sage_getargspec(obj) File 
"/Users/stefan/sage-5.10.beta5/local/lib/python2.7/site-packages/sage/misc/sageinspect.py",
 
line 1301, in sage_getargspec proxy = 'def dummy' + 
_grep_first_pair_of_parentheses(source) + ':\n return' File 
"/Users/stefan/sage-5.10.beta5/local/lib/python2.7/site-packages/sage/misc/sageinspect.py",
 
line 721, in _grep_first_pair_of_parentheses raise SyntaxError("The given 
string does not contain balanced parentheses") SyntaxError: The given 
string does not contain balanced parentheses

The problem is in sage.misc.sageinspect.sage_getdef() trying to find 
parentheses. Since "bla" is a module, it doesn't have any.

Any suggestions for a solution?

--Stefan.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to