`foo.is_number` is the positive way to state `not foo.free_symbols` and has
the advantage of exiting sooner if an expression is *not* a number (which
is likely the more common use case)


On Tue, Dec 24, 2013 at 2:51 PM, Aaron Meurer <notifications@github.com>wrote:

> In sympy/polys/polytools.py:
>
> > @@ -4081,6 +4081,13 @@ def degree(f, *gens, **args):
> >      """
> >      options.allowed_flags(args, ['gen', 'polys'])
> >
> > +    F = sympify(f)
>
> I think what you actually want is just not F.free_symbols.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sympy/sympy/pull/2706/files#r8546461>
> .
>