GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-101266: Fix __sizeof__ for subclasses of int by mdickinson · Pull Request #101394 · python/cpython Conversation
|
|
@ionite34 This should fix the @corona10 Do you have enough spare cycles to review? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Darnit; this fails for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That's because we had somewhat bogus numbers for I'm going to remove the "backport to 3.10" label: the bug does technically still exist in 3.10, but it's messier to fix - it looks like we would need to add a dedicated |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks I will take a look |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mdickinson We have to resolve the conflict before reviewing this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @corona10 for commit 9cd5d01 🤖 If you want to schedule another build, you need to add the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks! Updated. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @corona10 for commit ae6229b 🤖 If you want to schedule another build, you need to add the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm,
Just one more thing,
Would you like to change the PyBool_Type initialization with C99 style through this chance?
PyTypeObject PyBool_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "bool", .tp_basicsize = offsetof(struct _longobject, long_value.ob_digit), .tp_itemsize = sizeof(digit), .tp_dealloc = bool_dealloc, ... .tp_vectorcall = bool_vectorcall
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Good idea! It may make sense to do that in a separate PR, though: I was hoping to backport this bugfix PR to 3.11, and the C99 style change sounds like a cosmetic update that shouldn't be backported. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Great! Feel free to merge anytime you want :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @mdickinson, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hmm. Looks like I'll need to do a manual cherry-pick backport to 3.11, excluding the last few commits. I'll do that later today. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-101579 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
See #101579 for a manual backport to 3.11 (cherry-picking the commits up to but excluding the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…101579) Fix the behaviour of the `__sizeof__` method (and hence the results returned by `sys.getsizeof`) for subclasses of `int`. Previously, `int` subclasses gave identical results to the `int` base class, ignoring the presence of the instance dictionary. (Manual backport of #101394 to the Python 3.11 branch.)
…ythonGH-101394) (python#101579)" This reverts commit cf89c16.
|
This PR was the first one to fail refleak bot ( See #101766 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hmm. We could try reverting it in a PR, and then running the refleak buildbots on that PR to see what happens. It seems rather implausible that it was this particular PR that introduced the refleak, though. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, seems suspicious. I will investigate! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.