summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632)Kerim Kabirov2024-05-061-0/+5
|
* gh-118271: Support more options for reading/writing images in Tkinter ↵Serhiy Storchaka2024-05-061-0/+6
| | | | | | | | (GH-118273) * Add PhotoImage.read() to read an image from a file. * Add PhotoImage.data() to get the image data. * Add background and grayscale parameters to PhotoImage.write().
* Fix typo in Doc/library/asyncio-task.rst (GH-118627)Xie Yanbo2024-05-061-1/+1
|
* gh-118225: Support more options for copying images in Tkinter (GH-118228)Serhiy Storchaka2024-05-062-0/+18
| | | | | | | | * Add the PhotoImage method copy_replace() to copy a region from one image to other image, possibly with pixel zooming and/or subsampling. * Add from_coords parameter to PhotoImage methods copy(), zoom() and subsample(). * Add zoom and subsample parameters to PhotoImage method copy().
* gh-66543: Add mimetypes.guess_file_type() (GH-117258)Serhiy Storchaka2024-05-064-6/+40
|
* gh-74929: locals() documentation update for PEP 667 (#118265)Alyssa Coghlan2024-05-061-9/+38
| | | | | | Documentation wording taken from the withdrawn PEP 558 (which had switched to the Python level semantics proposed in PEP 667 prior to its withdrawal).
* gh-118465: Add __firstlineno__ attribute to class (GH-118475)Serhiy Storchaka2024-05-062-0/+9
| | | | It is set by compiler with the line number of the first line of the class definition.
* gh-111140: minor docs typos cleanup in the C example API calls. (#118612)Gregory P. Smith2024-05-051-3/+3
|
* gh-111201: A new Python REPL (GH-111567)Pablo Galindo Salgado2024-05-054-4/+70
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-74929: Rudimentary docs for PEP 667 (#118581)Guido van Rossum2024-05-053-2/+19
| | | | | | | | | This is *not* sufficient for the final 3.13 release, but it will do for beta 1: - What's new entry - Updated changelog entry (news blurb) - Mention the proxy for f_globals in the datamodel and Python frame object docs This doesn't have any C API details (what's new refers to the PEP).
* GH-111744: Make breakpoint() enter the debugger immediately (GH-118579)Tian Gao2024-05-053-2/+15
|
* gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559)Raymond Hettinger2024-05-051-18/+11
|
* gh-118131: Command-line interface for the `random` module (#118132)Hugo van Kemenade2024-05-053-0/+87
|
* gh-118518: Allow perf to work without frame pointers (#112254)Pablo Galindo Salgado2024-05-054-1/+66
|
* gh-74929: Implement PEP 667 (GH-115153)Tian Gao2024-05-041-0/+3
|
* gh-111997: C-API for signalling monitoring events (#116413)Irit Katriel2024-05-044-1/+170
|
* gh-115532 Add kde_random() to the statistic module (#118210)Raymond Hettinger2024-05-042-60/+27
|
* Minor improvements to the itertools recipes (#118563)Raymond Hettinger2024-05-031-24/+12
|
* docs: clarify csv.DictReader's treatment of the first data row (#118549)Ned Batchelder2024-05-031-2/+4
|
* gh-116322: Add Py_mod_gil module slot (#116882)Brett Simmers2024-05-031-0/+38
| | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning).
* gh-117514: Add `sys._is_gil_enabled()` function (#118514)Sam Gross2024-05-031-0/+8
| | | | | The function returns `True` or `False` depending on whether the GIL is currently enabled. In the default build, it always returns `True` because the GIL is always enabled.
* gh-116126: Implement PEP 696 (#116129)Jelle Zijlstra2024-05-035-27/+152
| | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-117492: Clarify documentation of `typing.Never` (#117678)Nice Zombies2024-05-031-24/+22
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-118500: Add pdb support for zipapp (#118501)Tian Gao2024-05-021-0/+3
|
* gh-93502: Add new C-API functions to trace object creation and destruction ↵Pablo Galindo Salgado2024-05-022-0/+57
| | | | (#115945)
* gh-105879: Add support for keyword arguments to eval and exec (#105885)Raphael Gaschignard2024-05-021-5/+13
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)Steve Dower2024-05-021-0/+7
|
* gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925)Serhiy Storchaka2024-05-021-2/+3
|
* gh-118216: Don't consider dotted `__future__` imports (#118267)Crowthebird2024-05-021-0/+4
|
* docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (#118411)Andrew Zipperer2024-05-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs: tiny grammar change: "pointed by" -> "pointed to by" This commit uses "file pointed to by" to replace "file pointed by" in - doc for shutil.copytree - docstring for shutil.copytree - docstring _abc.PathBase.open - docstring for pathlib.Path.open - doc for os.copy_file_range - doc for os.splice The docs use "file pointed to by" more frequently than "file pointed by". So, this commit replaces the uses of "file pointed by" in order to make the uses consistent through the docs. ```bash $ grep -ri 'pointed to by' cpython/ ``` yields more results than ```bash $ grep -ri 'pointed by' cpython/ ``` Separately: There are two occurrences of "tree pointed by": - cpython/Doc/library/xml.etree.elementtree.rst for `xml.etree.ElementInclude.include` - cpython/Lib/xml/etree/ElementInclude.py for `include` For those uses of "tree pointed by", I expect "tree pointed to by" instead. However, I found enough uses online of (a) "tree pointed by" rather than (b) "tree pointed to by" to convince me that (a) is in common use. So, this commit does not replace those occurrences of "tree pointed by" to "tree pointed to by". But I will replace them if a reviewer believes it is correct to replace them. * docs: typo: "exists and executable" -> "exists and is executable" --------- Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
* gh-118335: Rename --experimental-interpreter on Windows to ↵Guido van Rossum2024-05-021-1/+2
| | | | | --experimental-jit-interpreter (#118497) Also fix docs for this in whatsnew.
* GH-118174: specify the type for the path argument of shutil.whichFilipe Laíns2024-05-011-2/+3
|
* gh-117225: Document colour use in `doctest` (#118268)Hugo van Kemenade2024-05-012-3/+25
|
* gh-110850: Add PyTime_TimeRaw() function (#118394)Victor Stinner2024-05-012-3/+38
| | | | | | | | | | | | | | | | | Add "Raw" variant of PyTime functions: * PyTime_MonotonicRaw() * PyTime_PerfCounterRaw() * PyTime_TimeRaw() Changes: * Add documentation and tests. Tests release the GIL while calling raw clock functions. * py_get_system_clock() and py_get_monotonic_clock() now check that the GIL is hold by the caller if raise_exc is non-zero. * Reimplement "Unchecked" functions with raw clock functions. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* Expand the 'Extending' docs with an example. (#113187)Jason R. Coombs2024-05-011-0/+78
| | | | | * Expand the 'Extending' docs to provide a minimal example. Closes python/importlib_metadata#427. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-7/+23
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* gh-109975: Document crypt_r as a possible replacement of crypt (#118439)Miro Hrončok2024-04-301-1/+4
|
* gh-117618: Make package.module searchable for breakpoints and clean up docs ↵Tian Gao2024-04-301-6/+13
| | | | (#117619)
* gh-85453: Consistent backquotes on None occurences across datetime.rst (#118282)edson duarte2024-04-301-1/+1
|
* gh-118392: Add note about random.random for multi thread app (gh-118396)Donghee Na2024-04-301-0/+6
|
* gh-118359: Improve docs for Bdb.user_call (#118368)Tian Gao2024-04-291-0/+3
| | | The `argument_list` parameter of bdb.Bdb.user_call has been useless for 25 years. It is retained for backwards compatibility, but it will always be None.
* Docs: Upgrade to Sphinx 7.3 (#118397)Hugo van Kemenade2024-04-291-1/+1
|
* Fix typo in Doc/c-api/exceptions.rst (GH-118371)Xie Yanbo2024-04-291-1/+1
|
* Fix typo in Doc/howto/timerfd.rst (GH-118376)Xie Yanbo2024-04-291-1/+1
|
* Fix typo in Doc/c-api/typeobj.rst (GH-118377)Xie Yanbo2024-04-291-1/+1
|
* gh-115119: Detect _decimal dependencies using pkg-config (#115406)Erlend E. Aasland2024-04-291-0/+13
| | | pkg-config is supported for libmpdec 4.0.0 and newer.
* gh-118293: Suppress mouse cursor feedback when launching Windows processes ↵Henrik Tunedal2024-04-281-0/+16
| | | | with multiprocessing (GH-118315)
* gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (#118356)Hugo van Kemenade2024-04-281-37/+37
|
* gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` (#118353)Hugo van Kemenade2024-04-282-8/+9
|
* gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (#118364)Hugo van Kemenade2024-04-282-27/+27
|