sympy/sympy — pull request #1317 by smichr (2012-05-27 02:24:05+00:00)
Title: beautify the error message for inconsistent assumptions

Before

sympy.core.facts.InconsistentAssumptions: {'real': False, 'nonzero': True, 'irra
tional': False, 'nonpositive': False, 'composite': False, 'prime': False, 'odd':
False, 'noninteger': False, 'negative': False, 'nonnegative': False, 'zero': Fa
lse, 'rational': False, 'positive': False, 'integer': False, 'even': False}, integer=True

After (sorted by keys and wrapped and brief explanation given about offending values):

sympy.core.facts.InconsistentAssumptions:
The assumption 'integer=True' is inconsistent with the existing value
of 'False' in the current knowledge base for this object:
{'composite': False, 'even': False, 'integer': False, 'irrational':
False, 'negative': False, 'noninteger': False, 'nonnegative': False,
'nonpositive': False, 'nonzero': True, 'odd': False, 'positive':
False, 'prime': False, 'rational': False, 'real': False, 'zero':
False}