Martin Panter <vadmium...@gmail.com> added the comment:

I suggested the “scheduler” tuple to bring the two related parameters 
(scheduling policy and sched_param) together, similar to how they are paired as 
the second and third parameters to “os.sched_setscheduler”, and because I 
thought it would imply that a scheduling policy without sched_param is not 
valid.

But separate keyword parameters would also work if you prefer. I might call 
them “schedpolicy” and “schedparam”, but if you prefer the naming scheme in the 
current proposal, you could call them “setscheduler” and “setschedparam”. 
Although in that case, setting the “setscheduler” parameter on its own would 
not be sufficient to correctly set the POSIX_SPAWN_SETSCHEDULER flag.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue20104>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to