Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) | Victor Stinner | 2020-12-01 | 1 | -2/+2 |
| | | | | | | | | | No longer use deprecated aliases to functions: * Replace PyObject_MALLOC() with PyObject_Malloc() * Replace PyObject_REALLOC() with PyObject_Realloc() * Replace PyObject_FREE() with PyObject_Free() * Replace PyObject_Del() with PyObject_Free() * Replace PyObject_DEL() with PyObject_Free() | ||||
* | bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586) | Victor Stinner | 2020-12-01 | 1 | -9/+9 |
| | | | | | | | | | | | No longer use deprecated aliases to functions: * Replace PyMem_MALLOC() with PyMem_Malloc() * Replace PyMem_REALLOC() with PyMem_Realloc() * Replace PyMem_FREE() with PyMem_Free() * Replace PyMem_Del() with PyMem_Free() * Replace PyMem_DEL() with PyMem_Free() Modify also the PyMem_DEL() macro to use directly PyMem_Free(). | ||||
* | bpo-1635741: Port select module to multiphase init (GH-23409) | Christian Heimes | 2020-11-21 | 1 | -82/+105 |
| | |||||
* | bpo-42152: Use PyDict_Contains and PyDict_SetDefault if appropriate. (GH-22986) | Serhiy Storchaka | 2020-10-26 | 1 | -5/+8 |
| | | | | | | | If PyDict_GetItemWithError is only used to check whether the key is in dict, it is better to use PyDict_Contains instead. And if it is used in combination with PyDict_SetItem, PyDict_SetDefault can replace the combination. | ||||
* | bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for ↵ | Serhiy Storchaka | 2020-10-09 | 1 | -19/+0 |
| | | | | "fildes". (GH-22620) | ||||
* | bpo-31938: Fix default-value signatures of several functions in the select ↵ | Anthony Sottile | 2020-06-23 | 1 | -8/+8 |
| | | | | module (GH-21066) | ||||
* | bpo-32604: Fix reference leak in select module (GH-20600) | Victor Stinner | 2020-06-03 | 1 | -2/+0 |
| | | | | Fix reference leak in PyInit_select() of the select module: remove Py_INCREF(poll_Type). | ||||
* | bpo-38580: Document that select() accepts iterables, not just sequences ↵ | Jakub Stasiak | 2020-05-25 | 1 | -3/+3 |
| | | | | (GH-16832) | ||||
* | bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281) | Batuhan Taskaya | 2020-05-16 | 1 | -0/+2 |
| | |||||
* | bpo-40268: Remove unused structmember.h includes (GH-19530) | Victor Stinner | 2020-04-15 | 1 | -1/+1 |
| | | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used. | ||||
* | bpo-39968: Convert extension modules' macros of get_module_state() to inline ↵ | Hai Shi | 2020-03-16 | 1 | -23/+30 |
| | | | | functions (GH-19017) | ||||
* | bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882) | Victor Stinner | 2020-01-07 | 1 | -5/+0 |
| | | | | The select.epoll.unregister() method no longer ignores the EBADF error. | ||||
* | Fix a compile warning in selectmodule.c. (GH-16617) | Xiang Zhang | 2019-10-07 | 1 | -1/+1 |
| | |||||
* | bpo-38116: Convert select module to PEP-384 (#15971) | Dino Viehland | 2019-09-14 | 1 | -242/+207 |
| | | | | | | | | | | * Convert select module to PEP-384 Summary: Do the necessary versions to be Pyro-compatible, including migrating `PyType_Ready` to `PyType_FromSpec` and moving static data into a new `_selectstate` struct. * 📜🤖 Added by blurb_it. * Fixup Mac OS/X build | ||||
* | bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267) | Jeroen Demeyer | 2019-07-08 | 1 | -1/+1 |
| | |||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -10/+10 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) | Serhiy Storchaka | 2019-02-25 | 1 | -3/+5 |
| | |||||
* | bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033) | Zackery Spytz | 2018-12-08 | 1 | -8/+2 |
| | | | | | | | | | | In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist(). | ||||
* | bpo-35310: Clear select() lists before returning upon EINTR (GH-10877) | Oran Avraham | 2018-12-05 | 1 | -0/+4 |
| | | | | | | select() calls are retried on EINTR (per PEP 475). However, if a timeout was provided and the deadline has passed after running the signal handlers, rlist, wlist and xlist should be cleared since select(2) left them unmodified. | ||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -3/+3 |
| | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
* | bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040) | Berker Peksag | 2018-09-11 | 1 | -8/+15 |
| | | | | | | | Although the kernel accepts any negative value for timeout, the documented value to block indefinitely is -1. This commit also makes the code similar to select.poll.poll(). | ||||
* | bpo-34419: selectmodule.c does not compile on HP-UX due to bpo-31938 (GH-8796) | Michael Osipov | 2018-08-17 | 1 | -3/+1 |
| | | | | | | Fix compile errors reported by HP aCC by fixing bugs introduced in 6dc57e2a20c which do not cause trouble on clang or GCC. Patch by Michael Osipov. | ||||
* | bpo-20260: Implement non-bitwise unsigned int converters for Argument ↵ | Serhiy Storchaka | 2018-07-26 | 1 | -26/+8 |
| | | | | Clinic. (GH-8434) | ||||
* | bpo-31938: Convert selectmodule.c to Argument Clinic (GH-4265) | Tal Einat | 2018-06-30 | 1 | -574/+659 |
| | |||||
* | bpo-32568: make select.epoll() and its docs consistent (#7840) | Tal Einat | 2018-06-30 | 1 | -4/+6 |
| | | | | | | | | | | | | | * `flags` is indeed deprecated, but there is a validation on its value for backwards compatibility reasons. This adds mention of this in the docs. * The docs say that `sizehint` is deprecated and ignored, but it is still used when `epoll_create1()` is unavailable. This adds mention of this in the docs. * `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`. This is needed to have a default value available at the Python level, since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938) * Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`. The relevant tests have also been updated. | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -6/+6 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | bpo-32747: Remove trailing spaces in docstrings. (GH-5491) | oldk | 2018-02-02 | 1 | -2/+2 |
| | |||||
* | bpo-28914: Fix compilation of select on Android (#5447) | Victor Stinner | 2018-01-30 | 1 | -0/+3 |
| | | | | | EPOLL_CLOEXEC is not defined on Android. Co-Authored-By: Wataru Matsumoto <sxsns243@gmail.com> | ||||
* | bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵ | stratakis | 2017-11-02 | 1 | -21/+1 |
| | | | | functions (GH-793) | ||||
* | bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (#4196) | Serhiy Storchaka | 2017-10-31 | 1 | -4/+4 |
| | | | | | * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. | ||||
* | bpo-31893: Fixed select.kqueue(). (#4166) | Serhiy Storchaka | 2017-10-31 | 1 | -47/+71 |
| | | | | * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects. | ||||
* | bpo-31334: Fix timeout in select.poll.poll() (GH-3277) | Riccardo Coccioli | 2017-10-17 | 1 | -9/+16 |
| | | | | | | Always pass -1, or INFTIM where defined, to the poll() system call when a negative timeout is passed to the poll.poll([timeout]) method in the select module. Various OSes throw an error with arbitrary negative values. | ||||
* | bpo-31786: Make functions in the select module blocking when timeout is a ↵ | Pablo Galindo | 2017-10-17 | 1 | -8/+8 |
| | | | | small negative value. (#4003) | ||||
* | bpo-30058: Fixed buffer overflow in select.kqueue.control(). (#1095) | Serhiy Storchaka | 2017-10-12 | 1 | -16/+13 |
| | |||||
* | bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) | Serhiy Storchaka | 2017-04-19 | 1 | -2/+2 |
| | | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate. | ||||
* | bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051) | Serhiy Storchaka | 2017-04-16 | 1 | -2/+2 |
| | |||||
* | bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501) | Serhiy Storchaka | 2017-03-12 | 1 | -4/+4 |
| | | | FreeBSD is the only platforms with unsigned FD_SETSIZE. | ||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -6/+3 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵ | Serhiy Storchaka | 2016-12-16 | 1 | -1/+1 |
| | | | | dict. | ||||
* | Issue #20100: Simplify newPyEpoll_Object() | Berker Peksag | 2016-09-26 | 1 | -8/+10 |
| | | | | | | EPOLL_CLOEXEC is the only value that can be passed to epoll_create1() and we are passing EPOLL_CLOEXEC unconditionally since Python 3.4. | ||||
* | Issue #28153: Make kqueue()'s event filters optional | Berker Peksag | 2016-09-14 | 1 | -0/+18 |
| | | | | Patch by Ed Schouten. | ||||
* | replace Py_(u)intptr_t with the c99 standard types | Benjamin Peterson | 2016-09-06 | 1 | -2/+2 |
| | |||||
* | Expose EPOLLRDHUP conditionally | Berker Peksag | 2016-08-08 | 1 | -0/+3 |
| | |||||
* | Issue #27567: Expose the POLLRDHUP constant in the select module | Berker Peksag | 2016-07-19 | 1 | -0/+8 |
| | |||||
* | add EPOLLEXCLUSIVE | Benjamin Peterson | 2016-07-19 | 1 | -0/+3 |
| | |||||
* | expose EPOLLRDHUP (closes #27567) | Benjamin Peterson | 2016-07-19 | 1 | -1/+1 |
| | |||||
* | merge from 3.5 | Senthil Kumaran | 2016-05-15 | 1 | -1/+1 |
|\ | | | | | | | issue27018 - Fix the documentation of select.epoll.register method. | ||||
| * | issue27018 - Fix the documentation of select.epoll.register method. | Senthil Kumaran | 2016-05-15 | 1 | -1/+1 |
| | | |||||
* | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | messages. | ||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
|/ |