summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-113119 fix environment handling in subprocess.Popen when posix_spawn is ↵Jakub Kulík2023-12-175-10/+21
| | | | | | | 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-164-1893/+1927
|
* gh-113202: Add a strict option to itertools.batched() (gh-113203)Raymond Hettinger2023-12-165-24/+60
|
* gh-67790: Support basic formatting for Fraction (#111320)Mark Dickinson2023-12-165-31/+155
| | | | | | | | | | | 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-113046: Revise csv.reader doc (#113207)Terry Jan Reedy2023-12-161-4/+7
| | | | Clarify nature of csvfile.
* gh-111964: Add _PyRWMutex a "readers-writer" lock (gh-112859)Sam Gross2023-12-163-0/+244
| | | | This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to serialize global stop-the-world pauses with per-interpreter pauses.
* Add reshape() recipe to demonstrate a use case for batched() and ↵Raymond Hettinger2023-12-161-3/+24
| | | | chained.from_iterable() (gh-113198)
* gh-110746: Improve markup in ``tkinter.ttk.rst`` (#111236)Akshat Khandelwal2023-12-152-15/+17
| | | | | | | | | | | | * gh-110746: Improve markup in tkinter.ttk.rst * gh-110746: Improve markup in tkinter.ttk.rst * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* GH-112383: Fix test_loop_quicken when an executor is installed (GH-113153)Brandt Bucher2023-12-151-2/+7
|
* gh-101100: Fix various Sphinx warnings for dunder references in the ↵Alex Waygood2023-12-158-24/+34
| | | | `library/` directory (#113163)
* gh-101100: Fix Sphinx nitpicks in `library/numbers.rst` (#113162)Alex Waygood2023-12-152-10/+10
|
* gh-113172: Fix compiler warnings in Modules/_xxinterpqueuesmodule.c (GH-113173)Serhiy Storchaka2023-12-151-1/+3
| | | Fix compiler waarnings in Modules/_xxinterpqueuesmodule.c
* [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() ↵Victor Stinner2023-12-155-21/+357
| | | | | | | | | | (#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-152-24/+35
| | | | | | 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-154-0/+21
|
* GH-111485: Mark some instructions as `TIER_ONE_ONLY` (GH-113155)Brandt Bucher2023-12-153-139/+14
|
* 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-101100: Fix Sphinx nitpicks in `library/rlcompleter.rst` (#113125)Alex Waygood2023-12-153-19/+24
|
* gh-112535: Update _Py_ThreadId() to support RISC-V (gh-113084)Furkan Onder2023-12-141-0/+7
| | | Update _Py_ThreadId() to support RISC-V
* Optimize unique_justseen() recipe for a common case. (gh-113147)Raymond Hettinger2023-12-141-0/+2
|
* gh-101100: Cleanup `mailbox` docs (#113124)Alex Waygood2023-12-142-123/+139
|
* gh-101100: Fix Sphinx warnings in `whatsnew/2.3.rst` (#112373)Hugo van Kemenade2023-12-142-139/+138
|
* Remove itertool recipe with low pedagogical value (gh-113138)Raymond Hettinger2023-12-141-32/+32
|
* gh-101100: Fix Sphinx nitpicks in `library/collections.abc.rst` (#113116)Alex Waygood2023-12-143-41/+43
|
* Add recipe for totient() to demonstrate unique_justseen() and factor(). ↵Raymond Hettinger2023-12-141-0/+27
| | | | (gh-113131)
* gh-105912: document gotcha with using os.fork on macOS (#112871)Ronald Oussoren2023-12-143-0/+21
| | | | | | | | | | | | | * gh-105912: document gotcha with using os.fork on macOS Using ``fork(2)`` on macOS when also using higher-level system APIs in the parent proces can crash on macOS because those system APIs are not written to handle this usage pattern. There's nothing we can do about this other than documenting the problem. Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* bpo-36796: Clean the error handling in _testcapimodule.c (GH-13085)Zackery Spytz2023-12-142-14/+50
|
* GH-111485: Sort metadata tables for easier checking of future diffs (GH-113101)Mark Shannon2023-12-142-1509/+1511
|
* gh-113113: doc: use less ambiguously named variable (gh-113114)jeremy-dolan2023-12-141-3/+3
|
* gh-86179: Avoid making case-only changes when calculating realpath() during ↵Steve Dower2023-12-141-2/+11
| | | | initialization (GH-113077)
* GH-112354: Treat _EXIT_TRACE like an unconditional side exit (GH-113104)Mark Shannon2023-12-145-22/+5
|
* gh-101100: Fix Sphinx nitpicks in `library/traceback.rst` (#113106)Alex Waygood2023-12-143-38/+75
|
* gh-101100: Fix Sphinx nitpicks in `library/inspect.rst` and ↵Alex Waygood2023-12-143-5/+7
| | | | `reference/simple_stmts.rst` (#113107)
* gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770)Serhiy Storchaka2023-12-143-2/+30
| | | | | | 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-112730: Update docs for colour env vars (#112837)Hugo van Kemenade2023-12-143-2/+9
|
* gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows ↵Serhiy Storchaka2023-12-149-28/+93
| | | | (GH-113049)
* gh-113090: Fix test.support.os_support.can_chmod() on Windows (GH-113091)Serhiy Storchaka2023-12-144-6/+12
|
* gh-112205: Update textio module to use `@getter` as possible. (gh-113095)Donghee Na2023-12-142-49/+125
|
* Fixing typo in DocTestRunner docs (GH-112326)Daniel Wysocki2023-12-141-1/+1
|
* gh-111049: Fix crash during garbage collection of the BytesIO buffer object ↵Serhiy Storchaka2023-12-143-10/+27
| | | | (GH-111221)
* gh-90890: Reorder mailbox.Maildir method documentation (GH-113071)Stephen Gildea2023-12-141-40/+40
| | | | | | | | | | When new mailbox.Maildir methods were added for 3.13.0a2, their documentation was added at the end of the mailbox.Maildir section instead of grouping them with other methods Maildir adds to Mailbox. This commit moves the new methods' documentation adjacent to documentation for existing Maildir-specific methods, so that the "special remarks" for common methods remains at the end.
* 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-134-11/+63
| | | | (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-132-0/+8
| | | | | Order of tests matter second part makes testing file writable and possible to remove again.
* gh-107959: clarify Unix-availability of `os.lchmod()` (GH-107960)Christoph Anton Mitterer2023-12-131-1/+4
| | | | | | | | | | | | | | | | POSIX specifies that implementations are not required to support changing the file mode of symbolic links, but may do so. Consequently, `lchmod()` is not part of POSIX (but mentioned for implementations which do support the above). The current wording of the availability of `os.lchmod()` is rather vague and improved to clearly tell which POSIX/Unix/BSD-like support the function in general (those that support changing the file mode of symbolic links). Further, some examples of major implementations are added. Data for the BSDs taken from their online manpages. Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Docs: Fix external link to devguide.python.org (GH-112899)Miro Hrončok2023-12-131-1/+1
|