Martin Teichmann schrieb am 18.05.21 um 23:41:
> >>> solve(x**2-2/3)
> [-0.816496580927726, 0.816496580927726]
> 
> That went wrong. We wanted to have a symbolic result, not a numeric solution! 
> How did that come about? Well, that's the point of discussion: 2/3 gets 
> immediately turned into 0.66666..., and sympy has no clue where this is 
> coming from.

So, do I understand correctly that you want a way to disable the
compile-time optimiser in Python that does the constant folding?

Stefan

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DPHABHUG337IOIWJ3PU6XK5K7X4FAIUV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to