| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Python is embedded (GH-21297) (#21377)
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded.
|
| |
|
| |
|
|
|
| |
(cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30876: Relative import from unloaded package now reimports the package
instead of failing with SystemError.
Relative import from non-package now fails with ImportError rather than
SystemError.
(cherry picked from commit 8a9cd20edca7d01b68292036029ae3735ce65edd)
* bpo-18018: Import raises ImportError instead of SystemError if a relative
import is attempted without a known parent package.
* bpo-26367: importlib.__init__() raises ImportError like
builtins.__import__() when ``level`` is specified but without an accompanying
package specified.
|
|
|
|
|
|
|
|
|
|
| |
(GH-2302) (#2463)
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters..
(cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-2403) (#2419)
* bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock
This is especially important if PyThread_acquire_lock() is called reentrantly
(for example from a signal handler).
* Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst
* Avoid core logic when taking the mutex failed.
(cherry picked from commit f84ac420c2af98339678744953869cad3c253281)
|
|
|
|
|
| |
In rare circumstances PyImport_Import() could return NULL without raising
an error.
(cherry picked from commit 145541c)
|
|
|
| |
(cherry picked from commit 48fb766)
|
| |
|
|
|
|
|
|
| |
is_valid_fd() now uses fstat() instead of dup() on macOS to return 0
on a pipe when the other side of the pipe is closed. fstat() fails
with EBADF in that case, whereas dup() succeed.
(cherry picked from commit 1c4670ea0cc3d208121af11b9b973e6bb268e570)
|
|
|
|
|
|
|
| |
deque (#887) (#907) (#909)
when pass indices of wrong type.
(cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4)
(cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c)
|
|
|
|
|
|
|
| |
if attributes "encoding" or "errors" of sys.stdin or sys.stdout
are not set or are not strings.
(cherry picked from commit c2cf12857187aa147c268651f10acd6da2c9cb74)
|
|
|
| |
(cherry picked from commit c611a5b1d4fab0123bf622f06c3bfa510221dc32)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bpo-27286 fixed a problem where BUILD_MAP_UNPACK_WITH_CALL could
be emitted with an incorrect oparg value, causing the eval loop
to access the wrong stack entry when attempting to read the
function name.
The associated magic number change caused significant problems when
attempting to upgrade to 3.5.3 for anyone that relies on pre-cached
bytecode remaining valid across maintenance releases.
This patch restores the ability to import legacy bytecode generated
by 3.5.0, 3.5.1 or 3.5.2, and modifies the eval loop to
avoid any harmful consequences from the potentially malformed legacy
bytecode.
Original import patch by Petr Viktorin, eval loop patch by Serhiy Storchaka,
and tests and integration by Nick Coghlan.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-27593: Get SCM build info from git instead of hg. (#446)
sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.
Based on original patches by Brett Cannon and Steve Dower.
(cherry picked from commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178)
(cherry picked from commit 95c50e5aed9e5683676e18349dd94b11901a66b3)
|
|
|
|
|
| |
Patch by Matthias Bussonnier.
(cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)
|
|
|
|
| |
operations (#94)
|
|
|
|
| |
Patch by Erik Welch.
|
|
|
|
|
|
|
|
|
|
|
| |
Copy and then adapt Python/random.c from default branch. Difference between 3.5
and default branches:
* Python 3.5 only uses getrandom() in non-blocking mode: flags=GRND_NONBLOCK
* If getrandom() fails with EAGAIN: py_getrandom() immediately fails and
remembers that getrandom() doesn't work.
* Python 3.5 has no _PyOS_URandomNonblock() function: _PyOS_URandom()
works in non-blocking mode on Python 3.5
|
|
|
|
| |
(#29057)
|
|\ |
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Based on patch by Michael Layzell.
|
| | |
| | |
| | |
| | | |
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Patch by Gareth Rees.
|
| | |
| | |
| | |
| | | |
Every opcode should end with DISPATCH() or goto error.
|
| | |
| | |
| | |
| | | |
Patch by Anish Tambe.
|
| | |
| | |
| | |
| | | |
_PyErr_ChainExceptions().
|
| | |
| | |
| | |
| | | |
loss in PyTraceBack_Here().
|
| | |
| | |
| | |
| | | |
argument.
|
| | |
| | |
| | |
| | | |
compiling it.
|
| | |
| | |
| | |
| | | |
frozensets.
|
| | |
| | |
| | |
| | | |
The code was correct, but GCC is not enough clever.
|
| | |
| | |
| | |
| | |
| | | |
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 {...}
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|