New submission from Antoine Pitrou <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue14520>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com