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

sort by:
Revision Author Date Message Commit Date
87255be bpo-40089: Add _at_fork_reinit() method to locks (GH-19195) Add a private _at_fork_reinit() method to _thread.Lock, _thread.RLock, threading.RLock and threading.Condition classes: reinitialize the lock after fork in the child process; reset the lock to the unlocked state. Rename also the private _reset_internal_locks() method of threading.Event to _at_fork_reinit(). * Add _PyThread_at_fork_reinit() private function. It is excluded from the limited C API. * threading.Thread._reset_internal_locks() now calls _at_fork_reinit() on self._tstate_lock rather than creating a new Python lock object. 07 April 2020, 21:11:49 UTC
48b069a bpo-39481: Implementation for PEP 585 (#18239) This implements things like `list[int]`, which returns an object of type `types.GenericAlias`. This object mostly acts as a proxy for `list`, but has attributes `__origin__` and `__args__` that allow recovering the parts (with values `list` and `(int,)`. There is also an approximate notion of type variables; e.g. `list[T]` has a `__parameters__` attribute equal to `(T,)`. Type variables are objects of type `typing.TypeVar`. 07 April 2020, 16:50:06 UTC
9cc3ebd bpo-40149: Implement traverse in _abc._abc_data (GH-19412) Implement traverse and clear slots in _abc._abc_data type. 07 April 2020, 16:36:04 UTC
d8acf0d bpo-37388: Don't check encoding/errors during finalization (GH-19409) str.encode() and str.decode() no longer check the encoding and errors in development mode or in debug mode during Python finalization. The codecs machinery can no longer work on very late calls to str.encode() and str.decode(). This change should help to call _PyObject_Dump() to debug during late Python finalization. 07 April 2020, 14:07:42 UTC
74e1b6b Document missing methods of ssl.SSLObject (#19400) Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr> 07 April 2020, 07:38:59 UTC
f407e20 bpo-40214: Temporarily disable a ctypes test (GH-19404) Only one particular sub-test of ctypes.test.test_loading.test_load_dll_with_flags is disabled, which caused failures on Azure Pipelines CI. 07 April 2020, 06:39:58 UTC
8ea10a9 closes bpo-40166: Change Unicode Howto so that it does not have a specific number of assigned code points. (GH-19328) Change the number of code points from a specific number to a link to the latest standard that has a description of how many code points there are. 07 April 2020, 04:16:02 UTC
799d7d6 bpo-40196: Fix a bug in the symtable when reporting inspecting global variables (GH-19391) 06 April 2020, 16:05:57 UTC
38aefc5 bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377) Convert the PyObject_GET_WEAKREFS_LISTPTR() macro to a function to hide implementation details: the macro accessed directly to the PyTypeObject.tp_weaklistoffset member. Add _PyObject_GET_WEAKREFS_LISTPTR() static inline function to the internal C API. 06 April 2020, 12:07:02 UTC
08050e9 bpo-40147: Fix a compiler warning on Windows in Python/compile.c (GH-19389) Change the type of nkeywords to Py_ssize_t. 06 April 2020, 06:47:47 UTC
c63629e bpo-40197: Better describe the benchmark results table (GH-19386) 06 April 2020, 01:53:06 UTC
810f68f Fix misinformation about NaN != NaN comparison (GH-19357) 05 April 2020, 09:25:24 UTC
909f4a3 bpo-40190: Add support for _SC_AIX_REALMEM in sysconf (GH-19380) 05 April 2020, 00:40:49 UTC
6fed3c8 bpo-40182: Remove the _field_types attribute of the NamedTuple class (GH-19368) 04 April 2020, 21:43:20 UTC
1b21573 closes bpo-40184: Only define pysiphash if the hash algorithm is SIPHASH24. (GH-19369) 04 April 2020, 21:25:12 UTC
b709302 bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344) Fix possible refleaks in _json module, memo of PyScannerObject should be traversed. 04 April 2020, 19:24:16 UTC
a94e627 bpo-36517: Raise error on multiple inheritance with NamedTuple (GH-19363) 04 April 2020, 18:31:30 UTC
1ae6445 Convert tuples to sets for faster searches (GH-19365) 04 April 2020, 18:03:04 UTC
a1d4dbd bpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359) 04 April 2020, 14:19:08 UTC
52013e5 bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152) Inspect.signature failed on the test case because its isinstance call raised. 04 April 2020, 03:05:58 UTC
6e623ff bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343) Fix default Python home path relative to the NuGet package 03 April 2020, 20:03:54 UTC
40cf35c bpo-40141: Include the value in the column position for keyword AST nodes (GH-19348) 03 April 2020, 20:02:26 UTC
254ec78 bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289) 03 April 2020, 19:37:13 UTC
bd6a4c3 bpo-40131: Fix source and target order in zipapp example (GH-19290) 03 April 2020, 16:36:29 UTC
76db37b bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225) 03 April 2020, 14:38:28 UTC
b74468e bpo-40122: Updated documentation for dis.findlabels() (GH-19274) 03 April 2020, 08:00:28 UTC
1767a04 bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19320) Update also OpenSSL version in Ubuntu and Coverage jobs. 03 April 2020, 01:05:10 UTC
b1ffb8b bpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319) 03 April 2020, 01:03:59 UTC
7a51a7e bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314) test_builtin.PtyTests now registers an handler for SIGHUP signal. Closing the PTY file descriptor can emit a SIGHUP signal: just ignore it. run_child() now also closes the PTY file descriptor before waiting for the process completition, otherwise the test hangs on AIX. 02 April 2020, 22:40:25 UTC
3c3aa45 lib2to3: Support named assignment expressions (GH-12702) There are two copies of the grammar -- the one used by Python itself as Grammar/Grammar, and the one used by lib2to3 which has necessarily diverged at Lib/lib2to3/Grammar.txt because it needs to support older syntax an we want it to be reasonable stable to avoid requiring fixer rewrites. This brings suport for syntax like `if x:= foo():` to match what the live Python grammar does. This should've been added at the time of the walrus operator itself, but lib2to3 being independent is often overlooked. So we do consider this a bugfix rather than enhancement. 02 April 2020, 22:34:54 UTC
45217af bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131) 02 April 2020, 19:00:21 UTC
7a6f3bc bpo-1635741: Fix refleak in _locale init error handling (GH-19307) 02 April 2020, 18:00:47 UTC
45f7008 bpo-1635741: Port resource extension module to multiphase initialization (PEP 489) (GH-19252) Fix also reference leaks on error. 02 April 2020, 12:35:08 UTC
8ec7cb5 bpo-40115: Fix refleak in test_asyncio.test_run_in_executor_cancel() (GH-19282) Call explicitly self.loop.shutdown_default_executor(). 02 April 2020, 02:46:44 UTC
e7c98f0 bpo-40094: Fix which.py script exit code (GH-19286) It now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code. 02 April 2020, 01:42:47 UTC
9a679a0 bpo-40094: CGIHTTPRequestHandler logs exit code (GH-19285) CGIHTTPRequestHandler of http.server now logs the CGI script exit code, rather than the CGI script exit status of os.waitpid(). For example, if the script is killed by signal 11, it now logs: "CGI script exit code -11." 02 April 2020, 01:42:05 UTC
e27916b bpo-37207: Use PEP 590 vectorcall to speed up dict() (GH-19280) 02 April 2020, 00:55:43 UTC
224e1c3 bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288) 02 April 2020, 00:53:33 UTC
0b297d4 bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284) The AbstractBasicAuthHandler class of the urllib.request module uses an inefficient regular expression which can be exploited by an attacker to cause a denial of service. Fix the regex to prevent the catastrophic backtracking. Vulnerability reported by Ben Caller and Matt Schwager. AbstractBasicAuthHandler of urllib.request now parses all WWW-Authenticate HTTP headers and accepts multiple challenges per header: use the realm of the first Basic challenge. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> 02 April 2020, 00:52:20 UTC
d57cf55 bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287) mailcap.test() now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code. 02 April 2020, 00:00:06 UTC
168660b bpo-40141: Add line and column information to ast.keyword nodes (GH-19283) 01 April 2020, 23:47:39 UTC
65a796e bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201) Add os.waitstatus_to_exitcode() function to convert a wait status to an exitcode. Suggest waitstatus_to_exitcode() usage in the documentation when appropriate. Use waitstatus_to_exitcode() in: * multiprocessing, os, subprocess and _bootsubprocess modules; * test.support.wait_process(); * setup.py: run_command(); * and many tests. 01 April 2020, 16:49:29 UTC
5dd8360 bpo-38527: fix configure script for Solaris (GH-16845) On Solaris, the regular "grep" command may be an old version that fails to search a binary file. We need to use the correct command (ggrep, in our case), which is found by the configure script earlier. Automerge-Triggered-By: @pablogsal 01 April 2020, 15:19:09 UTC
eacc074 bpo-40071: Fix potential crash in _functoolsmodule.c (GH-19273) Changes on 7dd549eb0893 made _functools compatible with PEP-489 and we could have multiple modules instances loaded. But, right now there is no way to make `kwd_mark` global into a per module instance variable. kwd_mark is used on lru_cache_new which does not have a reference to a PyModule*, necessary to use PyModule_GetState. PEP-573 will solve this problem and will allow us to move the global state to per-module data and properly clear the state when unloading a module instance. This change temporarily disable cleaning of kwd_mark to avoid NULL pointer dereference if we clear kwd_mark and other module instances still alive use it. 01 April 2020, 15:06:21 UTC
00002e6 bpo-39682: make `pathlib.Path` immutable by removing (undocumented) support for "closing" a path by using it as a context manager (GH-18846) Support for using a path as a context manager remains, and is now a no-op. 01 April 2020, 14:10:51 UTC
975ac32 bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514) * bpo-33262: Deprecate passing None for `s` to shlex.split() This reads the string to split from standard input. * Update What's New. * Fix shlex.rst 01 April 2020, 13:58:55 UTC
7c72383 bpo-40094: Enhance os.WIFEXITED documentation (GH-19244) 01 April 2020, 13:48:05 UTC
17b4733 bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265) Make it a static function, and pass known attributes (kind, data, length) instead of the PyUnicode object. 01 April 2020, 12:41:49 UTC
3ef4a7e bpo-40121: Fix exception type in test (GH-19267) 01 April 2020, 08:38:26 UTC
6eb9619 Handle when IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in "socket" (GH-19270) Running `test_socket` or anything that depends on it (like python -m test.pythoninfo) crashes if IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in the socket module. Automerge-Triggered-By: @pablogsal 01 April 2020, 00:48:37 UTC
afeaea2 bpo-40094: Add missing import to wait_process() (GH-19268) 01 April 2020, 00:26:19 UTC
6b982c2 bpo-40094: Add run_command() to setup.py (GH-19266) 31 March 2020, 23:10:07 UTC
16d7567 bpo-31160: Fix race condition in test_os.PtyTests (GH-19263) bpo-31160, bpo-40094: Wait until the process completes before closing the PTY to prevent sending SIGHUP to the child process. 31 March 2020, 22:27:18 UTC
40bfdb1 bpo-40094: Add _bootsubprocess._waitstatus_to_exitcode (GH-19264) * Add _waitstatus_to_exitcode() helper function to _bootsubprocess. * Enhance check_output() error message if the command fails. _bootsubprocess no longer handles WIFSTOPPED() case: it now raises a ValueError. 31 March 2020, 21:45:13 UTC
2c003ef bpo-39943: Clean up marshal.c. (GH-19236) * Add consts. * Remove redundant casts and checks. * Use concrete C API macros. * Avoid raising and silencing OverflowError for ints. 31 March 2020, 20:23:21 UTC
a9f9687 bpo-40094: Enhance threading tests (GH-19260) * Rewrite test_thread.test_forkinthread() to use support.wait_process() and wait for the child process in the main thread, not in the spawned thread. * test_threading now uses support.wait_process() and checks the child process exit code to detect crashes. 31 March 2020, 19:49:44 UTC
27c6231 bpo-40094: Enhance fork and wait tests (GH-19259) * test_fork1: remove duplicated wait_impl() method: reuse fork_wait.py implementation instead. * Use exit code different than 0 to ensure that we executed the expected code path. 31 March 2020, 19:46:40 UTC
278c1e1 bpo-40094: Add test.support.wait_process() (GH-19254) Moreover, the following tests now check the child process exit code: * test_os.PtyTests * test_mailbox.test_lock_conflict() * test_tempfile.test_process_awareness() * test_uuid.testIssue8621() * multiprocessing resource tracker tests 31 March 2020, 18:08:12 UTC
400e1db Document most common signals (GH-19245) Document individual signals (only the most common signals): description, default action, availability. 31 March 2020, 17:13:10 UTC
cd16661 closes bpo-40125: Update multissltests.py to use OpenSSL 1.1.1f. (GH-19248) 31 March 2020, 15:49:56 UTC
01e743d bpo-40003: test.bisect_cmd copies Python options (GH-19246) test.bisect_cmd now copies Python command line options like -O or -W. Moreover, emit a warning if test.bisect_cmd is used with -w/--verbose2 option. 31 March 2020, 15:25:56 UTC
8d84adc bpo-32591: _PyErr_WarnUnawaitedCoroutine() sets source (GH-19247) The _PyErr_WarnUnawaitedCoroutine() fallback now also sets the coroutine object as the source of the warning, as done by the Python implementation warnings._warn_unawaited_coroutine(). Moreover, don't truncate the coroutine name: Python supports arbitrary string length to format the message. 31 March 2020, 15:25:12 UTC
5be8241 bpo-1635741: Port math module to multiphase initialization (GH-19243) 31 March 2020, 14:33:22 UTC
1cb763b bpo-1635741: Port _uuid module to multiphase initialization (GH-19242) 31 March 2020, 12:43:47 UTC
63ba5cc bpo-40121: Fixes audit event raised on creating a new socket (GH-19238) 31 March 2020, 11:38:53 UTC
ef67512 bpo-40108: Improve the error message in runpy when importing a module that includes the extension (GH-19239) 31 March 2020, 11:23:55 UTC
c49016e fix comma location in various places (GH-19233) 30 March 2020, 21:28:25 UTC
51e3e45 bpo-40020: Fix realloc leak on failure in growable_comment_array_add (GH-19083) Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath. Realloc returns a null pointer on failure, and then growable_comment_array_deallocate crashes later when it dereferences it. 30 March 2020, 21:15:59 UTC
fc2d8d6 bpo-39943: Remove unnecessary casts in import.c that remove constness (GH-19209) 30 March 2020, 20:19:14 UTC
0c5ad54 Fix bug in test_collections.py (#19221) Test in TestChainMap() line 257 did not properly check union behavior. 30 March 2020, 16:50:57 UTC
676b105 bpo-8901: Windows registry path is now ignored with the -E option (GH-18169) 30 March 2020, 16:04:45 UTC
53e4c91 bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202) Replace statically allocated types with heap allocated types: use PyType_FromSpec(). Add a module state to store the _abc_data_type. Add traverse, clear and free functions to the module. 30 March 2020, 14:35:38 UTC
ce10554 bpo-37207: Use vectorcall for list() (GH-18928) Speed up calls to list() by using the PEP 590 vectorcall calling convention. Patch by Mark Shannon. Co-authored-by: Mark Shannon <mark@hotpy.org> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> 30 March 2020, 12:16:16 UTC
614f172 bpo-39073: validate Address parts to disallow CRLF (#19007) Disallow CR or LF in email.headerregistry.Address arguments to guard against header injection attacks. 30 March 2020, 00:38:41 UTC
0003c2d bpo-40096: Support __attribute__((__noreturn__)) on xlc (GH-19204) 29 March 2020, 15:52:32 UTC
016bdd5 bpo-40024: Update _elementtree to use PyModule_AddType() (GH-19205) 29 March 2020, 14:12:11 UTC
34a49aa bpo-38002: Use False/True for IDLE pyshell bools (GH-19203) Change 0/1 assignments to 'executing', 'canceled', 'reading', 'endoffile'. These are not used outside of pyshell. Other bools already use False/True. Add comment about int needed for Windows call. Remove self.more, unused in idlelib and code.InteractiveInterpreter. The latter uses 'more' as a local. 28 March 2020, 16:51:21 UTC
34b0598 bpo-40086: Update/fix test_etree test case in test_typing (GH-19189) 28 March 2020, 12:32:36 UTC
6467134 bpo-36543: What's new: Document how to replace xml.etree.cElementTree (GH-19188) 27 March 2020, 19:59:02 UTC
b61b818 bpo-39812: Remove daemon threads in concurrent.futures (GH-19149) Remove daemon threads from :mod:`concurrent.futures` by adding an internal `threading._register_atexit()`, which calls registered functions prior to joining all non-daemon threads. This allows for compatibility with subinterpreters, which don't support daemon threads. 27 March 2020, 19:31:22 UTC
5f9c131 bpo-40045: Make "dunder" method documentation easier to locate (#19153) * issue 40045 * Update lexical_analysis.rst Make "dunder" method documentation easier(GH-19153) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> 27 March 2020, 19:02:51 UTC
d8ff44c bpo-40089: Fix threading._after_fork() (GH-19191) If fork was not called by a thread spawned by threading.Thread, threading._after_fork() now creates a _MainThread instance for _main_thread, instead of a _DummyThread instance. 27 March 2020, 16:50:42 UTC
5a58c52 bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171) 27 March 2020, 16:37:43 UTC
1c1e68c bpo-38644: Use _PySys_Audit(): pass tstate explicitly (GH-19183) Add the dependency to tstate more explicit. 27 March 2020, 14:11:45 UTC
33f15a1 bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177) Replace statically allocated types with heap allocated types: use PyType_FromSpec(). Add a module state to store the Scanner and Encoder types. Add traverse, clear and free functions to the module. 27 March 2020, 10:59:59 UTC
71a3522 bpo-38644: Make tstate more explicit inside pystate.c (GH-19182) Fix PyInterpreterState_New(): Don't call PyErr_SetString() when there is no current Python thread state (if tstate is NULL). 26 March 2020, 21:46:14 UTC
7281898 bpo-38644: Pass tstate explicitly in signalmodule.c (GH-19184) PyOS_InterruptOccurred() now checks _Py_ThreadCanHandleSignals() before checking if SIGINT is tripped. 26 March 2020, 21:28:11 UTC
08faf00 bpo-38644: Add _PySys_Audit() which takes tstate (GH-19180) Add _PySys_Audit() function to the internal C API: similar to PySys_Audit(), but requires a mandatory tstate parameter. Cleanup sys_audit_tstate() code: remove code path for NULL tstate, since the function exits at entry if tstate is NULL. Remove also code path for NULL tstate->interp: should_audit() now ensures that it is not NULL (even if tstate->interp cannot be NULL in practice). PySys_AddAuditHook() now checks if tstate is not NULL to decide if tstate can be used or not, and tstate is set to NULL if the runtime is not initialized yet. Use _PySys_Audit() in sysmodule.c. 26 March 2020, 17:57:32 UTC
e0b8101 bpo-1812: Fix newline conversion when doctest.testfile loads from a package whose loader has a get_data method (GH-17385) This pull request fixes the newline conversion bug originally reported in bpo-1812. When that issue was originally submitted, the open builtin did not default to universal newline mode; now it does, which makes the issue fix simpler, since the only code path that needs to be changed is the one in doctest._load_testfile where the file is loaded from a package whose loader has a get_data method. 26 March 2020, 15:53:16 UTC
59c644e bpo-39879: Update datamodel docs to include dict ordering (GH-19006) Co-authored-by: furkanonder <furkantahaonder@gmail.com> 26 March 2020, 14:54:04 UTC
1b6b0e7 bpo-40069: Clear out .lst files on make clean (GH-19169) Files created on AIX by xlc (C compiler). 26 March 2020, 13:10:04 UTC
b09ae3f bpo-40071: Fix refleak in _functools module (GH19172) 26 March 2020, 12:47:45 UTC
79ceccd bpo-38410: Properly handle PySys_Audit() failures (GH-16657) 26 March 2020, 12:11:13 UTC
62d21c9 bpo-39943: Properly const the pointers in dictkeys_get_index (GH-19170) 26 March 2020, 04:13:01 UTC
cb6534e bpo-40067: Improve error messages for multiple star expressions in assignments (GH-19168) Co-Authored-By: Batuhan Taşkaya <isidentical@gmail.com> Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com> 26 March 2020, 01:54:31 UTC
5c3cda0 bpo-39947: Add PyThreadState_GetID() function (GH-19163) Add PyThreadState_GetID() function: get the unique identifier of a Python thread state. 25 March 2020, 20:23:53 UTC
0e427c6 bpo-39947: Add _PyThreadState_GetDict() function (GH-19160) 25 March 2020, 20:22:55 UTC
302e5a8 bpo-19698: Document when importlib.machinery.FrozenImporter gained spec-related methods (GH-19158) 25 March 2020, 18:57:47 UTC
3072338 bpo-39947: Use PyThreadState_GetFrame() (GH-19159) _tracemalloc.c and _xxsubinterpretersmodule.c use PyThreadState_GetFrame() and PyThreadState_GetInterpreter() to no longer depend on the PyThreadState structure. 25 March 2020, 18:52:02 UTC
89a2209 bpo-40016: re docstring: Clarify relationship of inline and argument flags (#19078) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 25 March 2020, 18:44:47 UTC
back to top