- 19 Mar, 2019 12 commits
-
-
Pablo Galindo authored
-
Victor Stinner authored
At Python initialization, the current directory is no longer prepended to sys.path if it has been removed. Rename _PyPathConfig_ComputeArgv0() to _PyPathConfig_ComputeSysPath0() to avoid confusion between argv[0] and sys.path[0].
-
Victor Stinner authored
Ensure that _PyRuntime_Finalize() is always call. This change fix a few memory leaks when running "python3 -V".
-
Victor Stinner authored
When Python is compiled with Valgrind support, release Unicode interned strings at exit in _PyUnicode_Fini(). * Rename _Py_ReleaseInternedUnicodeStrings() to unicode_release_interned() and make it private. * unicode_release_interned() is now called from _PyUnicode_Fini(): it must be called with a running Python thread state for TRASHCAN, it cannot be called from pymain_free(). * Don't display statistics on interned strings at exit anymore
-
Victor Stinner authored
_PyEval_FiniThreads() now free the pending lock.
-
Inada Naoki authored
Modules/_sqlite/cursor.c uses "y#" format. It didn't declare PY_SSIZE_T_CLEAN, but the argument is Py_ssize_t already.
-
Stéphane Wirtel authored
-
btharper authored
_PyPreConfig_Read() now free 'old_old' at exit.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Victor Stinner authored
* Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c. * Pass string length to functions modifying strings.
-
Victor Stinner authored
Python initialization now fails if decoding pybuilddir.txt configuration file fails at startup. _PyPathConfig_Calculate() now reports memory allocation failure and decoding error on decoding pybuilddir.txt content from UTF-8/surrogateescape.
-
- 18 Mar, 2019 14 commits
-
-
Victor Stinner authored
Replace Py_FatalError() with _PyInitError to let the caller handle the fatal error.
-
Victor Stinner authored
bpo-36301, bpo-36333: * Fix memory allocator used by _PyPathConfig_ClearGlobal(): force the default allocator. * _PyPreConfig_ReadFromArgv(): free init_ctype_locale memory. * pymain_main(): call pymain_free() on init error Co-Authored-By: Stéphane Wirtel <stephane@wirtel.be>
-
stratakis authored
-
Raymond Hettinger authored
Also, deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*. https://bugs.python.org/issue36320
-
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 3 commits