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 arigo, mark.dickinson, rhettinger, skrah
Date 2017-02-11.16:38:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486831080.74.0.888792946851.issue29534@psf.upfronthosting.co.za>
In-reply-to
Content
I get the the same output, perhaps I misunderstand something here:

>>> from _decimal import *
>>> class X(Decimal):
...         def __init__(self, a):
...             print('__init__:', a)
... 
>>> X.from_float(42.5)
__init__: 42.5
Decimal('42.5')
>>> X.from_float(42)
__init__: 42
Decimal('42')
>>> 
>>> 
>>> from _pydecimal import *
>>> class X(Decimal):
...         def __init__(self, a):
...             print('__init__:', a)
... 
>>> X.from_float(42.5) 
__init__: 42.5
Decimal('42.5')
>>> X.from_float(42) 
__init__: 42
Decimal('42')
History
Date User Action Args
2017-02-11 16:38:00skrahsetrecipients: + skrah, arigo, rhettinger, mark.dickinson
2017-02-11 16:38:00skrahsetmessageid: <1486831080.74.0.888792946851.issue29534@psf.upfronthosting.co.za>
2017-02-11 16:38:00skrahlinkissue29534 messages
2017-02-11 16:38:00skrahcreate