- Notifications
You must be signed in to change notification settings - Fork748
Closed
Labels
Description
Environment
- Pythonnet version: Version: 3.0.1
- Python version: 3.10
- Operating System: Any (Windows/Linux)
- .NET Runtime: 6.0.0
Details
Trying to substract System Decimal from Python Decimal (the other way works fine)
TODO
import both system decimal and python decimal
create a separate variable from each type
subtract System Decimal from Python Decimal
fromSystemimportDecimalasSysDecimalfromdecimalimportDecimalasPyDecimalsys_dec=SysDecimal(1)py_dec=PyDecimal(1)print(str(sys_dec-py_dec ))# works fineprint(str(py_dec-sys_dec))# crashes
- error thrown
Traceback (most recent call last):
File "", line 1, in
RecursionError: maximum recursion depth exceeded while calling a Python object