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 alex.henrie
Recipients alex.henrie
Date 2020-01-06.20:22:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578342169.21.0.342179864502.issue39237@roundup.psfhosted.org>
In-reply-to
Content
The delta_new function in _datetimemodule.c currently contains the following code:

    /* Round to nearest whole # of us, and add into x. */
    double whole_us = round(leftover_us);
    int x_is_odd;
    PyObject *temp;

    whole_us = round(leftover_us);

The second call to the round function produces the same result as the first call and can therefore be safely eliminated.
History
Date User Action Args
2020-01-06 20:22:49alex.henriesetrecipients: + alex.henrie
2020-01-06 20:22:49alex.henriesetmessageid: <1578342169.21.0.342179864502.issue39237@roundup.psfhosted.org>
2020-01-06 20:22:49alex.henrielinkissue39237 messages
2020-01-06 20:22:48alex.henriecreate