summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2023-02-05 12:18:56 (GMT)
committerGitHub <noreply@github.com>2023-02-05 12:18:56 (GMT)
commitcf89c16486a4cc297413e17d32082ec4f389d725 (patch)
treed88bede9a7283f82a514d1e86c5ce4b7db7ef8b6 /Lib/enum.py
parent7cbcfbe2fffebfc57c9b50ae937bfbb896401fba (diff)
downloadcpython-cf89c16486a4cc297413e17d32082ec4f389d725.zip
cpython-cf89c16486a4cc297413e17d32082ec4f389d725.tar.gz
cpython-cf89c16486a4cc297413e17d32082ec4f389d725.tar.bz2
[3.11] gh-101266: Fix __sizeof__ for subclasses of int (GH-101394) (#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.)
Diffstat (limited to 'Lib/enum.py')
0 files changed, 0 insertions, 0 deletions