Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-41710: Add private _PyDeadline_Get() function #28674

Merged
merged 1 commit into from Oct 1, 2021
Merged

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 1, 2021

Add a private C API for deadlines: add _PyDeadline_Init() and
_PyDeadline_Get() functions.

Add also the _PyTime_Add() function which clamps the result on overflow.

https://bugs.python.org/issue41710

Add a private C API for deadlines: add _PyDeadline_Init() and
_PyDeadline_Get() functions.

* Add _PyTime_Add() and _PyTime_Mul() functions which compute t1+t2
  and t1*t2 and clamp the result on overflow.
* _PyTime_MulDiv() now uses _PyTime_Add() and _PyTime_Mul().
@vstinner vstinner merged commit 833fdf1 into python:main Oct 1, 2021
12 checks passed
@vstinner vstinner deleted the deadline branch Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants