Title: RecursionError when substracting System Decimal from Python Decimal · Issue #2240 · pythonnet/pythonnet · GitHub
Open Graph Title: RecursionError when substracting System Decimal from Python Decimal · Issue #2240 · pythonnet/pythonnet
X Title: RecursionError when substracting System Decimal from Python Decimal · Issue #2240 · pythonnet/pythonnet
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 syste...
Open Graph 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 othe...
X 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 othe...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2240
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RecursionError when substracting System Decimal from Python Decimal","articleBody":"### Environment\r\n\r\n- Pythonnet version: Version: 3.0.1\r\n- Python version: 3.10\r\n- Operating System: Any (Windows/Linux)\r\n- .NET Runtime: 6.0.0\r\n\r\n### Details\r\n\r\n- Trying to substract System Decimal from Python Decimal (the other way works fine)\r\n\r\n _TODO_\r\n\r\n- import both system decimal and python decimal\r\n- create a separate variable from each type\r\n- subtract System Decimal from Python Decimal\r\n\r\n```python\r\n from System import Decimal as SysDecimal\r\n from decimal import Decimal as PyDecimal\r\n sys_dec = SysDecimal(1)\r\n py_dec = PyDecimal(1)\r\n print(str(sys_dec - py_dec )) # works fine\r\n print(str(py_dec - sys_dec)) # crashes\r\n```\r\n\r\n- error thrown\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nRecursionError: maximum recursion depth exceeded while calling a Python object\r\n","author":{"url":"https://github.com/sensokame","@type":"Person","name":"sensokame"},"datePublished":"2023-09-19T14:19:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2240/pythonnet/issues/2240"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:48eacbfb-468a-3c64-018a-ad78642fa9aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9288:355A4F:AC77E6:E59353:697016B6 |
| html-safe-nonce | fec06fbcbb99775b840871c1d272273f841fd869d361f6ec38d5e50f6b38d8a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjg4OjM1NUE0RjpBQzc3RTY6RTU5MzUzOjY5NzAxNkI2IiwidmlzaXRvcl9pZCI6Ijc4NzU1NDg3ODM1OTQ5Njg3NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd4b0b4edc0384cb61ca905516639826609cd49af1dd1a037a2da854a0281e55 |
| hovercard-subject-tag | issue:1903104978 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/2240/issue_layout |
| twitter:image | https://opengraph.githubassets.com/863c328c01f9eddad0eb4a0d32dc68ae692c04924ee01360c7668bf56c7fbb13/pythonnet/pythonnet/issues/2240 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/863c328c01f9eddad0eb4a0d32dc68ae692c04924ee01360c7668bf56c7fbb13/pythonnet/pythonnet/issues/2240 |
| og:image:alt | 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 othe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sensokame |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width