| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ |
|
| | |
| | |
| | |
| | | |
Fix typo: self->fd => fd
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
read() is interrupted by a signal.
dev_urandom_python() now calls _Py_read() helper instead of calling directly
read().
|
| | |
| | |
| | |
| | |
| | |
| | | |
by a signal (EINTR).
Modify devpoll_flush() to use _Py_write() instead of calling directly write().
|
| | |
| | |
| | |
| | | |
opening /dev/urandom.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| |
| | |
multi-dimensional memoryviews).
|
| |
| |
| |
| |
| |
| | |
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define.
Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| | |
Jan 30 of previous year. Based on patch by Jim Carroll.
|
| |
| |
| |
| | |
Jan 30 of previous year. Based on patch by Jim Carroll.
|
|\ \
| |/
| |
| | |
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
|
| |
| |
| |
| | |
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
|
|\ \
| |/
| |
| | |
importing a test module is now picklable.
|
| |
| |
| |
| | |
importing a test module is now picklable.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
broken after converting instance attributes to properies in issue #2211.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
available, syscall introduced in the Linux kernel 3.17. It is more reliable
and more secure, because it avoids the need of a file descriptor and waits
until the kernel has enough entropy.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
Use a Python source file (linecache.__file__) instead of /etc/passwd.
Modify also linecache docstrings to clarify the linecache is written to cache
Python source files, not any text files.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
source files, even if "it works" with other text files encoded to UTF-8.
|
| |
| |
| |
| | |
Use None as a sentinel to stop a worker.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
PyMarshal_ReadShortFromFile() can fail.
|
| |
| |
| |
| | |
Detect also earlier PyMarshal_Read*() errors in zipimport.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
the caller can replace the directory with a different file kind.
The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and
so can be faster than Python 3.4.
|
| |
| |
| |
| |
| | |
Retry open()/fopen() if it fails with EINTR and the Python signal handler
doesn't raise an exception.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Setting attributes key, value and coded_value directly now is deprecated.
update() and setdefault() now transform and check keys. Comparing for
equality now takes into account attributes key, value and coded_value.
copy() now returns a Morsel, not a dict. repr() now contains all attributes.
Optimized checking keys and quoting values. Added new tests.
Original patch by Demian Brecht.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
* If fopen() fails, OSError is raised with the original filename object.
* The GIL is now released while calling fopen()
|
| |
| |
| |
| |
| |
| |
| |
| | |
* _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
|
| |
| |
| |
| |
| |
| |
| |
| | |
Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++.
<pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in
pystate.h. Instead, declare PyThreadState_GET() as an alias to
PyThreadState_Get(), as done for limited API.
|