Skip to content

RecursionError when substracting System Decimal from Python Decimal #2240

Closed
@sensokame

Description

@sensokame

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

    from System import Decimal as SysDecimal
    from decimal import Decimal as PyDecimal
    sys_dec = SysDecimal(1)
    py_dec = PyDecimal(1)
    print(str(sys_dec - py_dec )) # works fine
    print(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy