summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* gh-101100: Improve docs on exception attributes (GH-113057)Alex Waygood2023-12-136-67/+115
| | | | | | | | | | | * Improve docs on exception attributes * thanks sphinx-lint * fix doctests * argh, okay, give up on doctests * Various improvements
* Use match/case in grouper() recipe (gh-113059)Raymond Hettinger2023-12-131-8/+9
| | | Use match/case in grouper() reciper
* gh-76785: Fix CODEOWNERS (gh-113038)Eric Snow2023-12-131-14/+7
| | | In gh-112982 I made some changes to .github/CODEOWNERS. Later, @ezio-melotti pointed out that some of those changes were unnecessary.
* gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959)Diego Russo2023-12-134-207/+209
| | | | | 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-1325-44/+112
|
* gh-112205: Support `@setter` annotation from AC (gh-112922)Donghee Na2023-12-139-64/+262
| | | | | | --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Fix whitespace in generated codeMark Shannon2023-12-132-9/+10
|
* [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-137-46/+114
| | | | of creating fake Instructions to represent it (#113016)
* gh-101100: Fix Sphinx warning in references with asterisks (#113029)Hugo van Kemenade2023-12-1322-54/+56
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101336: Add keep_alive keyword arg for asyncio create_server() (#112485)beavailable2023-12-134-0/+17
|
* gh-112622: Pass name to loop create_task method (#112623)Jamie2023-12-133-6/+7
| | | 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-133-154/+90
| | | | | 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-132-9/+6
| | | | | | SelectorEventLoop (#112991) _ensure_fd_no_transport had a KeyError in the success path
* gh-112723: Call `PyThreadState_Clear()` from the correct interpreter (#112776)Sam Gross2023-12-136-55/+34
| | | | | | | | | | | | | The `PyThreadState_Clear()` function must only be called with the GIL held and must be called from the same interpreter as the passed in thread state. Otherwise, any Python objects on the thread state may be destroyed using the wrong interpreter, leading to memory corruption. This is also important for `Py_GIL_DISABLED` builds because free lists will be associated with PyThreadStates and cleared in `PyThreadState_Clear()`. This fixes two places that called `PyThreadState_Clear()` from the wrong interpreter and adds an assertion to `PyThreadState_Clear()`.
* gh-76785: Show the Traceback for Uncaught Subinterpreter Exceptions (gh-113034)Eric Snow2023-12-135-16/+351
| | | 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-126-3/+56
| | | We track the confidence as a scaled int.