Message316267
| Author |
serhiy.storchaka |
| Recipients |
pablogsal, pitrou, serhiy.storchaka |
| Date |
2018年05月07日.12:40:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1525696856.75.0.682650639539.issue33441@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
posix_spawn() (see issue20104) needs the converter to sigset_t defined in signalmodule.c. Since the code is not trivial, it is better to share it instead of duplicate. The proposed PR:
* Exposes the sigset_t converter via private API _Py_Sigset_Converter(). The implementation is moved to posixmodule.c.
* Uses Argument Clinic for parsing sigset_t in signalmodule.c. In particularly it causes that the first argument of signal.sigtimedwait() will be parsed before the second one.
* Make the converter always raising ValueError for signal numbers out of range 1..NSIG. OverflowError was raised before for integers out of the platform depending C long range. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年05月07日 12:40:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, pablogsal |
| 2018年05月07日 12:40:56 | serhiy.storchaka | set | messageid: <1525696856.75.0.682650639539.issue33441@psf.upfronthosting.co.za> |
| 2018年05月07日 12:40:56 | serhiy.storchaka | link | issue33441 messages |
| 2018年05月07日 12:40:56 | serhiy.storchaka | create |
|