summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* gh-109595: Add -Xcpu_count=<n> cmdline for container users (#109667)Donghee Na2023-10-102-2/+16
| | | | | | --------- Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-110497: Add note about `OSError` being an alias to `IOError` in docs ↵Nikita Sobolev2023-10-095-9/+11
| | | | (#110498)
* Remove unused imports in multiprocessing docs example (#109984)Albert Villanova del Moral2023-10-091-1/+0
|
* gh-108277: Add os.timerfd_create() function (#108382)Masaru Tsuchiyama2023-10-071-0/+211
| | | | | | | | Add wrapper for timerfd_create, timerfd_settime, and timerfd_gettime to os module. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix typo in Doc/library/textwrap.rst (#110328)InSync2023-10-061-1/+1
| | | "One problem with this is algorithm is that [...]" -> "One problem with this algorithm is that [...]"
* gh-110383: Swap 'the all' -> 'all the' in socket docs (#110434)Bradley Reynolds2023-10-051-1/+1
|
* gh-110383 TimeIt Docs Spelling Fix (#110407)Towster152023-10-051-1/+1
| | | Make 0.2 second plural
* gh-82367: Use `FindFirstFile` Win32 API in `ntpath.realpath()` (GH-110298)박문식2023-10-051-1/+2
| | | | | | | * Use `FindFirstFile` Win32 API to fix a bug where `ntpath.realpath()` breaks out of traversing a series of paths where a (handled) `ERROR_ACCESS_DENIED` or `ERROR_SHARING_VIOLATION` occurs. * Update docs to reflect that `ntpath.realpath()` eliminates MS-DOS style names.
* Remove duplicate word. (#110376)Benjamin Peterson2023-10-051-1/+1
|
* Add back bltin-boolean-values ref tag (#110371)P. L. Lim2023-10-041-0/+1
| | | To avoid breaking downstream intersphinx via numpydoc
* gh-85984: Document change in return type of tty functions (#110028)Jelle Zijlstra2023-10-041-0/+6
|
* Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)Adam Turner2023-10-0316-113/+113
|
* Enhanced sqlite3 connection context management documentation with ↵Lincoln2023-10-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contextlib.closing gh-109234 (#109322) * Enhanced sqlite3 connection context management documentation with contextlib.closing * 📜🤖 Added by blurb_it. * Fixed gitignore spelling error from nitignore to gitignore * Renamed .gitignore to .nitignore * Added generated doctests * Deleted sqlite3 generated files * Removed white-space changes * Removed News entry from the doc * Expanded a note that context manager can be used for connection management using contextlib.closing * Removed repeated contextlib.closing code snippet * Expanded the note around usage of context manageer for sqlite3 connection management * Deleted extra white-spaces * Deleted extra white-space * re-arranged context manager wording * Re-arranged word layout on how to use context manager * Fix whitespace errors * Remove unneeded change in .gitignore * Added suggested changes * Added suggested change redirecting to the contextlib.closing implementation * Added closing keyword * Removed line 2473 --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* GH-92584: Move installation schemes overview to sysconfig docs (#108018)Adam Turner2023-10-022-17/+166
| | | | | | | | | | | * Add new installation path functions subsection * Add content from install/index to sysconfig * Fix table * Update note about installers * Clean up the list of schemes, remove references to Distutils
* gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on ↵Charles Machalow2023-10-021-0/+6
| | | | | executable files (GH-109995) The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored.
* fix misaligned versionchanged blocks in sqlite3 docs (GH-110191)Ned Batchelder2023-10-021-9/+6
|
* gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (#110142)Quentin Agren2023-10-011-3/+3
|
* gh-101100: Fix sphinx warnings in `library/site.rst` (#110144)Nikita Sobolev2023-10-012-11/+25
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-107465: Add `pathlib.Path.from_uri()` classmethod. (#107640)Barney Gale2023-10-011-0/+36
| | | | | | | This method supports file URIs (including variants) as described in RFC 8089, such as URIs generated by `pathlib.Path.as_uri()` and `urllib.request.pathname2url()`. The method is added to `Path` rather than `PurePath` because it uses `os.fsdecode()`, and so its results vary from system to system. I intend to deprecate `PurePath.as_uri()` and move it to `Path` for the same reason. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-110150: Fix base case handling in quantiles() (gh-110151)Raymond Hettinger2023-10-011-1/+6
|
* gh-109649: Use os.process_cpu_count() (#110165)Victor Stinner2023-10-013-6/+18
| | | | | | | | | | | | | | | | | | | | Replace os.cpu_count() with os.process_cpu_count() in modules: * compileall * concurrent.futures * multiprocessing Replace os.cpu_count() with os.process_cpu_count() in programs: * _decimal deccheck.py test * freeze.py * multissltests.py * python -m test (regrtest) * wasm_build.py Other changes: * test.pythoninfo logs os.process_cpu_count(). * regrtest gets os.process_cpu_count() / os.cpu_count() in headers.
* gh-109649: Add os.process_cpu_count() function (#109907)Victor Stinner2023-09-301-7/+24
| | | | | | | | | * Refactor os_sched_getaffinity_impl(): move variable definitions to their first assignment. * Fix test_posix.test_sched_getaffinity(): restore the old CPU mask when the test completes! * Doc: Specify that os.cpu_count() counts *logicial* CPUs. * Doc: Specify that os.sched_getaffinity(0) is related to the calling thread.
* GH-101100: Fix reference warnings for ``gettext`` (#110115)Adam Turner2023-09-301-29/+26
|
* Add example for linear_regression() with proportional=True. (gh-110133)Raymond Hettinger2023-09-301-0/+19
|
* gh-109634: Fix `:samp:` syntax (GH-110073)Jacob Coffee2023-09-291-1/+1
|
* gh-109961: Use proper `module` for `copy` method docs (#110027)Nikita Sobolev2023-09-291-2/+5
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `library/difflib.rst` (#110074)Nikita Sobolev2023-09-291-9/+9
|
* gh-110045: Update symtable module for PEP 695 (#110066)Jelle Zijlstra2023-09-291-1/+11
|
* Whitespace fix in asyncio-stream.rst (#110015)Davide Rizzo2023-09-281-2/+2
|
* gh-109961: Docs: Fix incorrect rendering of `__replace__` in `copy.rst` ↵Nikita Sobolev2023-09-281-12/+21
| | | | (#109968)
* gh-109812: Fix phrasing for `collections.Counter` (gh-109813)Jacob Coffee2023-09-281-1/+1
|
* Enhance TypedDict docs around required/optional keys (#109547)Jelle Zijlstra2023-09-271-0/+15
| | | | | | As discussed in comments to #109544, the semantics of this attribute are somewhat confusing. Add a note explaining its limitations and steering users towards __required_keys__ and __optional_keys__ instead.
* gh-109740: Use 't' in `--disable-gil` SOABI (#109922)Sam Gross2023-09-271-0/+2
| | | | Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
* gh-101100: Fix sphinx warnings in `library/devmode.rst` (#109963)Nikita Sobolev2023-09-271-2/+3
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)Barney Gale2023-09-261-5/+9
| | | | Treat symlink loops like other errors: in strict mode, raise `OSError`, and in non-strict mode, do not raise any exception.
* gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (#109881)Nikita Sobolev2023-09-261-10/+9
|
* gh-109599: Add types.CapsuleType (#109600)Antoine Pitrou2023-09-251-0/+6
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `Doc/library/__future__.rst` (#109814)Nikita Sobolev2023-09-251-26/+32
|
* gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` ↵Nikita Sobolev2023-09-241-1/+6
| | | | | (#109799) gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`
* gh-109634: Use :samp: role (GH-109635)Serhiy Storchaka2023-09-2310-24/+28
|
* gh-100228: Document the os.fork threads DeprecationWarning. (#109767)Gregory P. Smith2023-09-233-4/+46
| | | | | | | | Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs. Many reviews and doc cleanup edits by Adam & Hugo. 🥳 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Remove outdated docstring from the `quantify` itertools recipe (#109726)Łukasz Langa2023-09-221-1/+0
|
* gh-74481: Add missing debug function docs and constants to msvcrt (GH-109650)AN Long2023-09-211-13/+102
|
* Fix typos in docs and comments (#109619)Heinz-Alexander Fuetterer2023-09-202-2/+2
|
* gh-109054: Document configure variables (#109224)Victor Stinner2023-09-201-0/+2
|
* gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (#109431)Victor Stinner2023-09-202-6/+23
| | | | | | | | | | | | | SubprocessProtocol process_exited() method can be called before pipe_data_received() and pipe_connection_lost() methods. Document it and adapt the test for that. Revert commit 282edd7b2a74c4dfe1bfe3c5b1d30f9c21d554d6. _child_watcher_callback() calls immediately _process_exited(): don't add an additional delay with call_soon(). The reverted change didn't make _process_exited() more determistic: it can still be called before pipe_connection_lost() for example. Co-authored-by: Davide Rizzo <sorcio@gmail.com>
* fixes gh-109559: Update `unicodedata` for Unicode 15.1.0 (GH-109560)James Gerity2023-09-202-8/+8
| | | | | --------- Co-authored-by: Benjamin Peterson <benjamin@python.org>
* gh-109109: Expose retrieving certificate chains in SSL module (#109113)Mateusz Nowak2023-09-201-4/+25
| | | | | Adds APIs to get the TLS certificate chains, verified or full unverified, from SSLSocket and SSLObject. Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* Misc itertool recipe improvements, mostly docstrings and comments (gh-109555)Raymond Hettinger2023-09-191-34/+42
|
* gh-109435: Add Doc/library/cmdline.rst (#109436)Victor Stinner2023-09-199-0/+70
| | | Document modules providing a command-line interface (CLI).