Opened 15 years ago

Closed 15 years ago

#728 closed defect (fixed)

sage_inspect broken

Reported by: Martin Albrecht Owned by: William Stein
Priority: major Milestone: sage-2.8.6
Component: user interface Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

This is SAGE 2.8.5:

sage: A = random_matrix(ZZ,3,3)
sage: A.lll?
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
 ... File "/usr/local/sage-2.8.1/local/lib/python2.5/site-packages/sage/misc/sageinspect.py", line 252, in sage_getargspec
    args, varargs, varkw = inspect.getargs(func_obj.func_code)
UnboundLocalError: local variable 'func_obj' referenced before assignment
sage: e = 1
sage: e.additive_order?

  File "<stdin>", line 1, in <module>
 ... File "/usr/local/sage-2.8.1/local/lib/python2.5/site-packages/sage/misc/sageinspect.py", line 252, in sage_getargspec
    args, varargs, varkw = inspect.getargs(func_obj.func_code)
UnboundLocalError: local variable 'func_obj' referenced before assignment

Change History (2)

comment:1 Changed 15 years ago by Mike Hansen

What platform do these errors occur on?

Both of the examples work fine for me on 64-bit Linux.

comment:2 Changed 15 years ago by William Stein

Resolution: fixed
Status: newclosed

I fixed this; it happened on os x.

Note: See TracTickets for help on using tickets.