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 serhiy.storchaka
Recipients mark.dickinson, serhiy.storchaka
Date 2018-02-08.09:31:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518082304.22.0.467229070634.issue32794@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe use PyNumber_Check() to distinguish these two cases?

    if (PyNumber_Check(obj))
        return PyNumber_Float(obj);
    PyErr_SetString(PyExc_TypeError, "not a number");
    return NULL;
History
Date User Action Args
2018-02-08 09:31:44serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson
2018-02-08 09:31:44serhiy.storchakasetmessageid: <1518082304.22.0.467229070634.issue32794@psf.upfronthosting.co.za>
2018-02-08 09:31:44serhiy.storchakalinkissue32794 messages
2018-02-08 09:31:44serhiy.storchakacreate