Skip to content

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

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

Merged
merged 1 commit into from
Oct 1, 2021
Merged

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

merged 1 commit into from
Oct 1, 2021

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().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants