summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-100734: What's New in 3.x: Add missing detail from 3.x branch (#114689)Hugo van Kemenade2024-02-158-0/+327
|
* gh-112433: Add optional _align_ attribute to ctypes.Structure (GH-113790)monkeyman1922024-02-151-0/+10
|
* bpo-38364: unwrap partialmethods just like we unwrap partials (#16600)Martijn Pieters2024-02-151-0/+10
| | | | | | | | | | | | | * bpo-38364: unwrap partialmethods just like we unwrap partials The inspect.isgeneratorfunction, inspect.iscoroutinefunction and inspect.isasyncgenfunction already unwrap functools.partial objects, this patch adds support for partialmethod objects as well. Also: Rename _partialmethod to __partialmethod__. Since we're checking this attribute on arbitrary function-like objects, we should use the namespace reserved for core Python. --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-114626: add PyCFunctionFast and PyCFunctionFastWithKeywords (GH-114627)David Hewitt2024-02-152-11/+13
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* docs: use consistent .append() in dis.rst (#115434)Ned Batchelder2024-02-151-4/+4
| | | The STACK variable is described as like a Python list, so pushing to it should be done with .append() consistently throughout.
* gh-114570: Add PythonFinalizationError exception (#115352)Victor Stinner2024-02-143-0/+35
| | | | | | | | | | | | | | | | | Add PythonFinalizationError exception. This exception derived from RuntimeError is raised when an operation is blocked during the Python finalization. The following functions now raise PythonFinalizationError, instead of RuntimeError: * _thread.start_new_thread() * subprocess.Popen * os.fork() * os.fork1() * os.forkpty() Morever, _winapi.Overlapped finalizer now logs an unraisable PythonFinalizationError, instead of an unraisable RuntimeError.
* Docs: spell out sentence about ndbm/gdbm file formats (#115470)Erlend E. Aasland2024-02-141-6/+8
|
* Docs: reword sentences about dbm submodule traits (#114609)Erlend E. Aasland2024-02-141-14/+6
| | | Don't repeatedly say that keys and values are coerced into bytes.
* gh-115403: Remove extra colon after "Examples" in datetime documentation ↵Stanislav Lyu2024-02-141-1/+1
| | | | (#115452)
* gh-100414: Make dbm.sqlite3 the preferred dbm backend (#115447)Erlend E. Aasland2024-02-141-1/+1
|
* gh-100414: Add SQLite backend to dbm (#114481)Erlend E. Aasland2024-02-142-4/+59
| | | | | Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* ftplib docs: `timeout` doesn't have to be a whole number (#115443)Alex Waygood2024-02-141-3/+3
|
* Docs: Use substitutions instead of manual version updates (#115416)Hugo van Kemenade2024-02-144-4/+6
|
* gh-115405: add versionadded tag for co_qualname in code objects ↵Christophe Papazian2024-02-131-0/+2
| | | | documentation (#115411)
* gh-113437: Update documentation about PyUnicode_AsWideChar() function ↵qqwqqw6892024-02-131-1/+6
| | | | (GH-113455)
* Update "Using Python on a Mac" (#115024)Hugo van Kemenade2024-02-132-46/+63
|
* gh-111140: Minor doc fixes for PyLong_AsNativeBytes (GH-115375)Steve Dower2024-02-121-10/+14
|
* gh-115317: Rewrite changelog filter to use vanilla JavaScript (#115324)Hugo van Kemenade2024-02-121-48/+54
| | | | Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes ↵Steve Dower2024-02-122-1/+72
| | | | functions (GH-114886)
* gh-110850: Add PyTime_t C API (GH-115215)Petr Viktorin2024-02-124-5/+102
| | | | | | | | | | | | * gh-110850: Add PyTime_t C API Add PyTime_t API: * PyTime_t type. * PyTime_MIN and PyTime_MAX constants. * PyTime_AsSecondsDouble(), PyTime_Monotonic(), PyTime_PerfCounter() and PyTime_GetSystemClock() functions. Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-115233: Fix an example in the Logging Cookbook (GH-115325)Serhiy Storchaka2024-02-121-6/+4
| | | | | Also add more tests for LoggerAdapter. Also support stacklevel in LoggerAdapter._log().
* gh-101100: Fix Sphinx warnings in `whatsnew/2.7.rst` and related (#115319)Hugo van Kemenade2024-02-129-100/+119
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-114785: Remove content from `Porting from Python2` how-to (#114805)Nikita Sobolev2024-02-122-411/+19
| | | | | | Keep the page though, because people might still rely on it (the traffic shows that they do). Instead of our own manual we now give links to the 3rd-party ones. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-114695: Add `sys._clear_internal_caches` (GH-115152)Brandt Bucher2024-02-121-1/+12
|
* gh-101100: Clean up Doc/c-api/exceptions.rst and Doc/c-api/sys.rst (GH-114825)Skip Montanaro2024-02-113-20/+29
|
* gh-49766: Make date-datetime comparison more symmetric and flexible (GH-114760)Serhiy Storchaka2024-02-111-6/+26
| | | | | | | | | | | | | Now the special comparison methods like `__eq__` and `__lt__` return NotImplemented if one of comparands is date and other is datetime instead of ignoring the time part and the time zone or forcefully return "not equal" or raise TypeError. It makes comparison of date and datetime subclasses more symmetric and allows to change the default behavior by overriding the special comparison methods in subclasses. It is now the same as if date and datetime was independent classes.
* gh-97928: Partially restore the behavior of tkinter.Text.count() by default ↵Serhiy Storchaka2024-02-111-7/+6
| | | | | | | | | | | | | (GH-115031) By default, it preserves an inconsistent behavior of older Python versions: packs the count into a 1-tuple if only one or none options are specified (including 'update'), returns None instead of 0. Except that setting wantobjects to 0 no longer affects the result. Add a new parameter return_ints: specifying return_ints=True makes Text.count() always returning the single count as an integer instead of a 1-tuple or None.
* gh-115172: Fix explicit index extries for the C API (GH-115173)Serhiy Storchaka2024-02-1114-153/+150
|
* gh-101100: Fix dangling refs in bdb.rst (#114983)Skip Montanaro2024-02-112-9/+10
| | | Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `c-api/gcsupport.rst` (#114786)Nikita Sobolev2024-02-102-4/+8
|
* gh-114894: add array.array.clear() method (#114919)Mike Zimin2024-02-102-0/+10
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-114552: Update `__dir__` method docs: it allows returning an iterable ↵Nikita Sobolev2024-02-101-3/+3
| | | | (#114662)
* gh-96471: Add shutdown() method to queue.Queue (#104750)Laurie O2024-02-102-0/+45
| | | | Co-authored-by: Duprat <yduprat@gmail.com>
* Docs: correctly link to code objects (#115214)Erlend E. Aasland2024-02-091-2/+3
|
* GH-113632: update configure.ac for WebAssembly support tiers (#115192)Brett Cannon2024-02-091-0/+6
| | | Move WASI to tier 2 and drop Emscripten.
* gh-101100: Fix sphinx warnings in `library/enum.rst` (#114696)Nikita Sobolev2024-02-092-3/+15
| | | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-107944: Improve error message for getargs with bad keyword arguments ↵Shantanu2024-02-081-0/+11
| | | | (#114792)
* GH-108362: Revert "GH-108362: Incremental GC implementation (GH-108038)" ↵Mark Shannon2024-02-071-34/+0
| | | | | | | (#115132) Revert "GH-108362: Incremental GC implementation (GH-108038)" This reverts commit 36518e69d74607e5f094ce55286188e4545a947d.
* gh-101100: Fix Py_DEBUG dangling Sphinx references (#115003)Skip Montanaro2024-02-072-8/+9
|
* gh-115114: Add missing slash to file URI prefix `file:/` (#115115)Edgar Ramírez Mondragón2024-02-071-1/+1
| | | Add missing slash to file URI prefix `file:/`
* gh-115106 docs: 'enum.Flag.__iter__()' did not exist prior to Python 3.11 ↵Finite State Machine2024-02-071-3/+1
| | | | | (GH-115107) change versionchanged to versionadded
* gh-112066: Add `PyDict_SetDefaultRef` function. (#112123)Sam Gross2024-02-062-0/+26
| | | | | | | The `PyDict_SetDefaultRef` function is similar to `PyDict_SetDefault`, but returns a strong reference through the optional `**result` pointer instead of a borrowed reference. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-114756: Update FAQ section on removing the GIL (#114957)da-woods2024-02-061-23/+29
| | | | | Update FAQ section on removing the GIL to reflect recent progress on PEP 703 and PEP 684. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-91602: Add iterdump() support for filtering database objects (#114501)Mariusz Felisiak2024-02-062-1/+14
| | | | | | Add optional 'filter' parameter to iterdump() that allows a "LIKE" pattern for filtering database objects to dump. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-83648: Support deprecation of options, arguments and subcommands in ↵Serhiy Storchaka2024-02-052-1/+55
| | | | argparse (GH-114086)
* gh-82626: Emit a warning when bool is used as a file descriptor (GH-111275)Serhiy Storchaka2024-02-051-0/+5
|
* gh-114967: Fix "Built-in Exceptions" documentation ambiguous wording (#114968)HarryLHW2024-02-051-1/+1
| | | | | | Change the somewhat vague "listed below" to "listed in this chapter" in Doc/library/exceptions.rst. The exceptions are listed in multiple sections after two intermediate sections. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* GH-108362: Incremental GC implementation (GH-108038)Mark Shannon2024-02-051-0/+34
|
* gh-43457: Tkinter: fix design flaws in wm_attributes() (GH-111404)Serhiy Storchaka2024-02-051-0/+9
| | | | | | | | | * When called with a single argument to get a value, it allow to omit the minus prefix. * It can be called with keyword arguments to set attributes. * w.wm_attributes(return_python_dict=True) returns a dict instead of a tuple (it will be the default in future). * Setting wantobjects to 0 no longer affects the result.
* Remove bogus syntax error marker in csv doc (#115017)Terry Jan Reedy2024-02-051-1/+0
|