This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients mark.dickinson, skrah
Date 2009-11-07.09:51:26
SpamBayes Score 0.0017342322
Marked as misclassified No
Message-id <1257587488.65.0.148889938106.issue7278@psf.upfronthosting.co.za>
In-reply-to
Content
In the following case, Decimal() and int() behave differently. I wonder
if this is intentional:

>>> from decimal import *
>>> x = Decimal(2)
>>> y = Decimal(x)
>>> id(x) == id(y)
False
>>> 
>>> x = int(2)
>>> y = int(x)
>>> id(x) == id(y)
True
>>>
History
Date User Action Args
2009-11-07 09:51:28skrahsetrecipients: + skrah, mark.dickinson
2009-11-07 09:51:28skrahsetmessageid: <1257587488.65.0.148889938106.issue7278@psf.upfronthosting.co.za>
2009-11-07 09:51:27skrahlinkissue7278 messages
2009-11-07 09:51:26skrahcreate