Skip to content

Instantly share code, notes, and snippets.

@auscompgeek
Last active March 6, 2020 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auscompgeek/b70cb7917cf161369dd6b6d58d2e91da to your computer and use it in GitHub Desktop.
Save auscompgeek/b70cb7917cf161369dd6b6d58d2e91da to your computer and use it in GitHub Desktop.
math.copysign SystemError
>>> 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