Changes between Version 5 and Version 9 of Ticket #26311


Ignore:
Timestamp:
01/22/19 12:46:31 (15 months ago)
Author:
jdemeyer
Comment:

Replying to embray:

Yeesh, that thread on bpo is a mess... :(

Wait until you see the code. DRY clearly does not apply to the CPython code base: I had to make the same fix 3 times.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26311

    • Property Report Upstream changed from Reported upstream. No feedback yet. to Reported upstream. Developers acknowledge bug.
  • Ticket #26311 – Description

    v5 v9  
    6565}}}
    6666
    67 So it does not properly handle custom types that implement `__float__`. Reported upstream: https://bugs.python.org/issue35707
     67So it does not properly handle custom types that implement `__float__`.
     68
     69'''Reported upstream''':
     70- https://bugs.python.org/issue35707
     71- https://github.com/python/cpython/pull/11636
    6872
    6973In the meantime I don't see that there's much to be done except to always wrap Sage types in `float()` before passing them to time functions (or, more extreme, provide our own wrappers for common time functions...)