Re: [sage-devel] finding out if something is a valid keyword argument

2010-07-20 Thread Mike Hansen
On Tue, Jul 20, 2010 at 4:17 PM, Marco Streng wrote: > 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 ther

[sage-devel] finding out if something is a valid keyword argument

2010-07-20 Thread Marco Streng
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 I