Hi,

I have a question that I thought was a simple python question, but I was unable to find the answer on the internet.

Suppose I want to find out if "root" is a valid keyword argument for the "is_square" function of an object "a". Is there a good way to do this?

I tried the following for Integer, but it didn't work.

sage: from inspect import getargspec
sage: getargspec(Integer.is_square)
TypeError: arg is not a Python function
sage: getargspec(5.is_square)
TypeError: arg is not a Python function

See also http://trac.sagemath.org/sage_trac/ticket/9094

Thanks,
Marco

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to