Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
bpo-32417: Make timedelta arithmetic respect subclasses #10902
This will fix many major headaches for people implementing
Dec 7, 2018
@vstinner Thanks for your comments, sorry for the delay in addressing them - I put it off for a bit because this change likely needs wider discussion and I haven't had time to have that discussion with python-dev before now.
I've addressed your style concerns, rebased against master and started a thread on python-dev for discussion.
@gvanrossum That's the first commit, it's here (at the bottom of the diff). It's just a matter of switching to the C function that constructs either a