Am 03.08.2011 00:30, schrieb benjamin.peterson: > http://hg.python.org/cpython/rev/89e92e684b37 > changeset: 71704:89e92e684b37 > user: Benjamin Peterson <benja...@python.org> > date: Tue Aug 02 17:30:04 2011 -0500 > summary: > expose sched.h functions (closes #12655)
> +static PyObject * > +posix_sched_setaffinity(PyObject *self, PyObject *args) > +{ > + pid_t pid; > + Py_cpu_set *cpu_set; > + > + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!|sched_setaffinity", [...] > +static PyObject * > +posix_sched_getaffinity(PyObject *self, PyObject *args) > +{ > + pid_t pid; > + int ncpus; > + Py_cpu_set *res; > + > + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i|sched_getaffinity", These should be separated by ":", not "|", if I'm not mistaken? Georg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com