You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/svn/psutil {master}$ python -c "import psutil; psutil.Process().cpu_affinity(set([0]))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "psutil/__init__.py", line 702, in cpu_affinity
self._proc.cpu_affinity_set(cpus)
File "psutil/_pslinux.py", line 649, in wrapper
return fun(self, *args, **kwargs)
File "psutil/_pslinux.py", line 961, in cpu_affinity_set
cext.proc_cpu_affinity_set(self.pid, cpus)
TypeError: sequence argument expected, got set
This is kind of related to #525. Since in #525 we're going to return a set it is better for cpu_affinity() (set) to also accept a set or any other iterable.
The text was updated successfully, but these errors were encountered:
giampaolo
changed the title
Process.get_cpu_affinity() should accept a set() (or other iterables)
Process.cpu_affinity() should accept a set() (or other iterables)
Feb 9, 2015
This is kind of related to #525. Since in #525 we're going to return a set it is better for cpu_affinity() (set) to also accept a set or any other iterable.
The text was updated successfully, but these errors were encountered: