summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* GH-111485: Delete the old generator code. (GH-113321)Mark Shannon2023-12-211-46/+31
|
* gh-113336: Remove the 'version' directive from Argument Clinic (#113341)Erlend E. Aasland2023-12-211-65/+0
| | | | | The 'version' directive was introduced with gh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
* GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (#113334)Martijn Pieters2023-12-202-8/+20
| | | | | | When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object. This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).
* gh-113255: Clarify docs for `typing.reveal_type` (#113286)Kir2023-12-201-2/+2
| | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* GH-111485: Generate instruction and uop metadata (GH-113287)Mark Shannon2023-12-202-12/+11
|
* gh-112205: Support docstring for `@getter` (#113160)Donghee Na2023-12-202-5/+30
| | | | | --------- Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-87264: Convert tarinfo type to stat type (GH-113230)Marat Idrisov2023-12-192-5/+22
| | | Co-authored-by: val-shkolnikov <val@nvsoft.net>
* gh-112205: Require @getter and @setter to be methods (#113278)Erlend E. Aasland2023-12-191-0/+11
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113054: Compiler no longer replaces a redundant jump with no line number ↵Irit Katriel2023-12-191-0/+4
| | | | by a NOP (#113139)
* gh-113269: IDLE - Fix test_editor hang (macOS) (#113271)Terry Jan Reedy2023-12-192-1/+3
| | | | Hangs on installed 3.13.0a2 on macOS Catalina. Behavior on installed 3.12.1 and 3.11.7 is unknown.
* gh-102362: Fix macOS version number in result of sysconfig.get_platform() ↵Ronald Oussoren2023-12-181-0/+5
| | | | | | | | | | | (GH-112942) Change _osx_support.get_platform_osx() to make sure that the version number in the result includes at least a major and minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is set to just a major version (e.g. 14). This matches the versions expected by pip when selecting appropriate wheels for installation.
* gh-113199: Make read1() and readline() of HTTPResponse close IO after ↵Illia Volochii2023-12-182-2/+18
| | | | reading all data (GH-113200)
* GH-111485: Break up instructions with unused cache entries into component ↵Mark Shannon2023-12-181-0/+4
| | | | micro-ops (GH-113169)
* GH-111485: Test the new cases generator (GH-113252)Mark Shannon2023-12-181-50/+64
|
* gh-113246: Updated bundled pip to 23.3.2 (gh-113249)Stéphane Bidoul2023-12-182-1/+1
| | | Updated bundled pip to 23.3.2
* gh-113117: Support posix_spawn in subprocess.Popen with close_fds=True (#113118)Jakub Kulík2023-12-172-3/+13
| | | | | | | | Add support for `os.POSIX_SPAWN_CLOSEFROM` and `posix_spawn_file_actions_addclosefrom_np` and have the `subprocess` module use them when available. This means `posix_spawn` can now be used in the default `close_fds=True` situation on many platforms. Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-113149: Improve error message when JSON has trailing comma (GH-113227)Carson Radtke2023-12-172-3/+12
|
* gh-113119 fix environment handling in subprocess.Popen when posix_spawn is ↵Jakub Kulík2023-12-171-3/+0
| | | | | | | used (#113120) * Allow posix_spawn to inherit environment form parent environ variable. With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
* IDLE: Add util and stub example comments (#113222)Terry Jan Reedy2023-12-172-3/+5
|
* GH-110109: pathlib tests: store base directory as test class attribute (#113221)Barney Gale2023-12-172-222/+210
| | | | | | | | | Store the test base directory as a class attribute named `base` rather than module constants named `BASE`. The base directory is a local file path, and therefore not ideally suited to the pathlib ABC tests. In a future commit we'll change its value in `test_pathlib_abc.py` such that it points to a totally fictitious path, which will help to ensure we're not touching the local filesystem.
* GH-110109: Move tests for pathlib ABCs to new module. (#112904)Barney Gale2023-12-163-1893/+1926
|
* gh-113202: Add a strict option to itertools.batched() (gh-113203)Raymond Hettinger2023-12-161-0/+4
|
* gh-67790: Support basic formatting for Fraction (#111320)Mark Dickinson2023-12-162-24/+115
| | | | | | | | | | | PR #100161 added fancy float-style formatting for the Fraction type, but left us in a state where basic formatting for fractions (alignment, fill, minimum width, thousands separators) still wasn't supported. This PR adds that support. --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-112383: Fix test_loop_quicken when an executor is installed (GH-113153)Brandt Bucher2023-12-151-2/+7
|
* [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() ↵Victor Stinner2023-12-152-17/+321
| | | | | | | | | | (#111116) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). Add an optional 'strict' parameter to getaddresses() and parseaddr() functions. Patch by Thomas Dwyer. Co-Authored-By: Thomas Dwyer <github@tomd.tel>
* gh-113009: Fix multiprocessing Process.terminate() on Windows (#113128)Victor Stinner2023-12-151-24/+30
| | | | | | On Windows, Process.terminate() no longer sets the returncode attribute to always call WaitForSingleObject() in Process.wait(). Previously, sometimes the process was still running after TerminateProcess() even if GetExitCodeProcess() is not STILL_ACTIVE.
* gh-112278: Add retry in WMI tests in case of slow initialization (GH-113154)AN Long2023-12-151-7/+19
|
* gh-61648: Detect line numbers of properties in doctests (GH-113161)Serhiy Storchaka2023-12-153-0/+20
|
* gh-112720: Move dis's cache output code to the Formatter, labels lookup to ↵Irit Katriel2023-12-152-81/+104
| | | | the arg_resolver. Reduce the number of parameters passed around. (#113108)
* gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770)Serhiy Storchaka2023-12-141-0/+26
| | | | | | It was raised in two cases: * in the import statement when looking up __import__ * in pickling some builtin type when looking up built-ins iter, getattr, etc.
* gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows ↵Serhiy Storchaka2023-12-143-3/+4
| | | | (GH-113049)
* gh-113090: Fix test.support.os_support.can_chmod() on Windows (GH-113091)Serhiy Storchaka2023-12-144-6/+12
|
* gh-111049: Fix crash during garbage collection of the BytesIO buffer object ↵Serhiy Storchaka2023-12-141-0/+21
| | | | (GH-111221)
* gh-113086: Add tests for os.chmod() and os.lchmod() (GH-113087)Serhiy Storchaka2023-12-142-1/+118
| | | Also make test_copymode_symlink_to_symlink in test_shutil more strict.
* gh-86179: Implement realpath() on Windows for getpath.py calculations ↵Steve Dower2023-12-132-11/+23
| | | | (GH-113033)
* Move optimizer/executor tests to new file test_capi/test_opt.py (#113072)Guido van Rossum2023-12-132-535/+544
|
* bpo-40648: Test modes that file can get with chmod() on Windows (GH-20130)Pavol Babinčák‏2023-12-131-0/+7
| | | | | Order of tests matter second part makes testing file writable and possible to remove again.
* gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959)Diego Russo2023-12-131-148/+84
| | | | | Fix the same issue of PR #112604 on PPC64LE platform Refactor tests to make easier to add more platfroms if needed.
* gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows (GH-112778)Steve Dower2023-12-133-10/+27
|
* gh-112205: Support `@setter` annotation from AC (gh-112922)Donghee Na2023-12-132-3/+83
| | | | | | --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [pprint]: Add docstring about `PrettyPrinter.underscore_numbers` parameter ↵Sequew2023-12-131-0/+3
| | | | | (#112963) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-112962: in dis module, put cache information in the Instruction instead ↵Irit Katriel2023-12-135-43/+96
| | | | of creating fake Instructions to represent it (#113016)
* gh-101336: Add keep_alive keyword arg for asyncio create_server() (#112485)beavailable2023-12-132-0/+8
|
* gh-112622: Pass name to loop create_task method (#112623)Jamie2023-12-132-6/+5
| | | This affects task creation through either `asyncio.create_task()` or `TaskGroup.create_task()` -- the redundant call to `task.set_name()` is skipped. We still call `set_name()` when a task factory is involved, because the task factory call signature (unfortunately) doesn't take a `name` argument.
* gh-76785: Avoid Pickled TracebackException for Propagated Subinterpreter ↵Eric Snow2023-12-131-1/+1
| | | | | Exceptions (gh-113036) We need the TracebackException of uncaught exceptions for a single purpose: the error display. Thus we only need to pass the formatted error display between interpreters. Passing a pickled TracebackException is overkill.
* gh-112989: asyncio: Reduce overhead to connect sockets with ↵J. Nick Koston2023-12-131-9/+5
| | | | | | SelectorEventLoop (#112991) _ensure_fd_no_transport had a KeyError in the success path
* gh-76785: Show the Traceback for Uncaught Subinterpreter Exceptions (gh-113034)Eric Snow2023-12-133-4/+143
| | | When an exception is uncaught in Interpreter.exec_sync(), it helps to show that exception's error display if uncaught in the calling interpreter. We do so here by generating a TracebackException in the subinterpreter and passing it between interpreters using pickle.
* gh-112320: Implement on-trace confidence tracking for branches (#112321)Guido van Rossum2023-12-121-0/+31
| | | We track the confidence as a scaled int.
* gh-76785: Add Interpreter.prepare_main() (gh-113021)Eric Snow2023-12-125-17/+90
| | | This is one of the last pieces to get test.support.interpreters in sync with PEP 734.
* gh-76785: More Fixes for test.support.interpreters (gh-113012)Eric Snow2023-12-122-86/+168
| | | This brings the module (along with the associated extension modules) mostly in sync with PEP 734. There are only a few small things to wrap up.