-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-106078: Convert _decimal
types to heap types
#106079
gh-106078: Convert _decimal
types to heap types
#106079
Conversation
Co-authored-by: Erlend E. Aasland [email protected]
Misc/NEWS.d/next/Library/2023-06-25-16-54-24.gh-issue-106078.cFnYUM.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM but there are some compiler warnings to be taken care of.
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit bb4e191 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: Erlend E. Aasland <[email protected]>
Can you please add tests for basic type qualities:
|
Refleaks looks good: 0:00:00 load avg: 2.73 Run tests sequentially
0:00:00 load avg: 2.73 [1/1] test_decimal
beginning 6 repetitions
123456
......
== Tests result: SUCCESS ==
1 test OK.
Total duration: 26.0 sec
Tests result: SUCCESS |
I found another interesting problem while testing. The following code will causes a segmentation fault: >>> import decimal
>>> tp = type(decimal.Context().flags) # SignalDict type
>>> tp() # Segmentation fault I guess that the problem is caused by accessing the wild pointer when executing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are currently two test classes for the C implementation: CWhitebox and SignatureTest. None of them are suitable for new tests?
Good point; I think the added tests can fit in the CWhitebox test case. |
I'll merge this later today after a refleak test. |
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 2f4f538 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
@kumaraditya303, let me amend the tests before merging. |
Good job, @CharlieZhao95! |
Thanks all! Let's move on to the next! :) |
_decimal
types to heap typesCo-authored-by: Erlend E. Aasland [email protected]
_decimal
extension module #106078