summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-110383: Explained which error message is generated when there is an ↵Unique-Usman2023-11-191-2/+1
| | | | | | unhandled exception (#111574) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-110383: Fix documentation profile cumtime fix (#112221)Alex Ptakhin2023-11-191-2/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Fix typo in documentation of `importlib.metadata` (GH-112099)Charlie Zhao2023-11-171-1/+1
| | | Fix minor typo in importlib doc
* gh-112026: Update What's New: _PyObject_Vectorcall() was restored (#112171)Victor Stinner2023-11-171-14/+0
|
* gh-110481, doc: Add "immortal" term to the glossary (#112180)Victor Stinner2023-11-178-21/+32
|
* gh-94309: "What's new in Python 3.12": improve deprecation notice for ↵Ori Avtalion2023-11-171-2/+3
| | | | typing.Hashable and typing.Sized (#112196)
* gh-112165: Fix typo in `__main__.py` (#112183)Terry Jan Reedy2023-11-171-1/+1
| | | Change '[2]' to '[1]' to get second argument.
* [doc] Make subprocess.wait documentation more precise (#98700)Luis Pedro Coelho2023-11-161-3/+4
| | | | | | | | | | [doc] Make subprocess.wait doc more precise An active loop is only used when the `timeout` parameter is used on POSIX. When no timeout is used, the code calls `os.waitpid` internally (which puts the process on a sleep status). On Windows, the internal Windows API call accepts a timeout parameter, so that is delegated to the OS.
* gh-110812: Isolating Extension Modules HOWTO: List GC-related gotchas ↵Petr Viktorin2023-11-161-6/+97
| | | | | | (GH-111504) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-112088: Run autoreconf in GHA check_generated_files (#112090)Victor Stinner2023-11-151-5/+12
| | | | | | | | | | | The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the external quay.io server. Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The "quay.io/tiran/cpython_autoconf:271" container image (https://github.com/tiran/cpython_autoconf) is no longer used.
* gh-112026: Add again <unistd.h> include in Python.h (#112046)Victor Stinner2023-11-151-18/+0
| | | | Add again <ctype.h> and <unistd.h> includes in Python.h, but don't include them in the limited C API version 3.13 and newer.
* Fix typo in perf profiling docs (#112112)Ryuji Tsutsui2023-11-151-1/+1
|
* Docs: Add the time to the HTML last updated format (#110091)Adam Turner2023-11-151-3/+2
|
* gh-111545: Test PyHash_GetFuncDef() function (#112098)Victor Stinner2023-11-152-0/+49
| | | Add Modules/_testcapi/hash.c and Lib/test/test_capi/test_hash.py.
* gh-111262: Add PyDict_Pop() function (#112028)Victor Stinner2023-11-142-0/+33
| | | | | | | _PyDict_Pop_KnownHash(): remove the default value and the return type becomes an int. Co-authored-by: Stefan Behnel <stefan_ml@behnel.de> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* gh-111622: Fix doc for items views (#112051)Terry Jan Reedy2023-11-141-5/+8
| | | | They are set-like even when some values are not hashable, but work even better when all are.
* GH-110417: Fix `glob` docs ordering (#110418)Barney Gale2023-11-131-34/+35
| | | | | | | Fix incorrect placement of `translate()` docs from cf67ebf. Move "see also: pathlib" admonition to the bottom of the page, alongside one for fnmatch. This helps the module introduction flow more naturally into the function descriptions. Add an "Examples" subheading just before the examples. This makes it more obvious that examples aren't specifically related to the preceding documentation of `escape()` and `translate()`.
* GH-72904: Add `glob.translate()` function (#106703)Barney Gale2023-11-132-0/+46
| | | | | | | | | | | Add `glob.translate()` function that converts a pathname with shell wildcards to a regular expression. The regular expression is used by pathlib to implement `match()` and `glob()`. This function differs from `fnmatch.translate()` in that wildcards do not match path separators by default, and that a `*` pattern segment matches precisely one path segment. When *recursive* is set to true, `**` pattern segments match any number of path segments, and `**` cannot appear outside its own segment. In pathlib, this change speeds up directory walking (because `_make_child_relpath()` does less work), makes path objects smaller (they don't need a `_lines` slot), and removes the need for some gnarly code. Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-111138: Add PyList_Extend() and PyList_Clear() functions (#111862)Victor Stinner2023-11-132-0/+28
| | | | | | * Split list_extend() into two sub-functions: list_extend_fast() and list_extend_iter(). * list_inplace_concat() no longer has to call Py_DECREF() on the list_extend() result, since list_extend() now returns an int.
* Docs: Add `make htmllive` to rebuild and reload HTML files in your browser ↵Hugo van Kemenade2023-11-132-0/+7
| | | | (#111900)
* gh-111944: Add assignment expression parentheses requirements (#111977)Terry Jan Reedy2023-11-131-4/+5
| | | | | | | gh-111944: Clarify where assignment expressions require ()s Augment the list of places where parentheses are required around assignnment statements. In particular, 'a := 0' and 'a = b := 1' are syntax errors.
* gh-90890: New methods to access mailbox.Maildir message info and flags (#103905)Stephen Gildea2023-11-111-1/+103
| | | | | | | | | | | | | | | New methods to access mailbox.Maildir message info and flags: get_info, set_info, get_flags, set_flags, add_flag, remove_flag. These methods speed up accessing a message's info and/or flags and are useful when it is not necessary to access the message's contents, as when iterating over a Maildir to find messages with specific flags. --------- * Add more str type checking * modernize to f-strings instead of % Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-110722: Make `-m test -T -j` use sys.monitoring (GH-111710)Łukasz Langa2023-11-101-1/+9
| | | | | | | | | | | Now all results from worker processes are aggregated and displayed together as a summary at the end of a regrtest run. The traditional trace is left in place for use with sequential in-process test runs but now raises a warning that those numbers are not precise. `-T -j` requires `--with-pydebug` as it relies on `-Xpresite=`.
* gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)Zac Hatfield-Dodds2023-11-101-3/+3
|
* gh-81925: Implement native thread ids for kFreeBSD (#111761)Samuel Thibault2023-11-093-4/+10
| | | | | --------- Co-authored-by: Antoine Pitrou <antoine@python.org>
* gh-111895: Convert definition list to bullet list for readability on mobile ↵Hugo van Kemenade2023-11-091-6/+6
| | | | | (#111898) Convert definition list to bullet list for readability on mobile
* Add detail to comment on range of random.random() (gh-111868)zipperer2023-11-091-1/+1
| | | | | --------- Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* gh-111835: Add seekable method to mmap.mmap (gh-111852)Donghee Na2023-11-092-0/+16
|
* gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453)Serhiy Storchaka2023-11-081-2/+16
| | | | | * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation.
* gh-111246: Remove listening Unix socket on close (#111483)Pierre Ossman (ThinLinc team)2023-11-082-1/+16
| | | | | Try to clean up the socket file we create so we don't add unused noise to the file system.
* Glossary: Add "static type checker" (#111837)Jelle Zijlstra2023-11-084-7/+14
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-111089: Revert PyUnicode_AsUTF8() changes (#111833)Victor Stinner2023-11-073-18/+0
| | | | | | | | | | | | | | | | | | | | | * Revert "gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585)" This reverts commit d9b606b3d04fc56fb0bcc479d7d6c14562edb5e2. * Revert "gh-111089: Use PyUnicode_AsUTF8() in getargs.c (#111620)" This reverts commit cde1071b2a72e8261ca66053ef61431b7f3a81fd. * Revert "gh-111089: PyUnicode_AsUTF8() now raises on embedded NUL (#111091)" This reverts commit d731579bfb9a497cfb0076cb6b221058a20088fe. * Revert "gh-111089: Add PyUnicode_AsUTF8() to the limited C API (#111121)" This reverts commit d8f32be5b6a736dc2fc9dca3f1bf176c82fc9b44. * Revert "gh-111089: Use PyUnicode_AsUTF8() in sqlite3 (#111122)" This reverts commit 37e4e20eaa8f27ada926d49e5971fecf0477ad26.
* gh-81137: deprecate assignment of code object to a function of a mismatched ↵Irit Katriel2023-11-071-0/+6
| | | | type (#111823)
* gh-85098: Implement functional CLI of symtable (#109112)Serhiy Storchaka2023-11-071-0/+18
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-106672: C API: Report indiscriminately ignored errors (GH-106674)Serhiy Storchaka2023-11-071-0/+9
| | | | | Functions which indiscriminately ignore all errors now report them as unraisable errors.
* gh-79932: raise exception if frame.clear() is called on a suspended frame ↵Irit Katriel2023-11-072-1/+10
| | | | (#111792)
* gh-111729: update generic syntax for `typing.Concatenate` sample code in ↵方糖2023-11-071-5/+2
| | | | | `Doc/library/typing.rst` (#111734) use new generic syntax
* gh-109466: Add ipv6_mapped property to IPv4Address (#109467)Charles Machalow2023-11-052-0/+13
| | | | | Adds the `IPv4Address.ipv6_mapped` property. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111747: DOC: fix moved link to Documentation Translations (#111748)partev2023-11-051-1/+1
| | | | Update old link in bugs.rst to the table of doc translators and translation repositories at Github.
* gh-111719: Add extra check for alias command (#111720)Tian Gao2023-11-041-1/+1
|
* gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725)Nikita Sobolev2023-11-041-0/+4
| | | Close database connection explicitly in test cleanup.
* docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)lefp2023-11-031-0/+1
| | | docs: specify return value on success
* gh-111681: minor fixes to typing doctests; remove unused imports in ↵Nikita Sobolev2023-11-031-4/+4
| | | | | `test_typing` (#111682) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106168: Revert the "size before item" setting (#111683)scoder2023-11-031-2/+0
| | | | gh-106168: Update the size only after setting the item, to avoid temporary inconsistencies. Also remove the "what's new" sentence regarding the size setting since tuples cannot grow after allocation.
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-032-2/+4
| | | | frame state (#111648)
* gh-54434: Make difflib.rst doctests pass. (#111677)Terry Jan Reedy2023-11-031-3/+5
|
* Fix typo in documentation of `SysLogHandler.createSocket` (#111665)LoipesMas2023-11-021-3/+1
|
* gh-111625: Fix link to Info-ZIP homepage (#111626)partev2023-11-021-2/+2
|
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-022-2/+19
| | | | (#111459)
* gh-106168: Update PyList_SET_ITEM() What's New doc (#111618)Victor Stinner2023-11-011-1/+2
|