Last active
March 6, 2020 02:22
-
-
Save auscompgeek/b70cb7917cf161369dd6b6d58d2e91da to your computer and use it in GitHub Desktop.
math.copysign SystemError
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
>>> math.copysign((-1) ** 0.5, Fraction(-1, 1)) | |
TypeError: can't convert complex to float | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib/python3.8/numbers.py", line 291, in __float__ | |
return self.numerator / self.denominator | |
SystemError: PyEval_EvalFrameEx returned a result with an error set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment