Serhiy Storchaka
bf623ae884
bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ( #1096 )
raised an error.
Replace them with using concrete types API that never fails if appropriate.
9 years ago
Serhiy Storchaka
55fe1ae970
bpo-30022: Get rid of using EnvironmentError and IOError (except test… ( #1051 )
9 years ago
Serhiy Storchaka
783d0c1a1c
bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. ( #501 )
FreeBSD is the only platforms with unsigned FD_SETSIZE.
9 years ago
Serhiy Storchaka
228b12edcc
Issue #28999 : Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible. Patch is writen with Coccinelle.
9 years ago
Serhiy Storchaka
5ab81d787f
Issue #28959 : Added private macro PyDict_GET_SIZE for retrieving the size of dict.
9 years ago
Berker Peksag
e2197d1312
Issue #20100 : Simplify newPyEpoll_Object()
EPOLL_CLOEXEC is the only value that can be passed
to epoll_create1() and we are passing EPOLL_CLOEXEC
unconditionally since Python 3.4.
9 years ago
Berker Peksag
7ec64562b2
Issue #28153 : Make kqueue()'s event filters optional
Patch by Ed Schouten.
9 years ago
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
9 years ago
Berker Peksag
e1d22fda7e
Expose EPOLLRDHUP conditionally
10 years ago
Berker Peksag
fe8d966657
Issue #27567 : Expose the POLLRDHUP constant in the select module
10 years ago
Benjamin Peterson
0715ce358a
add EPOLLEXCLUSIVE
10 years ago
Benjamin Peterson
96e97169cc
expose EPOLLRDHUP ( closes #27567 )
10 years ago
Senthil Kumaran
507898d35d
issue27018 - Fix the documentation of select.epoll.register method.
10 years ago
Serhiy Storchaka
2d06e84455
Issue #25923 : Added the const qualifier to static constant arrays.
10 years ago
Benjamin Peterson
b397e3b526
add a missing comma ( closes #25371 )
10 years ago
Zachary Ware
3e77677692
Issue #23652 : Make the select module compile against LSB headers.
Patch by Matt Frank.
11 years ago
Victor Stinner
45ca48b03d
Issue #23485 : select.devpoll.poll() is now retried when interrupted by a signal
11 years ago
Victor Stinner
4448c08451
Issue #23485 : select.kqueue.control() is now retried when interrupted by a signal
11 years ago
Victor Stinner
41eba224de
Issue #23485 : select.epoll.poll() is now retried when interrupted by a signal
11 years ago
Victor Stinner
3c7d6e0693
Issue #23485 : select.poll.poll() is now retried when interrupted by a signal
11 years ago
Victor Stinner
f70e1ca0fc
Issue #23485 : select.select() is now retried automatically with the recomputed
timeout when interrupted by a signal, except if the signal handler raises an
exception. This change is part of the PEP 475.
The asyncore and selectors module doesn't catch the InterruptedError exception
anymore when calling select.select(), since this function should not raise
InterruptedError anymore.
11 years ago
Victor Stinner
869e1778c0
Issue #22117 : Replace usage of _PyTime_ROUND_UP with _PyTime_ROUND_CEILING
All these functions only accept positive timeouts, so this change has no effect
in practice.
11 years ago
Victor Stinner
c337838af7
Issue #22117 : Use the new _PyTime_t API in the select module
11 years ago
Victor Stinner
54799672da
Issue #23708 : select.devpoll now retries its internal write() when interrupted
by a signal (EINTR).
Modify devpoll_flush() to use _Py_write() instead of calling directly write().
11 years ago
Victor Stinner
a555cfcb73
Issue #23694 : Enhance _Py_open(), it now raises exceptions
* _Py_open() now raises exceptions on error. If open() fails, it raises an
OSError with the filename.
* _Py_open() now releases the GIL while calling open()
* Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not
held
11 years ago
Victor Stinner
329e492570
Issue #20656 : Restore explicit downcast in select_select().
Cast from time_t (64 bit) to long (32 bit). It should fix a compiler warning.
12 years ago
Victor Stinner
5a8e5796f1
Close #20656 : Fix select.select() on OpenBSD 64-bit
12 years ago
Victor Stinner
3c1b379ebd
Issue #20320 : select.select() and select.kqueue.control() now round the timeout
aways from zero, instead of rounding towards zero.
It should make test_asyncio more reliable, especially test_timeout_rounding() test.
12 years ago
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
12 years ago
Victor Stinner
dcd9740ad2
Issue #20452 : select and selectors round (again) timeout away from zero for
poll and epoll
Improve also debug info to analyze the issue
12 years ago
Victor Stinner
933209689e
Issue #20311 : Revert 033137c12d88, select.epoll.poll() rounds again the timeout
towards zero
12 years ago
Georg Brandl
381c280815
#20311 : revert changes to 3.3 branch for now until experts have decided how to resolve the issue.
12 years ago
Victor Stinner
665486e0e7
Issue #20311 : select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
12 years ago
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
12 years ago
Serhiy Storchaka
5da107ac72
Issue #17919 : Fixed integer overflow in the eventmask parameter.
12 years ago
Serhiy Storchaka
3ad2d70947
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
12 years ago
Guido van Rossum
ee07b94788
Fix indentation of switch cases.
12 years ago
Victor Stinner
7613542a27
Issue #19437 : Fix select.epoll.poll(), fix code handling PyMem_New() error
The bug was introduced with the select.epoll module! So it's 5 years old :-)
12 years ago
Victor Stinner
d72fe89b80
select.epoll.fromfd(fd) must be not change the inheritable flag of the file
descriptor
13 years ago
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
13 years ago
Christian Heimes
f1fe159822
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
13 years ago
Richard Oudkerk
a93bf7b9a6
Fix devpoll_dealloc().
13 years ago
Richard Oudkerk
168d59b669
Move definition of devpoll_internal_close() before devpoll_close().
13 years ago
Richard Oudkerk
069d65c35a
Fix compilation of select module on Solaris.
13 years ago
Victor Stinner
13423c3726
Close #18794 : Add a fileno() method and a closed attribute to select.devpoll
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
13 years ago
Serhiy Storchaka
b1973c252c
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
RuntimeError exception. Patch by Christian Schubert.
13 years ago
Victor Stinner
bbf8ce5b87
Issue #18408 : Fix select.select() to handle PyList_New() failure (MemoryError)
in set2list()
13 years ago
Charles-Francois Natali
74ca886788
Issue #17917 : Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
13 years ago
Charles-Francois Natali
002a77d2f7
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
platforms. Patch by Federico Schwindt.
13 years ago
Charles-François Natali
986a56cefe
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
13 years ago