| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* dev_urandom() now calls py_getentropy(). Prepare the fallback to support
getentropy() failure and falls back on reading from /dev/urandom.
* Simplify dev_urandom(). pyurandom() is now responsible to call getentropy()
or getrandom(). Enhance also dev_urandom() and pyurandom() documentation.
* getrandom() is now preferred over getentropy(). The glibc 2.24 now implements
getentropy() on Linux using the getrandom() syscall. But getentropy()
doesn't support non-blocking mode. Since getrandom() is tried first, it's not
more needed to explicitly exclude getentropy() on Solaris. Replace:
"if defined(HAVE_GETENTROPY) && !defined(sun)"
with "if defined(HAVE_GETENTROPY)"
* Enhance py_getrandom() documentation. py_getentropy() now supports ENOSYS,
EPERM & EINTR
|
|\ |
|
| |
| |
| |
| | |
(#29057)
|
|\ \
| |/ |
|
| |\ |
|
| | |\ |
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Based on patch by Michael Layzell.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
to/from UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
by ast.literal_eval() even if they do not include subexpressions.
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
|
| | | |
| | | |
| | | |
| | | | |
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue #28782: Fix a bug in the implementation ``yield from`` when checking
if the next instruction is YIELD_FROM. Regression introduced by WORDCODE
(issue #26647).
Reviewed by Serhiy Storchaka and Yury Selivanov.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
(Contributed by Jonathan Ellington.)
|
| | | |
| | | |
| | | |
| | | | |
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
that do not have the ioctl FIOCLEX and FIONCLEX commands
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | | |
The latter function is more readable, faster and doesn't raise exceptions.
Based on patch by Xiang Zhang.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The latter function is more readable, faster and doesn't raise exceptions.
Based on patch by Xiang Zhang.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | | |
_PyUnicode_EqualToASCIIString.
The latter function is more readable, faster and doesn't raise exceptions.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
_PyUnicode_EqualToASCIIString.
The latter function is more readable, faster and doesn't raise exceptions.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
interpreter,
on platforms that do not have langinfo
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue #28691: Fix warn_invalid_escape_sequence(): handle correctly
DeprecationWarning raised as an exception. First clear the current exception to
replace the DeprecationWarning exception with a SyntaxError exception.
Unit test written by Serhiy Storchaka.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Patch by Gareth Rees.
|
| | | |
| | | |
| | | |
| | | | |
40% speedup.
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
Every opcode should end with DISPATCH() or goto error.
|
| | | |
| | | |
| | | |
| | | | |
Every opcode should end with DISPATCH() or goto error.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As it was agreed in the issue, __aiter__ returning an awaitable
should result in PendingDeprecationWarning in 3.5 and in
DeprecationWarning in 3.6.
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Patch by Anish Tambe.
|
| | | |
| | | |
| | | |
| | | | |
escapes. Backport to 3.6.
|
| | | |
| | | |
| | | |
| | | | |
keeping unreachable code.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
new exception with setting current exception as __cause__.
_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python
raise exception(format % args) from sys.exc_info()[1]
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
_PyErr_ChainExceptions().
|
| | | |
| | | |
| | | |
| | | | |
_PyErr_ChainExceptions().
|
| | | |
| | | |
| | | |
| | | |
| | | | |
C99 inline semantics don't work everywhere. (https://bugs.python.org/issue28092)
We don't want these to have external visibility anyway.
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
loss in PyTraceBack_Here().
|
| | | |
| | | |
| | | |
| | | | |
loss in PyTraceBack_Here().
|
| | | |
| | | |
| | | |
| | | | |
argument.
|
|\ \ \ \
| |/ / /
| | | |
| | | | |
compiling it.
|