Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-106078: Convert _decimal types to heap types#106079
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
CharlieZhao95 commented Jun 25, 2023 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Erlend E. Aasland erlend.aasland@protonmail.com
CharlieZhao95 commented Jun 25, 2023
Misc/NEWS.d/next/Library/2023-06-25-16-54-24.gh-issue-106078.cFnYUM.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kumaraditya303 left a comment
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.
bedevere-bot commented Jun 26, 2023
🤖 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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
erlend-aasland commented Jun 27, 2023
Can you please add tests for basic type qualities:
|
kumaraditya303 commented Jun 28, 2023
Refleaks looks good: 0:00:00 load avg: 2.73 Run tests sequentially0:00:00 load avg: 2.73 [1/1] test_decimalbeginning 6 repetitions123456......== Tests result: SUCCESS ==1 test OK.Total duration: 26.0 secTests result: SUCCESS |
Uh oh!
There was an error while loading. Please reload this page.
CharlieZhao95 commented Jun 28, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I found another interesting problem while testing. The following code will causes a segmentation fault: >>>importdecimal>>>tp=type(decimal.Context().flags) # SignalDict type>>>tp() # Segmentation faultI guess that the problem is caused by accessing the wild pointer when executing the |
serhiy-storchaka left a comment
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?
erlend-aasland commented Jun 28, 2023
Good point; I think the added tests can fit in the CWhitebox test case. |
Uh oh!
There was an error while loading. Please reload this page.
kumaraditya303 commented Jun 29, 2023
I'll merge this later today after a refleak test. |
bedevere-bot commented Jun 29, 2023
🤖 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. |
erlend-aasland commented Jun 29, 2023
@kumaraditya303, let me amend the tests before merging. |
serhiy-storchaka commented Jun 29, 2023 • edited by erlend-aasland
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by erlend-aasland
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland commented Jun 29, 2023
Good job, @CharlieZhao95! |
CharlieZhao95 commented Jun 29, 2023
Thanks all! Let's move on to the next! :) |
_decimaltypes to heap typesCo-authored-by: Erlend E. Aasland erlend.aasland@protonmail.com
_decimalextension module #106078