New submission from Stefan Krah <stefan-use...@bytereef.org>: 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 >>> ---------- messages: 95015 nosy: mark.dickinson, skrah severity: normal status: open title: decimal.py: New instance vs. new reference _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7278> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com