Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use is_Foo once we know other is Basic
After applying _sympify, we know that other.is_Basic is True so we can use the is_* attributes: >>> timeit('isinstance(a, Integer)','from sympy import S,Integer\na=S(3)') 0.21927933082330586 >>> timeit('a.is_Integer','from sympy import S,Integer\na=S(3)') 0.09357543617885256
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters