- 18 Mar, 2019 10 commits
-
-
Victor Stinner authored
The last parameter of _Py_wreadlink(), _Py_wrealpath() and _Py_wgetcwd() is a length, not a size: number of characters including the trailing NUL character. Enhance also documentation of error conditions.
-
Victor Stinner authored
The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler().
-
Stéphane Wirtel authored
-
Pablo Galindo authored
-
Inada Naoki authored
-
Stéphane Wirtel authored
* bpo-36329: Declare the version of Python to use for Tools/scripts/serve.py * Add the blurb entry
-
CAM Gerlach authored
-
Rémi Lapeyre authored
-
Raymond Hettinger authored
-
Inada Naoki authored
-
- 17 Mar, 2019 3 commits
-
-
Harmon authored
-
Joan Massich authored
-
Fantix King authored
* Fix handshake timeout leak in asyncio/sslproto Refs MagicStack/uvloop#222 * Break circular ref _SSLPipe <-> SSLProtocol * bpo-34745: Fix asyncio ssl memory leak * Break circular ref SSLProtocol <-> UserProtocol * Add NEWS entry
-
- 16 Mar, 2019 8 commits
-
-
Diego Rojas authored
-
Cheryl Sabella authored
-
Pablo Galindo authored
bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool (#11488) * bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool * Use self-pipe pattern to avoid polling for changes * Refactor some variable names and add comments * Restore timeout and poll * Use reader object only on wait() * Recompute worker sentinels every time * Remove timeout and use change notifier * Refactor some methods to be overloaded by the ThreadPool, document the cache class and fix typos
-
Dave Chevell authored
ProcessPoolExecutor workers will hold the return value of their last task in memory until the next task is received. Since the return value has already been propagated to the parent process's Future (or has been discarded by this point), the object can be safely released.
-
Raymond Hettinger authored
* Replace external recipe link with a link to the dataclasses module. * Highlight the class definition syntax for typing.NamedTuple and add an example for clarity.
-
Raymond Hettinger authored
-
Serhiy Storchaka authored
-
Yasser A authored
Be explicit that timedelta division converts an overall duration to the interval units given by the denominator.
-
- 15 Mar, 2019 10 commits
-
-
Eric Snow authored
-
Eric Snow authored
-
Eric Snow authored
-
Stéphane Wirtel authored
-
Victor Stinner authored
The function has no return value. Fix the following warning on Windows: python\ceval.c(180): warning C4098: 'PyEval_InitThreads': 'void' function returning a value
-
Victor Stinner authored
If argv is empty, add an empty string.
-
Victor Stinner authored
Replace messy _Py_wstrlist_xxx() functions with a new clean _PyWstrList structure and new _PyWstrList_xxx() functions. Changes: * Add _PyCoreConfig.use_module_search_paths to decide if _PyCoreConfig.module_search_paths should be computed or not, to support empty search path list. * _PyWstrList_Clear() sets length to 0 and items to NULL, whereas _Py_wstrlist_clear() only freed memory. * _PyWstrList_Append() returns an int, whereas _Py_wstrlist_append() returned _PyInitError. * _PyWstrList uses Py_ssize_t for the length, instead of int. * Replace (int, wchar_t**) with _PyWstrList in: * _PyPreConfig * _PyCoreConfig * _PyPreCmdline * _PyCmdline * Replace "int orig_argv; wchar_t **orig_argv;" with "_PyWstrList orig_argv". * _PyCmdline and _PyPreCmdline now also copy wchar_argv. * Rename _PyArgv_Decode() to _PyArgv_AsWstrList(). * PySys_SetArgvEx() now pass the fixed (argc, argv) to _PyPathConfig_ComputeArgv0() (don't pass negative argc or NULL argv). * _PyOS_GetOpt() uses Py_ssize_t
-
Victor Stinner authored
Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the CFLAGS environment variable is defined, don't override CFLAGS variable with the OPT variable anymore. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
-
Rémi Lapeyre authored
-
Raymond Hettinger authored
-
- 14 Mar, 2019 6 commits
-
-
Andre Delfino authored
-
nick sung authored
-
Inada Naoki authored
This optimization is not only for space, but also for speed.
-
Raymond Hettinger authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
- 13 Mar, 2019 3 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Guido van Rossum authored
The value is a string for string and byte literals, None otherwise. It is 'u' for u"..." literals, 'b' for b"..." literals, '' for "..." literals. The 'r' (raw) prefix is ignored. Does not apply to f-strings. This appears sufficient to make mypy capable of using the stdlib ast module instead of typed_ast (assuming a mypy patch I'm working on). WIP: I need to make the tests pass. @ilevkivskyi @serhiy-storchaka https://bugs.python.org/issue36280
-