- 12 Jul, 2019 3 commits
-
-
Brett Cannon authored
Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module(). Thanks to Benjamin Mintz for finding the bug. https://bugs.python.org/issue37521
-
Kyle Stanley authored
Move `threaded_import_hangers`, a dependency of `test_threaded_import`, to the directory `test_importlib/`. Also update the import references for `threaded_import_hangers` in `test_threaded_import`. https://bugs.python.org/issue19696
-
Hai Shi authored
-
- 11 Jul, 2019 8 commits
-
-
Disconnect3d authored
The `arraymodule`'s `b_getitem` function returns a `PyLong` converted from `arrayobject`'s array, by dereferencing a pointer to `char`. When the `char` type is `signed char`, the `if (x >= 128) x -= 256;` comparison/code is redundant because a `signed char` will have a value of `[-128, 127]` and so `x` will never be greater or equal than 128. This check was indeed needed for situations where a given compiler would assume `char` being `unsigned char` which would make `x` in `[0, 256]` range. However, the check can be removed if we cast the `ob_item` into a signed char pointer (`signed char*`) instead of `char*`. This PR/commit introduces this change.
-
Jakub Kulík authored
With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended. https://bugs.python.org/issue37558
-
-
Jeroen Demeyer authored
-
Tal Einat authored
-
Tal Einat authored
-
Jeroen Demeyer authored
-
Benjamin Peterson authored
-
- 10 Jul, 2019 4 commits
-
-
Tim Peters authored
uintptr_t is an integer type, and can't be compared to NULL directly.
-
Neil Schemenauer authored
Keeping an account of allocated blocks slows down _PyObject_Malloc() and _PyObject_Free() by a measureable amount. Have _Py_GetAllocatedBlocks() iterate over the arenas to sum up the allocated blocks for pymalloc.
-
Stefan Krah authored
-
Stefan Krah authored
-
- 09 Jul, 2019 8 commits
-
-
Terry Jan Reedy authored
After fcf1d003, IDLE startup failed with python compiled without docstrings.
-
Hai Shi authored
-
Victor Stinner authored
test_ssl.test_pha_required_nocert() now uses support.catch_threading_exception() to ignore the expected SSLError in ConnectionHandler of ThreadedEchoServer (it is only raised sometimes on Windows).
-
Carl Friedrich Bolz-Tereick authored
-
Victor Stinner authored
This reverts commit cf9c41c4.
-
Victor Stinner authored
Replace PyLong_FromLong() with PyLong_FromSize_t(): SSL_CTX_get_num_tickets() return type is size_t. https://bugs.python.org/issue37120
-
Victor Stinner authored
Context manager catching threading.Thread exception using threading.excepthook.
-
Victor Stinner authored
Close the TLS connection in test_pha_required_nocert() of test_ssl to fix a ResourceWarning.
-
- 08 Jul, 2019 5 commits
-
-
Carl Friedrich Bolz-Tereick authored
Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the correct st node to copy the line and col_offset from in ast.c.
-
Julien Palard authored
-
Julien Palard authored
Initial report by Michael Blankenship on docs@
-
Victor Stinner authored
test_concurrent_futures now explicitly stops the ForkServer instance if it's running.
-
Jeroen Demeyer authored
-
- 07 Jul, 2019 4 commits
-
-
Jason R. Coombs authored
* bpo-37520: Correct behavior for zipfile.Path.parent *
📜 🤖 Added by blurb_it. -
Hai Shi authored
-
Terry Jan Reedy authored
-
Kyle Stanley authored
-
- 06 Jul, 2019 5 commits
-
-
Terry Jan Reedy authored
-
Terry Jan Reedy authored
0 is a legal index.
-
Tal Einat authored
This is done to compensate for the extra stack frames added by IDLE itself, which cause problems when setting the recursion limit to low values. This wraps sys.setrecursionlimit() and sys.getrecursionlimit() as invisibly as possible.
-
Terry Jan Reedy authored
Also fix a name misspelling.
-
Hai Shi authored
-
- 05 Jul, 2019 3 commits
-
-
Min ho Kim authored
-
Hansraj Das authored
* accross -> across * Extra space removed in comment
-
Kyle Stanley authored
-