- 20 Mar, 2015 21 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Indexing bytes retiurns an integer, not bytes.
-
Serhiy Storchaka authored
Indexing bytes retiurns an integer, not bytes.
-
Serhiy Storchaka authored
some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
-
Serhiy Storchaka authored
some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
-
Victor Stinner authored
-
Victor Stinner authored
None on Windows. When the file is not readable, the error occurs at open on UNIX. On Windows, the error only occurs at the first operation on the open file. It would require to many changes to set __context__ to an OSError for all file operations, for a little benefit (__context__ is almost never used).
-
Victor Stinner authored
signal.sigtimedwait() if functions are missing
-
Victor Stinner authored
If Python failed, show also stdout in the assertion error.
-
Victor Stinner authored
when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter.
-
Victor Stinner authored
Save and then restore errno because PyErr_CheckSignals() and PyErr_SetFromErrno() can modify it.
-
Victor Stinner authored
-
Victor Stinner authored
_Py_write() to know which test failed on the buildbot "AMD64 Snow Leop 3.x".
-
Victor Stinner authored
-
Victor Stinner authored
The module is now also "SSIZE_T clean" (for PyArg_Parse...() functions) since it switched to Py_buffer ("y*" argument format).
-
Victor Stinner authored
-
Serhiy Storchaka authored
compatible with regular files (in particular it now supports the context management protocol).
-
Serhiy Storchaka authored
codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
-
- 19 Mar, 2015 19 commits
-
-
Victor Stinner authored
a signal (PEP 475). Use he new _Py_read() and _Py_write() functions.
-
Ned Deily authored
-
Ned Deily authored
-
Antoine Pitrou authored
-
Victor Stinner authored
Fix typo: self->fd => fd
-
Victor Stinner authored
read() is interrupted by a signal. dev_urandom_python() now calls _Py_read() helper instead of calling directly read().
-
Victor Stinner authored
by a signal (EINTR). Modify devpoll_flush() to use _Py_write() instead of calling directly write().
-
Antoine Pitrou authored
-
Victor Stinner authored
opening /dev/urandom.
-
Victor Stinner authored
EINTR error and special cases for Windows. These functions now truncate the length to PY_SSIZE_T_MAX to have a portable and reliable behaviour. For example, read() result is undefined if counter is greater than PY_SSIZE_T_MAX on Linux.
-
Victor Stinner authored
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define. Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
-
Victor Stinner authored
retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Jan 30 of previous year. Based on patch by Jim Carroll.
-
Serhiy Storchaka authored
Jan 30 of previous year. Based on patch by Jim Carroll.
-
Serhiy Storchaka authored
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
-
Serhiy Storchaka authored
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
-
Benjamin Peterson authored
-