Skip to content

time.sleep() should use nanosleep() if available #58189

Closed

Description

@vstinner
BPO 13981
Nosy @vstinner
Dependencies
  • bpo-13882: PEP 410: Use decimal.Decimal type for timestamps
  • 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 = None
    closed_at = <Date 2012-03-02.21:40:58.665>
    created_at = <Date 2012-02-09.23:00:33.850>
    labels = ['library']
    title = 'time.sleep() should use nanosleep() if available'
    updated_at = <Date 2012-03-02.21:40:58.664>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2012-03-02.21:40:58.664>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-03-02.21:40:58.665>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2012-02-09.23:00:33.850>
    creator = 'vstinner'
    dependencies = ['13882']
    files = []
    hgrepos = []
    issue_num = 13981
    keywords = []
    message_count = 2.0
    messages = ['153000', '154804']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'Arfrever', 'rosslagerwall']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue13981'
    versions = ['Python 3.3']

    Activity

    1. vstinner commented on Feb 9, 2012

      @vstinner
      MemberAuthor

      With the PEP-410, it is possible to store timestamps with a resolution of 1 nanosecond. Python should use nanosleep() if the function is available for time.sleep().

      This issue depends on issue bpo-13882.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Feb 9, 2012
    3. vstinner commented on Mar 2, 2012

      @vstinner
      MemberAuthor

      The PEP-410 has been rejected, so I close the issue.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions