Skip to content

add os.cpu_count() #62114

@neologix

Description

@neologix
mannequin
BPO 17914
Nosy @pitrou, @vstinner, @giampaolo, @nedbat, @mark-summerfield, @tpn, @ezio-melotti, @bitdancer, @serhiy-storchaka, @kushaldas, @sdrees
Files
  • issue17914.patch: Patch for adding os.cpu_count()
  • issue17914-1.patch: Modified patch using C implementation of cpu_count()
  • issue17914-2.patch
  • issue17914-3.patch: Modified patch to return None from C code
  • issue17914-4.patch: Patch modified to use proper macro, remove os.py and skiptest buildbots
  • cpu_count.patch
  • issue17914-5.patch: removed os.py, tyepcasting and redundant comments from previous patch
  • issue17914-6.patch: Change array size to 2, return value to 0(in C code), and removed IRIX
  • issue17914-7.patch
  • use_cpu_count.diff
  • 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 2013-06-28.18:21:53.122>
    created_at = <Date 2013-05-06.11:06:47.771>
    labels = ['easy', 'type-feature', 'expert-2to3']
    title = 'add os.cpu_count()'
    updated_at = <Date 2014-12-12.12:36:49.737>
    user = 'https://bugs.python.org/neologix'

    bugs.python.org fields:

    activity = <Date 2014-12-12.12:36:49.737>
    actor = 'mark'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-06-28.18:21:53.122>
    closer = 'neologix'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2013-05-06.11:06:47.771>
    creator = 'neologix'
    dependencies = []
    files = ['30217', '30220', '30223', '30226', '30236', '30241', '30246', '30282', '30284', '30319']
    hgrepos = []
    issue_num = 17914
    keywords = ['patch', 'easy']
    message_count = 60.0
    messages = ['188506', '188507', '188509', '188514', '188515', '188516', '188522', '188605', '188606', '188624', '188626', '188627', '188628', '188644', '188905', '188906', '188907', '188909', '188910', '188911', '188912', '188918', '188934', '188944', '188949', '188951', '188953', '188957', '188961', '188963', '188967', '188968', '189053', '189058', '189076', '189079', '189098', '189099', '189104', '189112', '189169', '189170', '189173', '189179', '189180', '189184', '189199', '189360', '189372', '189381', '189654', '189656', '189658', '189670', '189672', '189673', '192005', '232524', '232529', '232541']
    nosy_count = 14.0
    nosy_names = ['pitrou', 'vstinner', 'giampaolo.rodola', 'nedbat', 'mark', 'trent', 'ezio.melotti', 'r.david.murray', 'neologix', 'python-dev', 'serhiy.storchaka', 'kushal.das', 'dilettant', 'Yogesh.Chaudhari']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17914'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions