diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2023-02-05 10:02:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 10:02:53 (GMT) |
commit | 39017e04b55d4c110787551dc9a0cb753f27d700 (patch) | |
tree | 43c39ae5fa296b5bf195614330b0441d6c96db7a /Python/pymath.c | |
parent | 9b60ee976a6b66fe96c2d39051612999c26561e5 (diff) | |
download | cpython-39017e04b55d4c110787551dc9a0cb753f27d700.zip cpython-39017e04b55d4c110787551dc9a0cb753f27d700.tar.gz cpython-39017e04b55d4c110787551dc9a0cb753f27d700.tar.bz2 |
gh-101266: Fix __sizeof__ for subclasses of int (#101394)
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.
<!-- gh-issue-number: gh-101266 -->
* Issue: gh-101266
<!-- /gh-issue-number -->
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions