mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Adds the select.PIPE_BUF attribute to expose the system constant.
This commit is contained in:
parent
9ad7bbc637
commit
9d36fd2acb
2 changed files with 11 additions and 0 deletions
|
|
@ -1746,6 +1746,8 @@ initselect(void)
|
|||
Py_INCREF(SelectError);
|
||||
PyModule_AddObject(m, "error", SelectError);
|
||||
|
||||
PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
|
||||
|
||||
#if defined(HAVE_POLL)
|
||||
#ifdef __APPLE__
|
||||
if (select_have_broken_poll()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue