smichr/sympy — comment on commit 5c889b4098b0431b7aabc6d4bd31683ae3979117
File: sympy/simplify/simplify.py line 1037
By smichr:

or maybe better is_Integer