You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError
a=sin('1')
^^^
Error running function call 'sin' with args ['1'] and kwargs {}: must be real number, not str
('TypeError', " a=sin('1')\n ^^^\nError running function call 'sin' with args ['1'] and kwargs {}: must be real number, not str")
('TypeError', " a=sin('1')\n ^^^\nat expr='a=sin('1')'")
('TypeError', " a=sin('1')\nat expr='a=sin('1')'")
('TypeError', " a=sin('1')\nat expr='a=sin('1')'")
I am a bit confused as to why the code results in 4 errors instead of one. To me, it seems that only expreval.error[0] should be generated. Is this a bug or a feature? Or maybe I am missing something?
Thank you
PS: I am using Python 3.7
The text was updated successfully, but these errors were encountered:
bek0s
changed the title
Strange behaviour when asteval throws and exception
Strange behaviour when asteval throws an exception
Nov 12, 2019
Hi @bek0s, this should be resolved by https://github.com/newville/asteval/pull/64. Hopefully @newville will cut a new release soon so you can update the package using pip. @newville it looks like you need to close this issue too, since I don't have the ability to do so.
Hello,
I have the following code:
When I run it, it produces the following output:
I am a bit confused as to why the code results in 4 errors instead of one. To me, it seems that only
expreval.error[0]
should be generated. Is this a bug or a feature? Or maybe I am missing something?Thank you
PS: I am using Python 3.7
The text was updated successfully, but these errors were encountered: