This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author njs
Recipients M J Harvey, Matthew Rocklin, davin, njs, pitrou
Date 2018-03-07.10:12:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520417539.78.0.467229070634.issue32986@psf.upfronthosting.co.za>
In-reply-to
Content
This is a duplicate of bpo-26692 and bpo-23530, and possibly others.

My impression is that len(os.sched_getaffinity(os.getpid())) is the Right Guess. Currently sched_getaffinity isn't implemented on Windows, but bpo-23530 has some example code for how it could/should be implemented.

@M J Harvey: does this return the right thing for your batch jobs?
History
Date User Action Args
2018-03-07 10:12:19njssetrecipients: + njs, pitrou, davin, Matthew Rocklin, M J Harvey
2018-03-07 10:12:19njssetmessageid: <1520417539.78.0.467229070634.issue32986@psf.upfronthosting.co.za>
2018-03-07 10:12:19njslinkissue32986 messages
2018-03-07 10:12:19njscreate