Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSD support for multiprocessing.cpu_count #48488

Closed
epg mannequin opened this issue Oct 30, 2008 · 5 comments
Closed

BSD support for multiprocessing.cpu_count #48488

epg mannequin opened this issue Oct 30, 2008 · 5 comments
Labels
stdlib Python modules in the Lib dir

Comments

@epg
Copy link
Mannequin

epg mannequin commented Oct 30, 2008

BPO 4238
Nosy @vstinner
Files
  • 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 2008-11-28.19:02:04.712>
    created_at = <Date 2008-10-30.05:18:44.351>
    labels = ['library']
    title = 'BSD support for multiprocessing.cpu_count'
    updated_at = <Date 2008-11-28.19:02:04.368>
    user = 'https://bugs.python.org/epg'

    bugs.python.org fields:

    activity = <Date 2008-11-28.19:02:04.368>
    actor = 'jnoller'
    assignee = 'jnoller'
    closed = True
    closed_date = <Date 2008-11-28.19:02:04.712>
    closer = 'jnoller'
    components = ['Library (Lib)']
    creation = <Date 2008-10-30.05:18:44.351>
    creator = 'epg'
    dependencies = []
    files = ['11907']
    hgrepos = []
    issue_num = 4238
    keywords = []
    message_count = 5.0
    messages = ['75353', '75358', '75371', '75372', '76548']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'jnoller', 'epg']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue4238'
    versions = ['Python 2.6', 'Python 3.0']

    @epg
    Copy link
    Mannequin Author

    epg mannequin commented Oct 30, 2008

    Tested on NetBSD, but should work on any; sysctl goes back to 4.4BSD.

    @epg epg mannequin added the stdlib Python modules in the Lib dir label Oct 30, 2008
    @vstinner
    Copy link
    Member

    I prefer to use the test "sys.platform in ('darwin', 'bsd')" ;-)

    @epg
    Copy link
    Mannequin Author

    epg mannequin commented Oct 30, 2008

    sys.platform is 'netbsd4', and presumably 'freebsd5' and so on, so that
    won't work.

    @vstinner
    Copy link
    Member

    @epg: Ooops, I read sys.platform == 'bsd'.

    @jnoller
    Copy link
    Mannequin

    jnoller mannequin commented Nov 28, 2008

    Fixed, trunk r67423

    @jnoller jnoller mannequin closed this as completed Nov 28, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant