summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* gh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced ↵Stanley2022-12-211-0/+24
| | | | | | entry (#91499) Co-authored-by: Pieter Eendebak <P.T.eendebak@tudelft.nl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-99991: improve docs on str.encode and bytes.decode (#100198)Bisola Olasehinde2022-12-211-27/+33
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Clarify that every thread has its own default context in contextvars (#99246)Pablo Galindo Salgado2022-12-201-0/+5
|
* gh-88211: Change lower-case and upper-case to match recommendations in ↵Brad Wolfe2022-12-201-1/+1
| | | | imaplib docs (#99625)
* gh-89051: Add ssl.OP_LEGACY_SERVER_CONNECT (#93927)Thomas Grainger2022-12-201-0/+7
| | | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Fixes https://github.com/python/cpython/issues/89051
* gh-69929: re docs: Add more specific definition of \w (#92015)Stanley2022-12-201-4/+3
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-94912: Added marker for non-standard coroutine function detection (#99247)Carlton Gibson2022-12-182-2/+29
| | | | | This introduces a new decorator `@inspect.markcoroutinefunction`, which, applied to a sync function, makes it appear async to `inspect.iscoroutinefunction()`.
* Correct CVE-2020-10735 documentation (#100306)Jeremy Paige2022-12-181-3/+3
|
* Docs: Use `PY_VERSION_HEX` for version comparison (#100179)Hugo van Kemenade2022-12-172-1/+3
|
* gh-97909: Fix markup for `PyMethodDef` members (#100089)ram vikram singh2022-12-171-17/+18
|
* gh-78707: deprecate passing >1 argument to `PurePath.[is_]relative_to()` ↵Barney Gale2022-12-171-3/+11
| | | | | | | (GH-94469) This brings `relative_to()` and `is_relative_to()` more in line with other pathlib methods like `rename()` and `symlink_to()`. Resolves #78707.
* gh-99830: asyncio: Document returns of remove_{reader,writer} (#100302)Ben Darnell2022-12-161-2/+4
|
* "Compound statement" docs: Fix with-statement step indexing (#100286)Frank Dana2022-12-161-1/+1
| | | | | Back in commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832 an item was added to the list, renumbering all the rest of the items, but the forward-reference wasn't updated to match.
* Document that zipfile's pwd parameter is a `bytes` object (#100209)JustAnotherArchivist2022-12-161-7/+8
|
* gh-99767: mark `PyTypeObject.tp_watched` as internal use only in table (#100271)Carl Meyer2022-12-161-1/+1
|
* Fix typo in introduction.rst (#100266)Mikhail Berkov2022-12-161-1/+1
|
* GH-100234: Set a default value for random.expovariate() (GH-100235)Raymond Hettinger2022-12-151-1/+4
|
* Remove uninformative itertools recipe (GH-100253)Raymond Hettinger2022-12-151-7/+0
|
* GH-99767: update PyTypeObject docs for type watchers (GH-99928)Carl Meyer2022-12-152-0/+12
|
* gh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs ↵busywhitespace2022-12-141-3/+17
| | | | (#100249)
* gh-100176: venv: Remove redundant compat code for Python <= 3.2 (#100177)Hugo van Kemenade2022-12-141-68/+60
| | | | | | | | | | gh-100176: Remove redundant compat code for Python 3.2 and older Python 3.2 has been EOL since 2016-02-20 and 2.7 since 2020-01-01, so we can remove this old compatibility check and unindent the old else-block. Also, in the unindented block, replace a .format() call with an f-string. Plus similar changes in the documentation.
* GH-100206: use versionadded for the addition of sysconfig.get_default_scheme ↵Filipe Laíns2022-12-131-1/+1
| | | | (#100207)
* Fix: typo (Indention) (GH-99904)jarrodcolburn2022-12-121-1/+1
| | | | | Example needed to be indented. Was trying to call a context manger `pr` (from ` with cProfile.Profile() as pr:`) wot perform ` pr.print_stats()` once it had already exited. Automerge-Triggered-By: GH:AlexWaygood
* clarify the 4300-digit limit on int-str conversion (#100175)Ned Batchelder2022-12-121-2/+2
|
* gh-70393: Clarify mention of "middle" scope (#98839)Shantanu2022-12-121-2/+2
|
* gh-100174: [Enum] Correct PowersOfThree example. (GH-100178)Beweeted2022-12-111-2/+2
| | | Changed from multiples of 3 to powers of 3 to match the class name.
* gh-99728: correct typo in `datetime` format codes documentation (#99750)Brad Wolfe2022-12-101-1/+1
|
* gh-99970 Adding missing `optionflags` parameter in the documentation of ↵busywhitespace2022-12-101-1/+1
| | | | `doctest` (#99971)
* gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc ↵ram vikram singh2022-12-101-1/+1
| | | | (#100052)
* gh-99087: Add missing newline for prompts in docs (GH-98993)Stanley2022-12-0922-0/+43
| | | Add newline for prompts so copying to REPL does not cause errors.
* GH-98363: Have batched() return tuples (GH-100118)Raymond Hettinger2022-12-081-9/+9
|
* gh-96250: Improve sqlite3 injection attack example (#99270)Jia Junjie2022-12-081-6/+10
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-98030: socket: add missing TCP socket options (#98031)Matthieu Baerts2022-12-081-1/+8
| | | | | | | | | | | | | A few TCP socket options have been added to the Linux kernel these last few years. This commit adds all the ones available in Linux 6.0: https://elixir.bootlin.com/linux/v6.0/source/include/uapi/linux/tcp.h#L91 While at it, the TCP_FASTOPEN option has been moved lower in the list just to keep the same order as in tcp.h to ease future synchronisations. Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
* gh-98724: Fix Py_CLEAR() macro side effects (#99100) (#100070)Victor Stinner2022-12-072-2/+49
| | | | | | | | | | | | | | The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their arguments once. If an argument has side effects, these side effects are no longer duplicated. Use temporary variables to avoid duplicating side effects of macro arguments. If available, use _Py_TYPEOF() to avoid type punning. Otherwise, use memcpy() for the assignment to prevent a miscompilation with strict aliasing caused by type punning. Add _Py_TYPEOF() macro: __typeof__() on GCC and clang. Add test_py_clear() and test_py_setref() unit tests to _testcapi.
* gh-94943: [Enum] improve repr() when inheriting from a dataclass (GH-99740)Ethan Furman2022-12-062-0/+27
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93453: No longer create an event loop in get_event_loop() (#98440)Serhiy Storchaka2022-12-064-10/+28
| | | | | | | | | | | | | | | asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-37860: re-add netlify.toml to set up deploy previews for docs (#92852)Ashwin Ramaswami2022-12-062-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | * Revert "bpo-46184: remove `netlify.toml` (#30272)" This reverts commit fbaf2e604cd354f1ebc6be029480010c6715a8ca. * Delete runtime.txt * Create runtime.txt * Delete runtime.txt * Update netlify.toml * Update netlify.toml * Add netlify badge * Update Doc/tools/templates/layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-100008: VS 2017 is required since Python 3.11 (#100045)Victor Stinner2022-12-061-0/+1
|
* gh-99957: Add `frozen_default` parameter on `dataclass_transform` (#99958)Erik De Bonte2022-12-061-0/+4
|
* gh-100001: Remove doc typo, add versionadded (#100042)Gregory P. Smith2022-12-051-1/+3
| | | gh-100001: Remove new doc typo, add versionadded.
* Use sphinxext-opengraph to generate OpenGraph metadata (#99931)Hugo van Kemenade2022-12-053-4/+31
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-100001: Omit control characters in http.server stderr logs. (#100002)Gregory P. Smith2022-12-051-0/+7
| | | Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
* dataclasses.rst: Prevent horizontal scrolling (gh-100025)Ram Rachum2022-12-051-1/+2
|
* gh-100008: Document Python build requirements (#100009)Victor Stinner2022-12-052-1/+47
| | | | Document also configure --without-freelists option added to Python 3.11.
* gh-93464: [Enum] Add versionchanged tag (#99997)Ethan Furman2022-12-051-0/+5
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [Enum] Fix typos in the documentation (GH-99960)Géry Ogam2022-12-041-26/+26
|
* gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice ↵Brian Skinn2022-12-041-7/+10
| | | | and suggest other edits (#99784)
* bpo-15999: Accept arbitrary values for boolean parameters. (#15609)Serhiy Storchaka2022-12-031-0/+4
| | | builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves.
* GH-91054: Add code object watchers API (GH-99859)Itamar Ostricher2022-12-022-0/+52
| | | | | | * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject Co-authored-by: Ye11ow-Flash <janshah@cs.stonybrook.edu>
* Doc: Add summary line to isolation_level & autocommit sqlite3.connect params ↵C.A.M. Gerlach2022-12-011-0/+2
| | | | | | | (#99917) Add summary lines to isolation_level and autocommit connect() params Co-authored-by: Géry Ogam <gery.ogam@gmail.com>