blob: 385ff4bcc190b5ad1528f41d37244148a2d09b89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"""Cache some things."""
from functools import lru_cache
from sympy import sympify as _orig_sympify
from public import public
@public
@lru_cache(maxsize=256, typed=True)
def sympify(
a, locals=None, convert_xor=True, strict=False, rational=False, evaluate=None
):
return _orig_sympify(a, locals, convert_xor, strict, rational, evaluate)
|