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

Process.cpu_affinity() (get) should return a set() #525

Closed
giampaolo opened this issue Aug 1, 2014 · 1 comment
Closed

Process.cpu_affinity() (get) should return a set() #525

giampaolo opened this issue Aug 1, 2014 · 1 comment

Comments

@giampaolo
Copy link
Owner

...instead of a list, in order to be compliant with os.sched_getaffinity() introduced in Python 3.3.

@giampaolo giampaolo changed the title Process.get_cpu_affinity() should return a set() Process.cpu_affinity() (get) should return a set() Feb 9, 2015
@giampaolo
Copy link
Owner Author

After all I think this is not worth it as it turns out set()s are not JSON serialible. I don't like to return a type which is not serializable, plus this may lead to backward compatibility issues. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant