Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
dc69f69 Fix typo in unittest.mock documentation: manger -> manager (GH-12352) 17 March 2019, 23:34:22 UTC
f683f46 bpo-34745: Fix asyncio sslproto memory issues (GH-12386) * 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 17 March 2019, 22:51:10 UTC
06e1e68 bpo-34160: Update news entry for XML order attributes (#12335) 16 March 2019, 23:44:56 UTC
0bb5e75 bpo-23216: IDLE: Add docstrings to search modules (GH-12141) 16 March 2019, 23:29:33 UTC
7c99454 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 16 March 2019, 22:34:24 UTC
962bdea bpo-35715: Liberate return value of _process_worker (GH-11514) 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. 16 March 2019, 22:28:51 UTC
9c68543 Update the seealso entries for namedtuple() (GH-12373) * 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. 16 March 2019, 19:53:23 UTC
5927cfd Minor grammar fix in docs (GH-12371) 16 March 2019, 18:16:29 UTC
1b0393d bpo-36127: Fix compiler warning in _PyArg_UnpackKeywords(). (GH-12353) 16 March 2019, 17:45:00 UTC
f40b4a0 bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137) Be explicit that timedelta division converts an overall duration to the interval units given by the denominator. 16 March 2019, 03:56:58 UTC
d2fdd1f bpo-36124: Add PyInterpreterState.dict. (gh-12132) 15 March 2019, 23:47:43 UTC
c11183c bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (gh-12359) 15 March 2019, 22:35:46 UTC
842a2f0 bpo-33608: Deal with pending calls relative to runtime shutdown. (gh-12246) 15 March 2019, 21:47:51 UTC
7c4fcb6 Add the meaning of the returned value of PyTypeObject.tp_init (GH-12325) 15 March 2019, 16:18:36 UTC
e3f4070 bpo-33608: Fix PyEval_InitThreads() warning (GH-12346) 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 15 March 2019, 15:04:20 UTC
6259976 bpo-36301: _PyCoreConfig_Read() ensures that argv is not empty (GH-12347) If argv is empty, add an empty string. 15 March 2019, 15:03:23 UTC
74f6568 bpo-36301: Add _PyWstrList structure (GH-12343) 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 15 March 2019, 14:08:05 UTC
86082c2 bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) 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> 15 March 2019, 13:57:52 UTC
65f64b1 bpo-36272: Logging now propagates RecursionError (GH-12312) 15 March 2019, 06:53:34 UTC
1c668d1 Correct the heading levels (GH-12338) 15 March 2019, 04:46:31 UTC
b420428 Document actual string.punctuation value. (GH-12270) 14 March 2019, 19:28:31 UTC
53c2935 Fix typo duplicate period in a docstring in the zipfile module. (GH-12326) 14 March 2019, 19:26:25 UTC
3fe7fa3 bpo-30040: update news entry (GH-12324) This optimization is not only for space, but also for speed. 14 March 2019, 09:54:09 UTC
41f0b78 Simplify overlap() formula for case where variances are equal (GH-12323) 14 March 2019, 09:25:26 UTC
3191391 bpo-36127: Argument Clinic: inline parsing code for keyword parameters. (GH-12058) 14 March 2019, 08:32:22 UTC
2c0d3f4 bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318) 14 March 2019, 08:06:05 UTC
f2f55e7 bpo-36282: Improved error message for too much positional arguments. (GH-12310) 13 March 2019, 21:03:22 UTC
d53fe5f bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264) 13 March 2019, 20:59:55 UTC
10f8ce6 bpo-36280: Add Constant.kind field (GH-12295) 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 13 March 2019, 20:00:46 UTC
8b5bdda bpo-31904: Adapt the _signal module to VxWorks RTOS (GH-12304) Limited signal fields in VxWorks. 13 March 2019, 17:18:25 UTC
9776b06 bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) Fix an unlikely memory leak on conversion from string to float in the function _Py_dg_strtod() used by float(str), complex(str), pickle.load(), marshal.load(), etc. Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label: rewrite memory management in this function to always release all memory before exiting the function. Initialize variables to NULL, and set them to NULL after calling Bfree() at the "cont:" label. Note: Bfree(NULL) is well defined: it does nothing. 13 March 2019, 16:55:01 UTC
86900a4 Fix stepping into a frame without a __name__ (GH-12064) 13 March 2019, 03:57:09 UTC
839b925 bpo-35661: Fix failing test on buildbot (GH-12297) 13 March 2019, 00:15:47 UTC
26c910c bpo-36174: Update nuget authoring for new license field. (GH-12300) 12 March 2019, 23:48:17 UTC
20843a9 Correct minor edit to news entry. (GH-12298) 12 March 2019, 23:44:20 UTC
8ef864d bpo-36264: Updates documentation for change to expanduser on Windows (GH-12294) 12 March 2019, 22:15:26 UTC
f45813d Minor edits to news entries (ported from 3.7) (GH-12293) 12 March 2019, 16:21:22 UTC
25ec4a4 bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 12 March 2019, 15:39:57 UTC
410aea1 canonicalize "Inada Naoki" in ACKS and 3.8 News (GH-12286) 12 March 2019, 08:27:43 UTC
f2a1867 bpo-30040: new empty dict uses key-sharing dict (GH-1080) Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64). It is same size to empty dict created by dict.clear(). 12 March 2019, 08:25:44 UTC
fc06a19 bpo-35892: Fix mode() and add multimode() (#12089) 12 March 2019, 07:43:27 UTC
3e93643 bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103) This is relevant for `debug doesnotexist()`, which would crash with a NameError otherwise. 12 March 2019, 03:29:04 UTC
1ceb3a3 bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) 12 March 2019, 03:21:25 UTC
d9bd8ec Doc: Fix inconsistency in multiprocessing (GH-12273) 11 March 2019, 13:54:48 UTC
876e82b bpo-36234: Add more tests to PosixUidGidTests (GH-12234) test_posix.PosixUidGidTests: * Add tests for invalid uid/gid type (str) * Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32) Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> 11 March 2019, 12:57:53 UTC
cc353a0 Various refinements to the NormalDist examples and recipes (GH-12272) 11 March 2019, 06:43:33 UTC
491ef53 bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262) Prevent conflicts with Linux dark themes (and slightly darken calltip background). 11 March 2019, 00:18:40 UTC
0e1f1f0 bpo-35647: Fix path check in cookiejar (#11436) * Refactor cookie path check as per RFC 6265 * Add tests for prefix match of path * Add news entry * Fix set_ok_path and refactor tests * Use slice for last letter 10 March 2019, 17:12:28 UTC
1aeeaeb bpo-21314: Add a FAQ entry about positional only parameters (GH-10641) 10 March 2019, 11:30:11 UTC
11205b8 Fix padding on asyncio.IncompleteReadError docs (GH-12258) 10 March 2019, 11:02:17 UTC
8b91eda bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252) 10 March 2019, 10:29:14 UTC
ca7fe50 bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan Singaravelan. 10 March 2019, 02:09:48 UTC
738c19f closes bpo-33376: Update to Unicode 12.0.0. (GH-12256) 10 March 2019, 00:25:55 UTC
0411411 Rework integer overflow path in math.prod and add more tests (GH-11809) The overflow check was relying on undefined behaviour as it was using the result of the multiplication to do the check, and once the overflow has already happened, any operation on the result is undefined behaviour. Some extra checks that exercise code paths related to this are also added. 09 March 2019, 19:18:08 UTC
62fa51f Fix typos and improve grammar in threading.Barrier docstrings (GH-12210) 09 March 2019, 17:38:05 UTC
1b304f9 Remove d_initial from the parser as it is unused (GH-12212) d_initial, the first state of a particular DFA in the parser has always been initialized to 0 in the old pgen as well as the new pgen. As this value is not used and the first state of each DFA is assumed to be the first element in the array representing it, remove d_initial from the parser to reduce complexity. 09 March 2019, 15:35:50 UTC
d70a359 Make a documentation link target more specific (GH-12249) 09 March 2019, 08:42:23 UTC
8479a34 bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245) 09 March 2019, 06:44:33 UTC
5be45a6 bpo-33608: Minor cleanup related to pending calls. (gh-12247) 09 March 2019, 05:47:07 UTC
7bda9de Simplify DISPATCH by hoisting eval_breaker ahead of time. (gh-12243) 09 March 2019, 00:25:54 UTC
d5a70c6 bpo-35661: Store the venv prompt in pyvenv.cfg (GH-11440) 08 March 2019, 22:01:27 UTC
2aab5d3 Fix the Py_atomic_* macros. (#12240) The macros were working only because our usage happened to parse correctly. Changing that usage (e.g. with pointers) would break the macros. This fixes that. 08 March 2019, 19:06:56 UTC
ab9b31f bpo-35843: Implement __getitem__ for _NamespacePath (GH-11690) 08 March 2019, 18:58:00 UTC
8a1bab9 bpo-34162: Add entries for idlelib/NEWS.txt (#12232) 08 March 2019, 08:04:32 UTC
f2320b3 Fix typo (double 'the') in CODEOWNERS (GH-12227) 08 March 2019, 01:09:40 UTC
495da29 bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) This adds a `feature_version` flag to `ast.parse()` (documented) and `compile()` (hidden) that allow tweaking the parser to support older versions of the grammar. In particular if `feature_version` is 5 or 6, the hacks for the `async` and `await` keyword from PEP 492 are reinstated. (For 7 or higher, these are unconditionally treated as keywords, but they are still special tokens rather than `NAME` tokens that the parser driver recognizes.) https://bugs.python.org/issue35975 07 March 2019, 20:38:08 UTC
bf94cc7 bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074) 07 March 2019, 18:20:13 UTC
2f8f564 bpo-36108: Avoid failing the build on race condition in clean (GH-12217) 07 March 2019, 17:09:15 UTC
14bab7a NormalDist.overlap() only needs one example (GH-12218) 07 March 2019, 16:54:31 UTC
16e6f7d bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) 07 March 2019, 16:02:26 UTC
1f58f4f Refine statistics.NormalDist documentation and improve test coverage (GH-12208) 07 March 2019, 07:23:55 UTC
318d537 bpo-36169 : Add overlap() method to statistics.NormalDist (GH-12149) 07 March 2019, 06:59:40 UTC
e942e7b Fix the documentation for set.copy() (GH-12176) Remove 's' mention as there's no argument. 07 March 2019, 05:23:21 UTC
ecc161d bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204) 07 March 2019, 05:16:41 UTC
dc07894 bpo-36139: Fix mmap_object_dealloc(): hold the GIL to call PyMem_Free() (GH-12199) 06 March 2019, 17:08:31 UTC
edad38e bpo-9566: Fix compiler warnings in gcmodule.c (GH-11010) Change PyDTrace_GC_DONE() argument type from int to Py_ssize_t. 06 March 2019, 16:54:12 UTC
bb9593a closes bpo-36139: release GIL around munmap(). (GH-12073) 06 March 2019, 15:52:34 UTC
b71e28e bpo-36209: Fix typo on hashlib error message (GH-12194) 06 March 2019, 14:35:35 UTC
25d13f3 bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191) bpo-34247, bpo-36142: The PYTHONMALLOC environment variable has the priority over PYTHONDEV env var and "-X dev" command line option. For example, PYTHONMALLOC=malloc PYTHONDEVMODE=1 sets the memory allocators to "malloc" (and not to "debug"). Add an unit test. 06 March 2019, 11:51:53 UTC
01e0f43 bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189) * Update pip to 19.0.3 * Update setuptools to 40.8.0 06 March 2019, 11:42:21 UTC
18ee50d Add more tests for pdf() and cdf() (GH-12190) 06 March 2019, 10:31:14 UTC
4fffd38 bpo-36142: _PyPreConfig_Read() sets LC_CTYPE (GH-12188) * _PyPreConfig_Read() now sets temporarily LC_CTYPE to the user preferred locale, as _PyPreConfig_Write() will do permanentely. * Fix _PyCoreConfig_Clear(): clear run_xxx attributes * _Py_SetArgcArgv() doesn't have to be exported * _PyCoreConfig_SetGlobalConfig() no longer applies preconfig 06 March 2019, 00:44:31 UTC
c656e25 bpo-36142: Add _PyPreConfig_SetAllocator() (GH-12187) * _PyPreConfig_Write() now reallocates the pre-configuration with the new memory allocator. * It is no longer needed to force the "default raw memory allocator" to clear pre-configuration and core configuration. Simplify the code. * _PyPreConfig_Write() now does nothing if called after Py_Initialize(): no longer check if the allocator is the same. * Remove _PyMem_GetDebugAllocatorsName(): dev mode sets again allocator to "debug". 06 March 2019, 00:13:43 UTC
7d2ef3e bpo-36142: _PyPreConfig_Write() sets the allocator (GH-12186) * _PyPreConfig_Write() now sets the memory allocator. * _PyPreConfig_Write() gets a return type: _PyInitError. * _Py_InitializeCore() now reads and writes the pre-configuration (set the memory allocator, configure the locale) before reading and writing the core configuration. 05 March 2019, 23:36:56 UTC
a9df651 bpo-36142: Add _PyMem_GetDebugAllocatorsName() (GH-12185) The development mode now uses the effective name of the debug memory allocator ("pymalloc_debug" or "malloc_debug"). So the name doesn't change after setting the memory allocator. 05 March 2019, 22:31:54 UTC
d8b3a98 bpo-36187: Remove NamedStore. (GH-12167) NamedStore has been replaced with Store. The difference between NamedStore and Store is handled when precess the NamedExpr node one level upper. 05 March 2019, 18:42:06 UTC
adfffc7 Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180) Correctly fixes bpo-36197. 05 March 2019, 16:41:09 UTC
b35be4b bpo-36142: Add _PyPreConfig.allocator (GH-12181) * Move 'allocator' and 'dev_mode' fields from _PyCoreConfig to _PyPreConfig. * Fix InitConfigTests of test_embed: dev_mode sets allocator to "debug", add a new tests for env vars with dev mode enabled. 05 March 2019, 16:37:44 UTC
359a2f3 bpo-33012: Fix compilation warnings in memoryobject.c and _collectionsmodule.c (GH-12179) Cast function pointers to (void(*)(void)) before casting to (PyCFunction) to make "warning: cast between incompatible function types" false alarm quiet. 05 March 2019, 15:10:53 UTC
5a02e0d bpo-36142: Add _PyPreConfig.utf8_mode (GH-12174) * Move following fields from _PyCoreConfig to _PyPreConfig: * coerce_c_locale * coerce_c_locale_warn * legacy_windows_stdio * utf8_mode * _PyPreConfig_ReadFromArgv() is now responsible to choose the filesystem encoding * _PyPreConfig_Write() now sets the LC_CTYPE locale 05 March 2019, 11:32:09 UTC
5b10b98 bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 05 March 2019, 08:06:26 UTC
9e4861f bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928) 05 March 2019, 08:05:57 UTC
b727239 closes bpo-36188: Clean up 'unbound' method left-overs. (GH-12169) Methods are always bound, and `__self__` can no longer be `NULL` (`method_new()` and `PyMethod_New()` both explicitly check for this). Moreover, once a bound method is bound, it *stays* bound and won't be re-bound to something else, so the section in the datamodel that talks about accessing an methods in a different descriptor-binding context doesn't apply any more in Python 3. 05 March 2019, 05:19:34 UTC
0983fcd Doc: Use `option` word for command line interface. (GH-12142) For command line option, `option` is better than `parameter`. 05 March 2019, 04:43:43 UTC
6dcb542 bpo-36142: Add _PyPreConfig_ReadFromArgv() (GH-12173) The new function is now responsible to parse -E and -I command line arguments. 05 March 2019, 01:44:12 UTC
cad1f74 bpo-36142: Add _PyPreConfig structure (GH-12172) * Add _PyPreConfig structure * Move 'ignored' and 'use_environment' fields from _PyCoreConfig to _PyPreConfig * Add a new "_PyPreConfig preconfig;" field to _PyCoreConfig 05 March 2019, 01:01:27 UTC
7e9ce4c Fixed a missing . and a missing capital letter. (GH-12170) 04 March 2019, 18:12:04 UTC
b7bc283 bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in out-of-memory cases. Thanks to Charalampos Stratakis. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue36179 04 March 2019, 15:45:41 UTC
800d5cd bpo-35198 Fix C++ extension compilation on AIX (GH-10437) For C++ extensions, distutils tries to replace the C compiler with the C++ compiler, but it assumes that C compiler is the first element after any environment variables set. On AIX, linking goes through ld_so_aix, so it is the first element and the compiler is the next element. Thus the replacement is faulty: ld_so_aix gcc ... -> g++ gcc ... Also, it assumed that self.compiler_cxx had only 1 element or that there were the same number of elements as the linker has and in the same order. This might not be the case, so instead concatenate everything together. 04 March 2019, 14:48:40 UTC
4d61e6e Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159) * Revert "bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)" This reverts commit bcfa450f210074e16feb761ae5b3e966a2532fcf. * Revert "bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062)" This reverts commit bda918bf65a88560ec453aaba0758a9c0d49b449. * Revert "bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024)" This reverts commit b05b711a2cef6c6c381e01069dedac372e0b9fb2. * Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617)" This reverts commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465. 04 March 2019, 13:21:28 UTC
back to top