cpython
cpython copied to clipboard
gh-140025: Fix `queue.SimpleQueue.__sizeof__()`
- Update SimpleQueue.sizeof() to include the memory used by its internal buffer.
- add a unit test.
Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions. Thankyou !
- Issue: gh-140025