| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
| | | |
| | | |
| | | | |
compiling it.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
message when pass a non-mapping as a var-keyword argument.
|
| | | | |
| | | |
| | | |
| | | | |
a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
|
| |\ \ \ \
| |/ / /
| | | |
| | | | |
frozensets.
|
| | | | |
| | | |
| | | |
| | | | |
frozensets.
|
| | | | |
| | | |
| | | |
| | | | |
The code was correct, but GCC is not enough clever.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Introduced platform independent _PyTime_localtime API that is similar
to POSIX localtime_r, but available on all platforms. Patch by Ed
Schouten.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
unscathed to the C-defined function. Now it is converted to exact tuple.
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue #27955: modify py_getrnadom() and dev_urandom()
* Add comments from Python 3.7
* PEP 7 style: add {...}
|