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 arigo
Recipients arigo, mark.dickinson, rhettinger, skrah
Date 2017-02-11.18:06:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486836389.87.0.17507772846.issue29534@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry!  It should be repr(a) inside the print.  Here is the fixed version:

    class X(Decimal):
        def __init__(self, a):
            print('__init__:', repr(a))
    X.from_float(42.5)   # __init__: Decimal('42.5')

    X.from_float(42)     # with _pydecimal: __init__: 42
                         # with _decimal:   __init__: Decimal('42')
History
Date User Action Args
2017-02-11 18:06:29arigosetrecipients: + arigo, rhettinger, mark.dickinson, skrah
2017-02-11 18:06:29arigosetmessageid: <1486836389.87.0.17507772846.issue29534@psf.upfronthosting.co.za>
2017-02-11 18:06:29arigolinkissue29534 messages
2017-02-11 18:06:29arigocreate