[issue14262] Allow using decimals as arguments to `timedelta`

STINNER Victor report at bugs.python.org
Tue Mar 20 12:35:48 CET 2012

STINNER Victor <victor.stinner at gmail.com> added the comment:

"I'm getting an `n_hours` variable for some component of my system.
And this value happens to come as a `Decimal`."

Can't you modify your program to use timedelta instead of Decimal for n_hours?


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list