summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* gh-68583: webbrowser: replace `getopt` with `argparse`, add long options ↵Hugo van Kemenade2024-04-131-3/+6
| | | | (#117047)
* gh-102247: http: support rfc9110 status codes (GH-117611)Michiel W. Beijen2024-04-131-60/+64
| | | | | | | | | | | | | | | | | | | | rfc9110 obsoletes the earlier rfc 7231. This document also includes some status codes that were previously only used for WebDAV and assigns more generic names to these status codes. ref: https://www.rfc-editor.org/rfc/rfc9110.html#name-changes-from-rfc-7231 - http.HTTPStatus.CONTENT_TOO_LARGE (413, previously REQUEST_ENTITY_TOO_LARGE) - http.HTTPStatus.URI_TOO_LONG (414, previously REQUEST_URI_TOO_LONG) - http.HTTPStatus.RANGE_NOT_SATISFYABLE (416, previously REQUEST_RANGE_NOT_SATISFYABLE) - http.HTTPStatus.UNPROCESSABLE_CONTENT (422, previously UNPROCESSABLE_ENTITY) The new constants are added to http.HTTPStatus and the old constant names are preserved for backwards compatibility. References in documentation to the obsoleted rfc 7231 are updated
* gh-117840: Fix indent to fix shlex syntax highlighting (#117843)Hugo van Kemenade2024-04-131-15/+15
|
* gh-114466: explicitly define heap invariant (#117778)Shantanu2024-04-131-2/+3
| | | | | I think the choice of wording in these docs is great and doesn't need to change. However, it could be useful to explicitly define this term / the cost of doing so seems relatively low.
* Fix version directive indents (#117719)Hugo van Kemenade2024-04-124-8/+8
|
* gh-104269: Document `glob.glob` duplicates when using multiple `**` patterns ↵Tomas R2024-04-111-0/+8
| | | | (#105406)
* gh-117722: Fix Stream.readuntil with non-bytes buffer objects (#117723)Bruce Merry2024-04-111-2/+2
| | | | | | | | | | | | | gh-16429 introduced support for an iterable of separators in Stream.readuntil. Since bytes-like types are themselves iterable, this can introduce ambiguities in deciding whether the argument is an iterator of separators or a singleton separator. In gh-16429, only 'bytes' was considered a singleton, but this will break code that passes other buffer object types. Fix it by only supporting tuples rather than arbitrary iterables. Closes gh-117722.
* gh-101549: fix documentation of xml.etree.ElementInclude (#101550)Mikhail B2024-04-111-20/+15
| | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* Fix markup of `win32_ver` in `platform.rst` (#116492)Nikita Sobolev2024-04-111-2/+2
|
* GH-117546: Fix symlink resolution in `os.path.realpath('loop/../link')` ↵Barney Gale2024-04-101-3/+2
| | | | | | (#117568) Continue resolving symlink targets after encountering a symlink loop, which matches coreutils `realpath` behaviour.
* gh-117531: Unblock getters after non-immediate queue shutdown (#117532)Laurie O2024-04-101-2/+4
| | | (This is a small tweak of the original gh-104750 which added shutdown.)
* gh-117360: Clearer wording in os.path.lexists() docs (#117679)Nice Zombies2024-04-091-1/+1
| | | Co-authored-by: Zachary Ware <zach@python.org>
* gh-116720: Fix corner cases of taskgroups (#117407)Guido van Rossum2024-04-091-0/+30
| | | | | | | | | | This prevents external cancellations of a task group's parent task to be dropped when an internal cancellation happens at the same time. Also strengthen the semantics of uncancel() to clear self._must_cancel when the cancellation count reaches zero. Co-Authored-By: Tin Tvrtković <tinchester@gmail.com> Co-Authored-By: Arthur Tacca
* gh-117516: Implement typing.TypeIs (#117517)Jelle Zijlstra2024-04-091-27/+91
| | | | | | See PEP 742. Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-81322: support multiple separators in StreamReader.readuntil (#16429)Bruce Merry2024-04-081-0/+11
|
* gh-96471: Correct documentation for asyncio queue shutdown (#117621)Laurie O2024-04-081-3/+4
|
* gh-111726: Explicitly close database connections in sqlite3 doctests (#111730)Nikita Sobolev2024-04-081-0/+27
| | | Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-111726: Remove some doctests from sqlite3 docs (#117623)Erlend E. Aasland2024-04-081-36/+7
| | | | | * remove load extension doctest since we cannot skip it conditionally * remove sys.unraisablehook example; using unraisable hooks is not "an improved debug experience"
* gh-111726: Cleanup test files after running sqlite3 doctest (#117604)Hugo van Kemenade2024-04-081-0/+8
| | | | Remove all temporary databases in a dedicated 'testcleanup' step at the end of the file.
* Fix reference in code.rst (#117615)Anita Hammer2024-04-071-1/+1
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-96471: Add asyncio queue shutdown (#104228)Laurie O2024-04-061-0/+31
| | | Co-authored-by: Duprat <yduprat@gmail.com>
* GH-77609: Add recurse_symlinks argument to `pathlib.Path.glob()` (#117311)Barney Gale2024-04-051-13/+8
| | | | | | | | | | | | | | | Replace tri-state `follow_symlinks` with boolean `recurse_symlinks` argument. The new argument controls whether symlinks are followed when expanding recursive `**` wildcards. The possible argument values correspond as follows: follow_symlinks recurse_symlinks =============== ================ False N/A None False True True We therefore drop support for not following symlinks when expanding non-recursive pattern parts; it wasn't requested in the original issue, and it's a feature not found in any shells. This makes the API a easier to grok by eliminating `None` as an option. No news blurb as `follow_symlinks` was new in 3.13.
* gh-116608: importlib.resources: Un-deprecate functional API & add ↵Petr Viktorin2024-04-051-0/+178
| | | | subdirectory support (GH-116609)
* gh-117478: Add `@support.requires_gil_enabled` decorator (#117479)Sam Gross2024-04-041-0/+6
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [doc] Update logging documentation to improve grammar and elucidate an ↵Vinay Sajip2024-04-041-7/+8
| | | | example. (GH-117541)
* gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242)Zackery Spytz2024-04-031-5/+10
|
* GH-70647: Deprecate strptime day of month parsing without a year present to ↵Gregory P. Smith2024-04-031-0/+37
| | | | avoid leap-year bugs (GH-117107)
* gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113)Petr Viktorin2024-04-021-2/+24
|
* Docs: specify XML document name in xml.etree.elementtree example (#24223)Moshe Kaplan2024-04-011-1/+1
|
* Docs: add more links to PIPE in subprocess docs (#25416)Matthew Davis2024-04-011-5/+8
|
* gh-77714: Provide an async iterator version of as_completed (GH-22491)Justin Turner Arthur2024-04-011-13/+48
| | | | | | | | | * as_completed returns object that is both iterator and async iterator * Existing tests adjusted to test both the old and new style * New test to ensure iterator can be resumed * New test to ensure async iterator yields any passed-in Futures as-is Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* Doc: printf-style library/stdtype improvements (#16741)Adorilson Bezerra2024-03-311-1/+7
|
* Link to the Python type system specification (#117400)Shantanu2024-03-311-73/+15
|
* GH-114575: Rename `PurePath.pathmod` to `PurePath.parser` (#116513)Barney Gale2024-03-311-2/+2
| | | And rename the private base class from `PathModuleBase` to `ParserBase`.
* gh-66449: configparser: Add support for unnamed sections (#117273)Pedro Lacerda2024-03-291-0/+31
| | | Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-117339: Use NULL instead of None for LOAD_SUPER_ATTR in dis docs (GH-117343)Christopher Chianelli2024-03-281-1/+1
|
* gh-117294: Report DocTestCase as skipped if all examples in the doctest are ↵Malcolm Smith2024-03-281-2/+4
| | | | skipped (GH-117297)
* bpo-43848: explain optional argument mtime in gzip.py. (GH-25410)Joachim Wuttke2024-03-281-13/+10
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-114099: Add documentation for iOS platform (GH-117057)Russell Keith-Magee2024-03-2816-147/+191
| | | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Ned Deily <nad@python.org>
* 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-281-0/+3
| | | | | | | | | | | | | | | * 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)
* 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
|
* Minor markup and grammar fixes in the statistics docs (gh-117216)Raymond Hettinger2024-03-251-3/+3
|
* 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
|