Most likely the method you are looking for is in
sympy/core/numbers.py. I would recommend taking a version of the
expression that has small numbers and using a debugger to figure out
what methods are called.

You should be aware also that if you just type something like 2**100
directly into Python, that doesn't involve SymPy at all and gets
evaluated by Python, which we cannot prevent. SymPy only comes into
play if one of the numbers is a SymPy type.

Aaron Meurer

On Mon, Jun 14, 2021 at 1:28 AM Michał Pawłowski
<michal.bozydar.pawlow...@gmail.com> wrote:
>
> Hello.
>
> I'm trying to modify sympy to avoid of hanging, when numer which is gonna to 
> be computed is tu large. I know how to raise exception, but In which file 
> should i look for power computing without eval?
>
> In core/numbers.py there are mothods for evaluation of numbers. But where 
> should I look for methods for not evaluated powers?
>
> Thanks
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sympy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/c091e73e-782a-4b83-9b16-23797465fb66n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BquCpa-x5kSjEiWtkwzH2F8Lz9Uea0ZHtsFLRiUhR7mw%40mail.gmail.com.

Reply via email to