summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-87389: Fix an open redirection vulnerability in http.server. (#93879)Gregory P. Smith2022-06-213-2/+61
| | | | | | | | Fix an open redirection vulnerability in the `http.server` module when an URI path starts with `//` that could produce a 301 Location header with a misleading target. Vulnerability discovered, and logic fix proposed, by Hamza Avvan (@hamzaavvan). Test and comments authored by Gregory P. Smith [Google].
* DOC: correct bytesarray -> bytearray in comments (GH-92410)Thomas A Caswell2022-06-212-2/+2
|
* gh-82927: Update files related to HTML entities. (GH-92504)Ezio Melotti2022-06-216-78/+29
|
* gh-93021: Fix __text_signature__ for __get__ (GH-93023)Jelle Zijlstra2022-06-213-2/+10
| | | | | Because of the way wrap_descr_get is written, the second argument to __get__ methods implemented through the wrapper is always optional.
* Tutorial: specify match cases don't fall through (GH-93615)max2022-06-211-2/+4
|
* gh-93240: clarify wording in IO tutorial (GH-93276)paulreece2022-06-211-1/+1
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Minor optimization for Fractions.limit_denominator (GH-93730)Mark Dickinson2022-06-211-6/+8
| | | | | | | | | | When we construct the upper and lower candidates in limit_denominator, the numerator and denominator are already relatively prime (and the denominator positive) by construction, so there's no need to go through the usual normalisation in the constructor. This saves a couple of potentially expensive gcd calls. Suggested by Michael Scott Asato Cuthbert in GH-93477.
* gh-93675: Fix typos in `Doc/` (GH-93676)luzpaz2022-06-216-6/+6
| | | Closes #93675
* gh-93851: Fix all broken links in Doc/ (GH-93853)Oleg Iarygin2022-06-2130-47/+59
|
* Closes gh-94038: Update Release Schedule in README.rst from PEP 664 to PEP ↵MilanJuhas2022-06-211-1/+1
| | | | 693 (GH-94046)
* gh-94068: Remove HVSOCKET_CONTAINER_PASSTHRU constant because it has been ↵Steve Dower2022-06-213-3/+0
| | | | | | | removed from Windows (GH-94069) Fixes #94068 Automerge-Triggered-By: GH:zware
* gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)Adam Turner2022-06-2111-52/+18
| | | | | | | | | * Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)" This reverts commit 5c1f15b4b1024cbf0acc85832f0c623d1a4605fd * Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)" This reverts commit b63a620014b67a6e63d10783149c41baaf59def8.
* GH-93841: Allow stats to be turned on and off, cleared and dumped at ↵Mark Shannon2022-06-217-22/+212
| | | | runtime. (GH-93843)
* gh-74953: _PyThread_cond_after() uses _PyTime_t (#94056)Victor Stinner2022-06-212-29/+16
| | | | | | pthread _PyThread_cond_after() implementation now uses the _PyTime_t type to handle properly overflow: clamp to the maximum value. Remove MICROSECONDS_TO_TIMESPEC() function.
* gh-54781: Move Lib/lib2to3/tests/ to Lib/test/test_lib2to3/ (#94049)Victor Stinner2022-06-2135-68/+68
| | | | | | | | * Move Lib/lib2to3/tests/ to Lib/test/test_lib2to3/. * Remove Lib/test/test_lib2to3.py. * Update imports. * all_project_files(): use different paths and sort files to make the tests more reproducible. * Update references to tests.
* gh-93839: Use load_package_tests() for testmock (GH-94055)Christian Heimes2022-06-211-14/+3
| | | | | Fixes failing tests on WebAssembly platforms. Automerge-Triggered-By: GH:tiran
* gh-94052: Don't re-run failed tests with --python option (#94054)Christian Heimes2022-06-213-6/+17
|
* gh-94028: Clear and reset sqlite3 statements properly in cursor iternext ↵Erlend Egeberg Aasland2022-06-213-0/+45
| | | | (GH-94042)
* GH-91432: Specialize FOR_ITER (GH-91713)Dennis Sweeney2022-06-2122-282/+447
| | | | | * Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations. * Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints.
* gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)Victor Stinner2022-06-2138-137/+77
| | | | | | | | * Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py
* gh-93839: Move Lib/ctypes/test/ to Lib/test/test_ctypes/ (#94041)Victor Stinner2022-06-2160-93/+83
| | | | | * Move Lib/ctypes/test/ to Lib/test/test_ctypes/ * Remove Lib/test/test_ctypes.py * Update imports and build system.
* GH-93678: refactor compiler so that optimizer does not need the assembler ↵Irit Katriel2022-06-212-160/+170
| | | | and compiler structs (GH-93842)
* gh-94021: Address unreachable code warning in specialize code (GH-94022)Christian Heimes2022-06-212-1/+3
|
* GH-93249: relax overly strict assertion on bounds->ar_start (GH-93961)Irit Katriel2022-06-202-2/+33
|
* gh-93937: PyOS_StdioReadline() uses PyConfig.legacy_windows_stdio (#94024)Victor Stinner2022-06-202-1/+5
| | | | | | | On Windows, PyOS_StdioReadline() now gets PyConfig.legacy_windows_stdio from _PyOS_ReadlineTState, rather than using the deprecated global Py_LegacyWindowsStdioFlag variable. Fix also a compiler warning in Py_SetStandardStreamEncoding().
* gh-87347: Add parenthesis around macro arguments (#93915)Victor Stinner2022-06-2030-144/+172
| | | Add unit test on Py_MEMBER_SIZE() and some other macros.
* gh-90539: doc: Expand on what should not go into CFLAGS, LDFLAGS (#92754)Matthias Köppe2022-06-201-0/+18
|
* GH-93516: Speedup line number checks when tracing. (GH-93763)Mark Shannon2022-06-206-8/+101
| | | | * Use a lookup table to reduce overhead of getting line numbers during tracing.
* GH-93897: Store frame size in code object and de-opt if insufficient space ↵Mark Shannon2022-06-208-67/+50
| | | | on thread frame stack. (GH-93908)
* gh-84461: Silence some compiler warnings on WASM (GH-93978)Christian Heimes2022-06-207-8/+12
|
* gh-79009: sqlite3.iterdump now correctly handles tables with autoincrement ↵itssme2022-06-194-1/+62
| | | | | (#9621) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-61162: Clarify sqlite3 connection context manager docs (GH-93890)Erlend Egeberg Aasland2022-06-192-4/+19
| | | | | | | | | | Explicitly note that transactions are only closed if there is an open transation at `__exit__`, and that transactions are not implicitly opened during `__enter__`. Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:erlend-aasland
* gh-93925: Improve clarity of sqlite3 commit/rollback, and close docs (#93926)Erlend Egeberg Aasland2022-06-193-19/+30
| | | Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-84461: Skip test_unwritable_directory again on Emscripten (GH-94007)Christian Heimes2022-06-191-0/+1
| | | GH-93992 removed geteuid() and enabled the test again on Emscripten.
* gh-84461: Fix Emscripten umask and permission issues (GH-94002)Christian Heimes2022-06-194-0/+23
| | | | | | | | - Emscripten's default umask is too strict, see https://github.com/emscripten-core/emscripten/issues/17269 - getuid/getgid and geteuid/getegid are stubs that always return 0 (root). Disable effective uid/gid syscalls and fix tests that use chmod() current user. - Cannot drop X bit from directory.
* gh-93991: Use boolean instead of 0/1 for condition check (GH-93992)Lei Zhang2022-06-191-4/+4
| | | # gh-93991: Use boolean instead of 0/1 for condition check
* gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)Victor Stinner2022-06-1921-28/+61
| | | | | | | | | | | | | | | | Move the follow functions and type from frameobject.h to pyframe.h, so the standard <Python.h> provide frame getter functions: * PyFrame_Check() * PyFrame_GetBack() * PyFrame_GetBuiltins() * PyFrame_GetGenerator() * PyFrame_GetGlobals() * PyFrame_GetLasti() * PyFrame_GetLocals() * PyFrame_Type Remove #include "frameobject.h" from many C files. It's no longer needed.
* gh-74953: Reformat PyThread_acquire_lock_timed() (#93947)Victor Stinner2022-06-191-46/+62
| | | | | | | | Reformat the pthread implementation of PyThread_acquire_lock_timed() using a mutex and a conditioinal variable. * Add goto to avoid multiple indentation levels and exit quickly * Use "while(1)" and make the control flow more obvious. * PEP 7: Add braces around if blocks.
* gh-93761: Fix test_logging test_config_queue_handler() race condition (#93952)Victor Stinner2022-06-191-0/+3
| | | Fix a race condition in test_config_queue_handler() of test_logging.
* What's new in 3.10: fix link to issue (#93968)Hugo van Kemenade2022-06-191-1/+1
| | | | | | | | | * What's new in 3.10: fix link to issue * What's new in 3.10: fix link to GH issue Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-93990: fix refcounting bug in `add_subclass` in `typeobject.c` (GH-93989)Kumar Aditya2022-06-191-1/+4
|
* gh-93975: Nicer error reporting in test_venv (GH-93959)Jason R. Coombs2022-06-182-14/+32
| | | | | | | | | | - gh-93957: Provide nicer error reporting from subprocesses in test_venv.EnsurePipTest.test_with_pip. - Update changelog This change does three things: 1. Extract a function for trapping output in subprocesses. 2. Emit both stdout and stderr when encountering an error. 3. Apply the change to `ensurepip._uninstall` check.
* gh-91387: Fix tarfile test on WASI (GH-93984)Christian Heimes2022-06-181-1/+1
| | | WASI's rmdir() syscall does not like the trailing slash.
* gh-93955: Use unbound methods for slot `__getattr__` and `__getattribute__` ↵Ken Jin2022-06-182-1/+9
| | | | (GH-93956)
* gh-84461: Fix pydebug Emscripten browser builds (GH-93982)Christian Heimes2022-06-182-16/+28
| | | | wasm_assets script did not take the ABIFLAG flag of sysconfigdata into account.
* gh-89828: Do not relay the __class__ attribute in GenericAlias (#93754)Serhiy Storchaka2022-06-187-20/+18
| | | | | list[int].__class__ returned type, and isinstance(list[int], type) returned True. It caused numerous problems in code that checks isinstance(x, type).
* gh-84461: Fix circulare dependency on BUILDPYTHON (GH-93977)Christian Heimes2022-06-183-4/+14
|
* Add jaraco as primary owner of importlib.metadata and importlib.resources. ↵Jason R. Coombs2022-06-181-0/+2
| | | | | | | | | | | (#93960) * Add jaraco as primary owner of importlib.metadata and importlib.resources. * Align indentation. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-91387: Strip trailing slash from tarfile longname directories (GH-32423)Chris Fernald2022-06-173-0/+28
| | | Co-authored-by: Brett Cannon <brett@python.org>
* GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized (GH-93917)Irit Katriel2022-06-172-3/+3
|