summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40196: Fix a bug in the symtable when reporting inspecting global ↵Pablo Galindo2020-04-063-2/+8
| | | | variables (GH-19391)
* bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function (GH-19377)Victor Stinner2020-04-068-6/+25
| | | | | | | | 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.
* bpo-40147: Fix a compiler warning on Windows in Python/compile.c (GH-19389)Zackery Spytz2020-04-061-4/+5
| | | Change the type of nkeywords to Py_ssize_t.
* bpo-40197: Better describe the benchmark results table (GH-19386)Raymond Hettinger2020-04-051-1/+7
|
* Fix misinformation about NaN != NaN comparison (GH-19357)Mark Dickinson2020-04-051-2/+3
|
* bpo-40190: Add support for _SC_AIX_REALMEM in sysconf (GH-19380)Batuhan Taşkaya2020-04-052-0/+4
|
* bpo-40182: Remove the _field_types attribute of the NamedTuple class (GH-19368)Serhiy Storchaka2020-04-055-12/+16
|
* closes bpo-40184: Only define pysiphash if the hash algorithm is SIPHASH24. ↵Batuhan Taşkaya2020-04-041-7/+7
| | | | (GH-19369)
* bpo-40077: Fix potential refleaks of _json: traverse memo (GH-19344)Hai Shi2020-04-042-0/+2
| | | | Fix possible refleaks in _json module, memo of PyScannerObject should be traversed.
* bpo-36517: Raise error on multiple inheritance with NamedTuple (GH-19363)Serhiy Storchaka2020-04-043-0/+12
|
* Convert tuples to sets for faster searches (GH-19365)Raymond Hettinger2020-04-041-3/+3
|
* bpo-40164: Update Windows to OpenSSL 1.1.1f (GH-19359)Steve Dower2020-04-043-4/+5
|
* bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152)Tal Einat2020-04-034-15/+32
| | | Inspect.signature failed on the test case because its isinstance call raised.
* bpo-40158: Fix CPython MSBuild Properties in NuGet Package (GH-19343)Chris Martinez2020-04-032-2/+2
| | | Fix default Python home path relative to the NuGet package
* bpo-40141: Include the value in the column position for keyword AST nodes ↵Pablo Galindo2020-04-032-2/+2
| | | | (GH-19348)
* bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)Pablo Galindo2020-04-034-12/+32
|
* bpo-40131: Fix source and target order in zipapp example (GH-19290)Zackery Spytz2020-04-031-1/+1
|
* bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler ↵Michael Felt2020-04-031-2/+1
| | | | is xlc on AIX (GH-19225)
* bpo-40122: Updated documentation for dis.findlabels() (GH-19274)laike9m2020-04-031-1/+1
|
* bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19320)Victor Stinner2020-04-032-2/+2
| | | Update also OpenSSL version in Ubuntu and Coverage jobs.
* bpo-40162: Update Travis CI config to OpenSSL 1.1.1f (GH-19319)Victor Stinner2020-04-032-1/+2
|
* bpo-40140: test_builtin.PtyTests registers SIGHUP handler (GH-19314)Victor Stinner2020-04-032-8/+21
| | | | | | | | 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.
* lib2to3: Support named assignment expressions (GH-12702)Tim Hatch2020-04-026-6/+27
| | | | | | | | | | | | 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.
* bpo-38972: Link to instructions to change PowerShell execution policy (GH-19131)Derek Keeler2020-04-022-4/+26
|
* bpo-1635741: Fix refleak in _locale init error handling (GH-19307)Hai Shi2020-04-021-15/+26
|
* bpo-1635741: Port resource extension module to multiphase initialization ↵Hai Shi2020-04-022-53/+73
| | | | | (PEP 489) (GH-19252) Fix also reference leaks on error.
* bpo-40115: Fix refleak in test_asyncio.test_run_in_executor_cancel() (GH-19282)Kyle Stanley2020-04-021-0/+2
| | | Call explicitly self.loop.shutdown_default_executor().
* bpo-40094: Fix which.py script exit code (GH-19286)Victor Stinner2020-04-022-0/+4
| | | | It now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code.
* bpo-40094: CGIHTTPRequestHandler logs exit code (GH-19285)Victor Stinner2020-04-022-2/+6
| | | | | | | 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."
* bpo-37207: Use PEP 590 vectorcall to speed up dict() (GH-19280)Dong-hee Na2020-04-022-0/+35
|
* bpo-40146: Update OpenSSL to 1.1.1f in Azure Pipelines (GH-19288)Victor Stinner2020-04-023-4/+5
|
* bpo-39503: CVE-2020-8492: Fix AbstractBasicAuthHandler (GH-18284)Victor Stinner2020-04-024-52/+115
| | | | | | | | | | | | | 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>
* bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287)Victor Stinner2020-04-021-0/+1
| | | | mailcap.test() now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code.
* bpo-40141: Add line and column information to ast.keyword nodes (GH-19283)Pablo Galindo2020-04-026-8/+117
|
* bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201)Victor Stinner2020-04-0118-61/+258
| | | | | | | | | | | | | | 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.
* bpo-38527: fix configure script for Solaris (GH-16845)Arnon Yaari2020-04-013-4/+6
| | | | | 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
* bpo-40071: Fix potential crash in _functoolsmodule.c (GH-19273)Paulo Henrique Silva2020-04-011-1/+4
| | | | | | | | | | | | | | | | | 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.
* bpo-39682: make `pathlib.Path` immutable by removing (undocumented) support ↵Barney Gale2020-04-013-49/+21
| | | | | | 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.
* bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514)Zackery Spytz2020-04-015-1/+18
| | | | | | | | | * 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
* bpo-40094: Enhance os.WIFEXITED documentation (GH-19244)Victor Stinner2020-04-011-10/+24
|
* bpo-40130: _PyUnicode_AsKind() should not be exported. (GH-19265)Serhiy Storchaka2020-04-012-55/+46
| | | | | Make it a static function, and pass known attributes (kind, data, length) instead of the PyUnicode object.
* bpo-40121: Fix exception type in test (GH-19267)Steve Dower2020-04-011-1/+1
|
* Handle when IOCTL_VM_SOCKETS_GET_LOCAL_CID does not exist in "socket" (GH-19270)Pablo Galindo2020-03-311-0/+2
| | | | | | | 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
* bpo-40094: Add missing import to wait_process() (GH-19268)Victor Stinner2020-04-011-0/+2
|
* bpo-40094: Add run_command() to setup.py (GH-19266)Victor Stinner2020-04-011-16/+22
|
* bpo-31160: Fix race condition in test_os.PtyTests (GH-19263)Victor Stinner2020-04-011-2/+9
| | | | bpo-31160, bpo-40094: Wait until the process completes before closing the PTY to prevent sending SIGHUP to the child process.
* bpo-40094: Add _bootsubprocess._waitstatus_to_exitcode (GH-19264)Victor Stinner2020-03-311-11/+15
| | | | | | | * 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.
* bpo-39943: Clean up marshal.c. (GH-19236)Serhiy Storchaka2020-03-311-57/+31
| | | | | | * Add consts. * Remove redundant casts and checks. * Use concrete C API macros. * Avoid raising and silencing OverflowError for ints.
* bpo-40094: Enhance threading tests (GH-19260)Victor Stinner2020-03-312-31/+39
| | | | | | | * 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.
* bpo-40094: Enhance fork and wait tests (GH-19259)Victor Stinner2020-03-314-24/+15
| | | | | | * 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.