[issue14520] Buggy Decimal.__sizeof__

Antoine Pitrou report at bugs.python.org
Sat Apr 7 12:55:39 CEST 2012


New submission from Antoine Pitrou <pitrou at free.fr>:

I'm not sure __sizeof__ is implemented correctly:

>>> from decimal import Decimal
>>> import sys
>>> d = Decimal(123456789123456798123456789123456798123456789123456798)
>>> d
Decimal('123456789123456798123456789123456798123456789123456798')
>>> sys.getsizeof(d)
24

... looks too small.

----------
assignee: skrah
messages: 157726
nosy: pitrou, skrah
priority: normal
severity: normal
status: open
title: Buggy Decimal.__sizeof__
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14520>
_______________________________________


More information about the Python-bugs-list mailing list