- 24 Sep, 2019 5 commits
-
-
Victor Stinner authored
Multiprocessing test test_mymanager() now also expects -SIGTERM, not only exitcode 0. bpo-30356: BaseManager._finalize_manager() sends SIGTERM to the manager process if it takes longer than 1 second to stop, which happens on slow buildbots.
-
Victor Stinner authored
Multiprocessing tests: increase test_queue_feeder_donot_stop_onexc() timeout from 1 to 60 seconds.
-
Lisa Roach authored
-
Marc Hartmayer authored
This fixes the exception '`ValueError: invalid literal for int() with base 10` if `str(gdbval)` returns a hexadecimal value (e.g. '0xa0'). This is the case if the output-radix is set to 16 in gdb. See https://sourceware.org/gdb/onlinedocs/gdb/Numbers.html for more information.
-
Hai Shi authored
-
- 23 Sep, 2019 4 commits
-
-
Victor Stinner authored
Refactor path configuration code: * read_pth_file() now returns PyStatus to report errors, rather than calling Py_FatalError(). * Move argv0_path and zip_path buffers out of PyCalculatePath structures. * On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
-
Victor Stinner authored
* _PyConfig_InitPathConfig() now starts by copying the global path configuration, and then override values set in PyConfig. * _PyPathConfig_Calculate() implementations no longer override _PyPathConfig fields which are already computed. For example, if _PyPathConfig.prefix is not NULL, leave it unchanged. * If Py_SetPath() has been called, _PyConfig_InitPathConfig() doesn't call _PyPathConfig_Calculate() anymore. * _PyPathConfig_Calculate() no longer uses PyConfig, except to initialize PyCalculatePath structure. * pathconfig_calculate(): remove useless temporary "_PyPathConfig new_config" variable. * calculate_module_search_path(): remove hack to workaround memory allocation failure, call Py_FatalError() instead. * Fix get_program_full_path(): handle memory allocation failure.
-
Victor Stinner authored
Add missing "return;" (to not dereference NULL pointer).
-
Victor Stinner authored
Python now dumps path configuration if it fails to import the Python codecs of the filesystem and stdio encodings.
-
- 22 Sep, 2019 2 commits
-
-
Serhiy Storchaka authored
-
Vinay Sajip authored
-
- 21 Sep, 2019 5 commits
-
-
Raymond Hettinger authored
-
Kyle Stanley authored
-
HongWeipeng authored
-
Raymond Hettinger authored
-
Ammar Askar authored
Edit: `math.pow` changes removed on Mark's request. https://bugs.python.org/issue38237 Automerge-Triggered-By: @rhettinger
-
- 20 Sep, 2019 10 commits
-
-
Victor Stinner authored
* If Py_SetPath() has been called, _PyConfig_InitPathConfig() now uses its value. * Py_Initialize() now longer copies path configuration from PyConfig to the global path configuration (_Py_path_config).
-
Kyle Stanley authored
Based on a comment from @asvetlov https://github.com/python/cpython/pull/15735#discussion_r323619076, this removes the provisional note for ``asyncio.run()`` in the documentation. Automerge-Triggered-By: @1st1
-
Victor Stinner authored
The DLL path is not computed from any user configuration and cannot be configured by PyConfig. Instead, add a new _Py_dll_path global variable. Remove _PyConfig_SetPathConfig(): replaced with _PyPathConfig_Init(). Py_Initialize() now longer sets the "global path configuration", but only initialize _Py_dll_path.
-
Victor Stinner authored
-
Victor Stinner authored
ProactorDatagramTransportTests tests are too close to the implementation.
-
Orivej Desh authored
It did not list the argument added in d4cc7bf9. https://bugs.python.org/issue6559 Automerge-Triggered-By: @gpshead
-
Ram Rachum authored
Mention frame.f_trace in sys.settrace docs, as well as the fact you still need to call `sys.settrace` to enable the tracing machinery before setting `frame.f_trace` will have any effect.
-
Prateek Nayak authored
-
Lisa Roach authored
-
Michael Selik authored
* Check intersection of two sets explicitly Comparing ``len(a) > ``len(a - b)`` is essentially looking for an intersection between the two sets. If set ``b`` does not intersect ``a`` then ``len(a - b)`` will be equal to ``len(a)``. This logic is more clearly expressed as ``a & b``. * Change while/pop to a for-loop Copying the list, then repeatedly popping the first element was unnecessarily slow. I also cleaned up a couple other inefficiencies. There's no need to unpack a tuple, then re-pack and append it. The list can be created with the first element instead of empty. Secondly, the ``endswith`` method returns a bool, so there's no need for an if- statement to set ``encoding`` to True or False. * Use set.intersection to check for intersections ``a.intersection(b)`` method is more clear of purpose than ``not a.isdisjoint(b)`` and avoids an unnecessary set construction that ``a & set(b)`` performs. * Use not isdisjoint instead of intersection While it reads slightly worse, the isdisjoint method will stop when it finds a counterexample and returns a bool, rather than looping over the entire iterable and constructing a new set.
-
- 19 Sep, 2019 7 commits
-
-
Eddie Elizondo authored
* Make dict and weakref offsets opaque for C heap types * Add news
-
Victor Stinner authored
-
Victor Stinner authored
-
t k authored
https://bugs.python.org/issue38155
-
Kyle Stanley authored
-
toonarmycaptain authored
-
Jason Plurad authored
Signed-off-by: Jason Plurad <pluradj@us.ibm.com>
-
- 18 Sep, 2019 5 commits
-
-
HongWeipeng authored
-
Victor Stinner authored
The function return type is void, not int.
-
Victor Stinner authored
dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7.
-
Victor Stinner authored
-
Raymond Hettinger authored
-
- 17 Sep, 2019 2 commits
-
-
Victor Stinner authored
It is a known and tracked bug: disable the test until it's fixed.
-
Victor Stinner authored
-