sympy/sympy — pull request #1865 by srjoglekar246 (2013-03-04 11:56:57+00:00)
Title: Added is_literal, modified literal_symbol

literal_symbol now raises ValueError is arg is not a literal.
is_literal has been added to check if an expression is a literal or not.