New submission from Ed Schouten:

The SCHED_* constants that are part of POSIX's <sched.h> are all optional:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html

Python already declares the SCHED_SPORADIC constant as part of the POSIX module 
optionally, depending on whether it is present in C, but doesn't do this for 
the other SCHED_* constants.

This is problematic for CloudABI 
(https://mail.python.org/pipermail/python-dev/2016-July/145708.html), which 
doesn't support any scheduler interaction at all.

Attached is a patch to only define these if present.

----------
components: Extension Modules
files: sched.diff
keywords: patch
messages: 271697
nosy: EdSchouten
priority: normal
severity: normal
status: open
title: [Patch] Make presence of SCHED_* optional
versions: Python 3.6
Added file: http://bugs.python.org/file43952/sched.diff

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

Reply via email to