summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-114099: Additions to standard library to support iOS (GH-117052)Russell Keith-Magee2024-03-283-2/+44
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Ned Deily <nad@python.org>
* gh-89739: gh-77140: Support zip64 in zipimport (GH-94146)Tim Hatch2024-03-282-0/+9
| | | | | | | | | | | | | | | * Reads zip64 files as produced by the zipfile module * Include tests (somewhat slow, however, because of the need to create "large" zips) * About the same amount of strictness reading invalid zip files as zipfile has * Still works on files with prepended data (like pex) There are a lot more test cases at https://github.com/thatch/zipimport64/ that give me confidence that this works for real-world files. Fixes #89739 and #77140. --------- Co-authored-by: Itamar Ostricher <itamarost@gmail.com> Reviewed-by: Gregory P. Smith <greg@krypto.org>
* gh-71042: Add `platform.android_ver` (#116674)Malcolm Smith2024-03-272-1/+39
|
* gh-117225: doctest: only print "and X failed" when non-zero, don't pluralise ↵Hugo van Kemenade2024-03-271-5/+5
| | | | "1 items" (#117228)
* Add statistics recipe for sampling from an estimated probability density ↵Raymond Hettinger2024-03-271-0/+58
| | | | distribution (#117221)
* Change links on the index page (#117230)Adorilson Bezerra2024-03-261-2/+2
|
* Sync main docs and docstring for median_grouped(). (gh-117214)Raymond Hettinger2024-03-251-38/+39
|
* gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)Nice Zombies2024-03-251-13/+4
|
* Add information about negative indexes to sequence datamodel doc (#110903)Adorilson Bezerra2024-03-251-3/+6
| | | Co-authored by Terry Jan Reedy
* gh-116936: Add PyType_GetModuleByDef() to the limited C API (#116937)Victor Stinner2024-03-252-0/+4
|
* gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() ↵Serhiy Storchaka2024-03-251-4/+4
| | | | | (GH-117160) Create a new bytes object and destroy the old one if it has refcount > 1.
* Minor markup and grammar fixes in the statistics docs (gh-117216)Raymond Hettinger2024-03-251-3/+3
|
* gh-117194: Properly format 'base64' header in What's New (#117198)Terry Jan Reedy2024-03-241-1/+1
| | | It needs 6, not 3, '-'s.
* GH-115986 Docs: promote pprint.pp usage as a default (#116614)Kerim Kabirov2024-03-241-15/+18
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-101760: Improve the imaplib.IMAP4 example (#101764)LilKS2024-03-241-1/+1
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Add cumulative option for the new statistics.kde() function. (#117033)Raymond Hettinger2024-03-241-5/+8
|
* GH-106747: Document another difference between `glob` and `pathlib`. (#116518)Barney Gale2024-03-221-0/+4
| | | | | Document that `path.glob()` might return *path*, whereas `glob.glob(root_dir=path)` will never return an empty string corresponding to *path*.
* gh-113024: C API: Add PyObject_GenericHash() function (GH-113025)Serhiy Storchaka2024-03-223-0/+19
|
* [docs] Fix typo in docstring and add example to logging cookbook. (GH-117157)Vinay Sajip2024-03-221-14/+126
|
* GH-113171: Fix "private" (non-global) IP address ranges (GH-113179)Jakub Stasiak2024-03-222-0/+18
| | | | | | | | | | | | | | | | | | | | | * GH-113171: Fix "private" (really non-global) IP address ranges The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. I left 100.64.0.0/10 alone, for now, as it's been made special in [1] and I'm not sure if we want to undo that as I don't quite understand the motivation behind it. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602
* docs: fix over-linking in dataclasses.rst (#117005)Ned Batchelder2024-03-211-78/+80
|
* gh-85283: Build _testconsole extension with limited C API (#117125)Victor Stinner2024-03-211-1/+1
|
* gh-115754: Add Py_GetConstant() function (#116883)Victor Stinner2024-03-213-0/+56
| | | | | | | | | | | | Add Py_GetConstant() and Py_GetConstantBorrowed() functions. In the limited C API version 3.13, getting Py_None, Py_False, Py_True, Py_Ellipsis and Py_NotImplemented singletons is now implemented as function calls at the stable ABI level to hide implementation details. Getting these constants still return borrowed references. Add _testlimitedcapi/object.c and test_capi/test_object.py to test Py_GetConstant() and Py_GetConstantBorrowed() functions.
* gh-71052: Implement `ctypes.util.find_library` on Android (GH-116379)Malcolm Smith2024-03-211-2/+3
|
* Fix sort order for "locale encoding" glossary item (#115794)Carol Willing2024-03-201-12/+12
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-117058: Update GUI and packaging recommendations for macOS. (#117059)Russell Keith-Magee2024-03-201-11/+25
|
* GH-108362: Incremental Cycle GC (GH-116206)Mark Shannon2024-03-201-0/+30
|
* docs: announce venv creation before installing packages (#117036)Ned Batchelder2024-03-191-0/+1
|
* gh-101100: Fix Sphinx warnings in `library/pydoc.rst` (#116913)Hugo van Kemenade2024-03-192-8/+7
|
* gh-56374: Clarify documentation of nonlocal (#116942)Terry Jan Reedy2024-03-191-13/+17
| | | | | Define 'nonlocal scopes' in a way that excludes class scopes. Rearrange the rest of the doc. Add "Programmer's note".
* gh-107607: Update comment about utf-8 BOM being ignored (#107858)Sunghyun Kim2024-03-191-4/+3
| | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-114099 - Add iOS framework loading machinery. (GH-116454)Russell Keith-Magee2024-03-192-1/+64
| | | | Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-115756: make PyCode_GetFirstFree an unstable API (GH-115781)Bogdan Romanyuk2024-03-192-1/+11
|
* gh-113538: Add asycio.Server.{close,abort}_clients (redo) (#116784)Pierre Ossman (ThinLinc team)2024-03-182-0/+30
| | | | | | | These give applications the option of more forcefully terminating client connections for asyncio servers. Useful when terminating a service and there is limited time to wait for clients to finish up their work. This is a do-over with a test fix for gh-114432, which was reverted.
* gh-63207: Use GetSystemTimePreciseAsFileTime() in time.time() (#116822)Victor Stinner2024-03-181-0/+6
|
* Revert "gh-96844: Improve error message of list.remove (gh-106455)" (#116956)Victor Stinner2024-03-181-3/+3
| | | This reverts commit 217f47d6e5e56bca78b8556e910cd00890f6f84a.
* GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186)Jakub Stasiak2024-03-181-4/+23
| | | | | | | | | * GH-65056: Improve the IP address' is_global/is_private documentation It wasn't clear what the semantics of is_global/is_private are and, when one gets to the bottom of it, it's not quite so simple (hence the exceptions listed). Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-116881: Remove erroneous or redundant grammar NULL (GH-116885)Terry Jan Reedy2024-03-181-1/+1
| | | | | | In Lexical Analysis f-strings section, NULL in the description of 'literal character' means '\0'. In the format_spec grammar production, it is wrong with that meaning and redundant if instead interpreted as <nothing>. Remove it there.
* gh-85283: Build _statistics extension with the limited C API (#116927)Victor Stinner2024-03-171-1/+2
| | | | | Argument Clinic now inlines _PyArg_CheckPositional() for the limited C API. The generated code should be as fast or even a little bit faster.
* GH-116377: Stop raising `ValueError` from `glob.translate()`. (#116378)Barney Gale2024-03-171-2/+1
| | | | | Stop raising `ValueError` from `glob.translate()` when a `**` sub-string appears in a non-recursive pattern segment. This matches `glob.glob()` behaviour.
* gh-85283: Build termios extension with the limited C API (#116928)Victor Stinner2024-03-171-1/+2
|
* gh-73468: Add math.fma() function (#116667)Victor Stinner2024-03-172-0/+26
| | | | | | Added new math.fma() function, wrapping C99's ``fma()`` operation: fused multiply-add function. Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* Update titles and subtitles on landing page template (#116914)Carol Willing2024-03-171-31/+31
| | | | | | | | | * Update titles and subtitles on landing page template * address review from gvanrossum * Edits from hugovk review * Change word order back. Down the road we should split license and history
* gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852)jnchen2024-03-161-1/+0
| | | | It is confusing, because libc is not imported from ctypes, but defined in previous examples, which already contain the import.
* gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (#116783)Nikita Sobolev2024-03-151-0/+10
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-90095: Ignore empty lines and comments in `.pdbrc` (#116834)Tian Gao2024-03-151-1/+2
|
* gh-85283: Build pwd extension with the limited C API (#116841)Victor Stinner2024-03-151-1/+1
| | | | Argument Clinic now uses the PEP 737 "%T" format to format type name for the limited C API.
* gh-116842: Improve test comment and fix a doctest (gh-116846)Raymond Hettinger2024-03-151-2/+2
|
* GH-113838: Add "Comparison to os.path" section to pathlib docs (#115926)Barney Gale2024-03-151-19/+44
|
* gh-111696, PEP 737: Add %T and %N to PyUnicode_FromFormat() (#116839)Victor Stinner2024-03-142-0/+29
|