◐ Shell
clean mode source ↗

bpo-41710: Add private _PyDeadline_Get() function by vstinner · Pull Request #28674 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 1 commit into

python:mainfrom

vstinner:deadline

Oct 1, 2021

Merged

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

vstinner

merged 1 commit into

python:mainfrom

vstinner:deadline

Conversation

@vstinner

@vstinner vstinner commented

Oct 1, 2021

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

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

Reviewers

@abalkin abalkin Awaiting requested review from abalkin

@pganssle pganssle Awaiting requested review from pganssle pganssle is a code owner

@rhettinger rhettinger Awaiting requested review from rhettinger

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner @the-knights-who-say-ni @bedevere-bot