| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
_PyErr_ChainExceptions() function.
|
| |
| |
| |
| | |
_PyErr_ChainExceptions() function.
|
|\ \
| |/
| |
| |
| |
| | |
exception tracebacks.
Initial patch by Mark Shannon.
|
| |
| |
| |
| |
| |
| | |
exception tracebacks.
Initial patch by Mark Shannon.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
|
|\ \
| |/
|/|
| | |
"xmlcharrefreplace", and "surrogatepass" error handlers.
|
| |
| |
| |
| | |
characters (U+0000..U+001f and U+007f).
|
| |
| |
| |
| | |
but accepting a `va_list` argument.
|
| |
| |
| |
| | |
Corresponding functions now accept `const char *` (issue #1772673).
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
if-block if there is no else-clause.
Original patch by Eugene Toder.
|
| | |\
| | | |
| | | |
| | | | |
modified.
|
| | | |\ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
argument contains not permitted null character or byte.
|
| | | | |
| | | | |
| | | | |
| | | | | |
the monotonic test
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Ensure also that the tv_usec field is consistent: in range [0; 999999].
|
| | | | |\
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Illumos. This platform exposes the function ioctl(FIOCLEX), but calling it
fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
now falls back to the slower fcntl() (F_GETFD and then F_SETFD).
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Other changes:
* The whole _PyTime API is private (not defined if Py_LIMITED_API is set)
* _PyTime_gettimeofday_info() also returns -1 on error
* Simplify PyTime_gettimeofday(): only use clock_gettime(CLOCK_REALTIME) or
gettimeofday() on UNIX. Don't fallback to ftime() or time() anymore.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now
depends on the librt library on Solaris and on Linux (only with glibc older
than 2.17).
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
test checking for integer overflow on Py_ssize_t type: cast explicitly to
size_t.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
returns -1 (error) on integer overflow.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also adds a test to test_inspect to track progress on builtin
introspection support, to ensure it doesn't regress in the future.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
warnings in the Python/ subdirectory.
|
| | | | |\ \
| | | | | | |
| | | | | | |
| | | | | | | |
some __sizeof__() methods.
|
| | | | | |\ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these
functions.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is
set, True otherwise). These functions are not available on Windows.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Initial patch by Phil Elson.
|
| | | | | | |\ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
PySys_FormatStderr() call
|
| | | | | | |\ \ \ |
|
| | | | | | | |\ \ \ |
|
| | | | | | | |\ \ \ \ |
|
| | | | | | | |\ \ \ \ \ |
|
| | | | | | | | |\ \ \ \ \ |
|
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
name, and use it in the representation of a generator (``repr(gen)``). The
default name of the generator (``__name__`` attribute) is now get from the
function instead of the code. Use ``gen.gi_code.co_name`` to get the name of
the code.
|
| | | | | | | | | |\ \ \ \ \ |
|
| | | | | | | | | | | | | | | |
|
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
Along the way, dismantle importlib._bootstrap._SpecMethods as it was
no longer relevant and constructing the new function required
partially dismantling the class anyway.
|
| | | | | | | | | | | | | | | |
|
| | | | | | | | | | |\ \ \ \ \ |
|
| | | | | | | | | | | |\ \ \ \ \
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
opcodes in the compiler.
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
|
| | | | | | | | | | | |\ \ \ \ \ \ |
|
| | | | | | | | | | | | | | | | | | |
|
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
encodings.
|
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between
pyconfig.h and pymacros.h.
|
| | | | | | | | | | | | |\ \ \ \ \ \ |
|
| | | | | | | | | | | | | |\ \ \ \ \ \ |
|