Skip to content

time.sleep (floatsleep()) should use clock_nanosleep() on Linux #65501

Description

@shankarunni
BPO21302
Nosy@vstinner, @4kir4, @1st1, @eryksun, @Livius90
PRs
  • [3.10] bpo-21302: Add clock_nanosleep() implementation for time.sleep() in Linux #28077
  • bpo-21302: Add clock_nanosleep() implementation for time.sleep() #28111
  • bpo-21302: Update time.sleep() doc for clock_nanosleep() #28311
  • bpo-21302: Add Waitable timer implementation for time.sleep() in Windows #28341
  • bpo-21302: Add _PyTime_AsNanoseconds() #28350
  • bpo-21302: time.sleep() uses waitable timer on Windows #28483
  • bpo-21302: Add nanosleep() implementation for time.sleep() in Unix #28526
  • bpo-21302: Add nanosleep() implementation for time.sleep() in Unix #28545
  • Files
  • wait.py
  • bench.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee=Noneclosed_at=<Date2021-09-25.12:37:55.425>created_at=<Date2014-04-18.20:12:03.043>labels= ['type-bug', 'library', '3.11']
    title='time.sleep (floatsleep()) should use clock_nanosleep() on Linux'updated_at=<Date2021-10-11.08:30:28.782>user='https://bugs.python.org/shankarunni'

    bugs.python.org fields:

    activity=<Date2021-10-11.08:30:28.782>actor='vstinner'assignee='none'closed=Trueclosed_date=<Date2021-09-25.12:37:55.425>closer='vstinner'components= ['Library (Lib)']
    creation=<Date2014-04-18.20:12:03.043>creator='shankarunni'dependencies= []
    files= ['50289', '50294']
    hgrepos= []
    issue_num=21302keywords= ['patch']
    message_count=32.0messages= ['216799', '216814', '217225', '217226', '217227', '217233', '217235', '401108', '401701', '401706', '401824', '402279', '402437', '402438', '402440', '402441', '402442', '402448', '402618', '402619', '402630', '402632', '403528', '403544', '403550', '403568', '403569', '403581', '403583', '403610', '403632', '403633']
    nosy_count=7.0nosy_names= ['vstinner', 'akira', 'python-dev', 'yselivanov', 'eryksun', 'shankarunni', 'Livius']
    pr_nums= ['28077', '28111', '28311', '28341', '28350', '28483', '28526', '28545']
    priority='normal'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype='behavior'url='https://bugs.python.org/issue21302'versions= ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions