Skip to content

gh-67795: Remove _PyTime_FromSecondsDouble() function - #162906

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:pytime_seconds
Open

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:pytime_seconds

Conversation

@vstinner

@vstinner vstinner commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

os.timerfd_settime() now raises ValueError instead of OverflowError if initial or interval is not-a-number (NaN).

  • os.timerfd_settime() now uses _PyTime_FromSecondsObject() instead of _PyTime_FromSecondsDouble(): it is more precise for fractions.Fraction and decimal.Decimal types.
  • Remove internal function _PyTime_FromSecondsDouble(): it's no longer used.
os.timerfd_settime() now raises ValueError instead of OverflowError
if initial or interval is not-a-number (NaN).

* os.timerfd_settime() now uses _PyTime_FromSecondsObject() instead
  of _PyTime_FromSecondsDouble(): it is more precise for
  fractions.Fraction and decimal.Decimal types.
* Remove internal function _PyTime_FromSecondsDouble(): it's no
  longer used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant