[New-bugs-announce] [issue3690] sys.getsizeof wrong for Py3k bool objects

Robert Schuppenies report at bugs.python.org
Tue Aug 26 22:52:03 CEST 2008

New submission from Robert Schuppenies <robert.schuppenies at gmail.com>:

sys.getsizeof returns wrong results for bool objects in Python 3000.
Although bool objects use the same datatype as long objects, they are
allocated differently. Thus, the inherited long_sizeof implementation is
incorrect. The applied patch addresses this issue.

components: Interpreter Core
files: bool_sizeof.patch
keywords: patch
messages: 71996
nosy: schuppenies
severity: normal
status: open
title: sys.getsizeof wrong for Py3k bool objects
type: behavior
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file11264/bool_sizeof.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list