New submission from Mark Dickinson:

Low-priority issue, possibly not worth fixing at all, but maybe worth recording.

sys.getsizeof(0) currently reports 24 on a 64-bit machine using 30-bit limbs. 
That's inaccurate, since we're actually allocating 28 bytes for 0 as part of 
the small-int cache. PyLong_FromLong also always requests at least one limb.

----------
assignee: mark.dickinson
components: Interpreter Core
messages: 275987
nosy: mark.dickinson
priority: low
severity: normal
stage: needs patch
status: open
title: sys.getsizeof(0) is incorrect
type: behavior
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28098>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to