Miss Islington (bot)
7a0dc8a802
gh-102259: Fix re doc issue regarding right square brackets (GH-102264)
...
(cherry picked from commit bcadcde712
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-02-25 18:32:42 -08:00
Shantanu
735ff5ae27
[3.11] GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589) ( #102266 )
...
Automerge-Triggered-By: GH:FFY00
(cherry picked from commit 84181c1404
)
Co-authored-by: Filipe Laíns <lains@riseup.net>
2023-02-25 23:42:30 +00:00
Miss Islington (bot)
c2f42f1778
gh-101100: Fix sphinx warnings in `typing` module docs (GH-102260)
...
(cherry picked from commit a498de4c0e
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-02-25 13:55:49 -08:00
Miss Islington (bot)
5775863e9d
asyncio docs: Fix dangling hyphen (GH-102227)
...
Currently this gets rendered with a dangling hyphen.
(cherry picked from commit 207e1c5cae
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-02-25 05:29:35 -08:00
Miss Islington (bot)
a109ce00de
gh-101100: Fix Sphinx warnings in `decimal` module (GH-102125)
...
(cherry picked from commit b7c1126447
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-25 01:58:52 -08:00
Miss Islington (bot)
3b4f8fc83d
gh-102105 Fix wording in filterfalse/quantify/filter (GH-102189)
...
(cherry picked from commit 81bf10e4f2
)
Co-authored-by: Stefan Pochmann <609905+pochmann@users.noreply.github.com>
2023-02-24 08:21:40 -08:00
Miss Islington (bot)
61e0bbdb0c
Fix typo in `Py_GetPythonHome` signature (GH-102168)
...
(cherry picked from commit 9bba8035bd
)
Co-authored-by: Tanner Firl <105078804+TannerFirl@users.noreply.github.com>
2023-02-23 05:38:08 -08:00
Miss Islington (bot)
42d0ca92ed
[3.11] gh-100226: Clarify StreamReader.read behavior (GH-101807) ( #102001 )
...
gh-100226: Clarify StreamReader.read behavior (GH-101807)
(cherry picked from commit 77d95c8373
)
Co-authored-by: Jan Gosmann <jan@hyper-world.de>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-02-23 19:05:59 +05:30
Miss Islington (bot)
bf0a8362cd
Fix syntax error in struct doc example (GH-102160)
...
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
(cherry picked from commit 8f647477f0
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-02-22 16:02:31 -08:00
Miss Islington (bot)
8b5498e367
GH-101777: `queue.rst`: use 2 spaces after a period to be consistent. (GH-102143)
...
(cherry picked from commit 96bf24380e
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2023-02-22 13:39:05 -08:00
Miss Islington (bot)
528e91c067
[3.11] gh-102135: Update turtle docs to rename wikipedia demo to rosette (GH-102137) (GH-102138)
...
(cherry picked from commit 8d46c7ed5e
)
Co-authored-by: somebody <98094921+UndoneStudios@users.noreply.github.com>
Automerge-Triggered-By: GH:hugovk
2023-02-22 02:25:17 -08:00
Miss Islington (bot)
78eee76185
gh-102011: use sys.exception() instead of sys.exc_info() in docs where possible (GH-102012)
...
(cherry picked from commit 4d3bc89a3f
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2023-02-21 03:06:20 -08:00
Miss Islington (bot)
a94f3ad10b
gh-100556: Improve clarity of `or` docs (GH-100589)
...
(cherry picked from commit b40dd71241
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-21 02:45:49 -08:00
Miss Islington (bot)
f94ffcf618
gh-101777: Make `PriorityQueue` docs slightly clearer (GH-102026)
...
Adjust wording slightly, and use min(entries) instead of
sorted(list(entries))[0] as an example.
(cherry picked from commit 350ba7c07f
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2023-02-21 02:32:58 -08:00
Miss Islington (bot)
4969903f7e
gh-99735: Use required=True in argparse subparsers example (GH-100927)
...
(cherry picked from commit 6aab56f3c2
)
Co-authored-by: Patricio Paez <nospam@pp.com.mx>
2023-02-19 11:11:40 -08:00
Miss Islington (bot)
62db23c944
Fix incorrectly documented attribute in csv docs (GH-101250)
...
(cherry picked from commit 36b670908b
)
Co-authored-by: Reza Rastak <rezarastak@users.noreply.github.com>
2023-02-18 17:04:01 -08:00
Brian Skinn
5220c2df9e
[3.11] gh-85747: Active voice & suggested edits, 'running/stopping loop' & 'callbacks' subsections of asyncio-eventloop.rst (GH-100270) ( #102006 )
...
Note: the `timeout` parameter was not added until 3.12.
(cherry picked from commit c4de6b1d52
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>.
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
2023-02-18 15:57:06 -08:00
Miss Islington (bot)
b7a49eb5ff
gh-101739: [Enum] update docs - default boundary for Flag is CONFORM (GH-101746)
...
(cherry picked from commit 7f1c721756
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2023-02-17 13:44:45 -08:00
Miss Islington (bot)
be69ac3c96
gh-101992: update plistlib examples to be runnable (GH-101994)
...
* gh-101992: update plistlib examples to be runnable
* Update Doc/library/plistlib.rst
---------
(cherry picked from commit a1723caabf
)
Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-02-17 11:39:14 -08:00
Miss Islington (bot)
559d0e8073
gh-101973: Fix parameter reference for PyModule_FromDefAndSpec (GH-101976)
...
(cherry picked from commit a3bb7fbe7e
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2023-02-17 00:50:46 -08:00
Miss Islington (bot)
aedf38391a
gh-93573: Replace wrong example domains in configparser doc (GH-93574)
...
* Replace bitbucket.org domain by forge.example
* Update example to python.org
* Use explicitly invalid domain
topsecret.server.com domain is not controled by PSF. It's replaced by invalid topsecret.server.example domain. It follows RFC 2606, which advise .example as TLD for documentation.
(cherry picked from commit 924a3bfa28
)
Co-authored-by: sblondon <stephane.blondon@gmail.com>
2023-02-16 07:25:31 -08:00
Miss Islington (bot)
4aeae28671
GH-101898: Fix missing term references for hashable definition (GH-101899)
...
Fix missing term references for hashable definition
(cherry picked from commit 3690688149
)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2023-02-14 02:45:42 -08:00
Miss Islington (bot)
01b21c320b
Correct trivial grammar in reset_mock docs (GH-101861)
...
(cherry picked from commit a1f08f5f19
)
Co-authored-by: Steve Kowalik <steven@wedontsleep.org>
2023-02-13 01:20:18 -08:00
Miss Islington (bot)
1b736838e6
gh-101845: pyspecific: Fix i18n for availability directive (GH-101846)
...
pyspecific: Fix i18n for availability directive
If the directive has content, the previous code would nest paragraph
nodes from that content inside a general paragraph node, which confuses
Sphinx and leads it to drop the content when translating. Instead, use a
container node for the body.
Also use set_source_info so that any warnings have location info.
(cherry picked from commit 6ef6915d35
)
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
2023-02-12 09:28:20 -08:00
Miss Islington (bot)
91fb7c36a3
[3.11] gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391) (#GH-101813)
...
gh-101390: Fix docs for `imporlib.util.LazyLoader.factory` to properly call it a class method (GH-101391)
(cherry picked from commit 17143e2c30
)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2023-02-10 16:24:28 -08:00
Hugo van Kemenade
c485f0e39e
[3.11] Docs: Fix getstatus() -> getcode() typos (GH-101296) ( #101805 )
2023-02-11 00:26:41 +02:00
Miss Islington (bot)
18313ecb09
Docs: use parameter list for sqlite3.Cursor.execute* (GH-101782)
...
(cherry picked from commit 2037ebf81b
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-02-10 10:01:38 -08:00
Miss Islington (bot)
4a9dff0e5a
gh-101283: Version was just released, so should be changed in 3.11.3 (GH-101719)
...
(cherry picked from commit 0e0c5d8baa
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-02-08 16:11:36 -08:00
Miss Islington (bot)
51b079a2d6
Update Lib/subprocess.py
2023-02-08 15:44:06 -08:00
Miss Islington (bot)
7240ba7f94
[3.11] gh-47937: Note that Popen attributes are read-only (GH-93070) ( #101684 )
...
* Note that Popen attributes aren't meant to be set by users by rewording the text about the attributes.
* Also update some universal_newlines references to mention the modern text parameter name while in the area.
(cherry picked from commit 027adf42cd
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-02-08 11:03:56 +01:00
Oleg Iarygin
fa90671480
[3.11] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` ( #101652 ) ( #101653 )
...
(cherry picked from commit f87f6e2396
)
2023-02-08 11:02:37 +01:00
Miss Islington (bot)
c993ffa477
GH-101616: Mention the Docs Discourse forum in the "reporting docs issues" (GH-101617)
...
Fixes https://github.com/python/cpython/issues/101616
(cherry picked from commit 949c58f945
)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
2023-02-06 14:07:00 -08:00
Miss Islington (bot)
7cbcfbe2ff
GH-56426: Add cross-reference to the documentation for faulthandler, traceback, and pdb. (GH-101157)
...
(cherry picked from commit cef9de62b8
)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-03 19:56:57 -08:00
Miss Islington (bot)
4c763463fc
Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)
...
(cherry picked from commit f11a3d1ebe
)
Co-authored-by: Max Bachmann <oss@maxbachmann.de>
2023-02-03 19:40:51 -08:00
Miss Islington (bot)
4392bf648f
docs: replace PyPI description with link (GH-101506)
...
(cherry picked from commit 45d014e03b
)
Co-authored-by: François Magimel <magimel.francois@gmail.com>
2023-02-02 23:31:43 -08:00
Miss Islington (bot)
2366c1a4fe
gh-100920: Update documentation for `asyncio.StreamWriter.wait_closed` (GH-101514)
...
(cherry picked from commit 5c39daf50b
)
Co-authored-by: Viet Than <thanhoangviet@gmail.com>
2023-02-02 23:26:37 -08:00
Miss Islington (bot)
bfac5d9850
gh-100925: Move array methods under class in array doc (GH-101485)
...
* Move array methods under class in array doc
* Fix a few internal references related to the touched lines
(cherry picked from commit 1b6045668d
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-02 16:12:09 -08:00
Miss Islington (bot)
08f5c77359
docs: Fix enum reassign `str` documentation (GH-101507)
...
(cherry picked from commit 24cbc7a2a0
)
Co-authored-by: Peter Gessler <gesslerpd@users.noreply.github.com>
2023-02-02 12:40:30 -08:00
Miss Islington (bot)
c2c970fc26
Docs: improve accuracy of sqlite3 `check_same_thread` parameter (GH-101351)
...
(cherry picked from commit ee21110086
)
Co-authored-by: Marcos Pereira <3464445+marcospgp@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-01 16:00:27 -08:00
Miss Islington (bot)
e98fa7121d
gh-101467: Correct py.exe handling of prefix matches and cases when only one runtime is installed (GH-101468)
...
(cherry picked from commit eda60916bc
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-02-01 13:31:21 -08:00
Miss Islington (bot)
89442e18e1
gh-101498 : Fix asyncio.Timeout example in docs (GH-101499)
...
Doc/library/asyncio-task.rstGH-timeout
(cherry picked from commit 95fb0e0258
)
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
2023-02-01 10:19:11 -08:00
Irit Katriel
c796d34b2a
[3.11] gh-101454: fix documentation for END_ASYNC_FOR ( #101455 ) ( #101493 )
...
gh-101454: fix documentation for END_ASYNC_FOR (#101455 )
(cherry picked from commit 62251c3da0
)
2023-02-01 14:30:48 +00:00
Miss Islington (bot)
85cc5d0e5d
gh-98657: [docs] `array.typecodes` is a module-level attribute (GH-98729)
...
* gh-98657: [docs] `array.typecodes` is a module-level attribute
* Update array.rst
(cherry picked from commit c144e57b31
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-01-31 21:48:19 -08:00
Miss Islington (bot)
5e498072dc
[3.11] gh-101440: fix json snippet error in logging-cookbook.rst (GH-101439) (GH-101463)
...
(cherry picked from commit 20c11f2e60
)
Co-authored-by: Peter Jiping Xie <peter.jp.xie@gmail.com>
Automerge-Triggered-By: GH:hugovk
2023-01-31 07:51:48 -08:00
Miss Islington (bot)
9e4ba5c4bf
gh-99276 - Updated Doc/faq/general.rst (GH-101396)
...
(cherry picked from commit df0068ce48
)
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-31 07:27:55 -08:00
Miss Islington (bot)
43af2dbb54
Add JOBS parameter to docs Makefile (GH-101395)
...
(cherry picked from commit 1a62ae84c6
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2023-01-31 05:39:06 -08:00
Miss Islington (bot)
a79dd88973
gh-77607: Improve accuracy of os.path.join docs (GH-101406)
...
This is a follow-up to GH-100811.
One of the changes in that PR isn't accurate in that
`os.path.join('', '')` will not end in a separator.
This reverts that change to the previous wording that used "only", but
explicitly calls out the case where the last part ends in a separator,
which is what caused confusin in GH-77607 and motivated the change
in GH-100811.
(cherry picked from commit 909a674693
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-30 21:46:48 -08:00
Miss Islington (bot)
6a94f4c973
Fixes typo in asyncio.TaskGroup context manager code example (GH-101449)
...
(cherry picked from commit ef09bf63d2
)
Co-authored-by: Ben <22038077+bcla22@users.noreply.github.com>
2023-01-30 21:46:35 -08:00
Miss Islington (bot)
6ec9f2d5b8
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
...
(cherry picked from commit ea232716d3
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2023-01-30 10:10:26 -08:00
Miss Islington (bot)
3bcb630e07
gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)
...
(cherry picked from commit 0023f51deb
)
Co-authored-by: Mateusz <mateka@users.noreply.github.com>
2023-01-29 17:52:29 -08:00
Miss Islington (bot)
34679913fe
Fix trivial typo in shebang example (GH-101385)
...
The example was showing the current version, but should be pinned to 3.7 to match the example command.
(cherry picked from commit 666c0840dc
)
Co-authored-by: socal-nerdtastic <37753609+socal-nerdtastic@users.noreply.github.com>
2023-01-29 13:14:23 -08:00
Miss Islington (bot)
88a1e6db0f
[3.11] [doc] Add a section on logging handler configuration order. (GH-101380) (GH-101382)
...
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2023-01-27 19:12:18 +00:00
Miss Islington (bot)
1016909a6d
[3.11] [doc] Add some notices to logging configuration documentation. (GH-101373) (GH-101376)
...
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2023-01-27 17:45:59 +00:00
Miss Islington (bot)
bab79942c4
[docs] Mention how to get/set a bigint PyLong via the C API (GH-101270)
...
We don't need direct C APIs to get at a bigint representation of PyLong but we
do want the few people who need to understand how.
Additional Author: CAM-Gerlach
(cherry picked from commit e244401ce5
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-01-23 21:31:06 -08:00
Miss Islington (bot)
4cf4169350
Added asyncio REPL example to docs. (GH-101243)
...
(cherry picked from commit 5d868efde9
)
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-01-23 03:39:01 -08:00
Miss Islington (bot)
69d12d868e
[3.11] GH-101097: Switch from standard interval notation to greater or less than signs for random.random()'s documentation (GH-101119) (GH-101246)
...
(cherry picked from commit 8bcd4a6ec7
)
Co-authored-by: Andrew Hong <andrewhong@myyahoo.com>
Automerge-Triggered-By: GH:rhettinger
2023-01-22 13:45:55 -08:00
Miss Islington (bot)
db0eeb381e
[3.11] gh-86610: Use attribute directive in docs for pathlib.PurePath (GH-101114) ( #101205 )
...
(cherry picked from commit 01093b8203
)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2023-01-20 23:28:21 +01:00
Miss Islington (bot)
efc89f3454
[3.11] GH-101111: Disambigaute origin of const for store_const and append_const (GH-101121) ( #101203 )
...
(cherry picked from commit 9a155138c5
)
While the documentation for `optparse` mentioned that both `store_const` and
`append_const` store a constant value, it was not clear where this value was
coming from.
A link to `Option.const` makes this explicit.
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
2023-01-20 23:22:04 +01:00
Miss Islington (bot)
1798df2b40
[3.11] Fix minor typos in SSL documentation (GH-101158) ( #101201 )
...
(cherry picked from commit 73497690b5
)
Co-authored-by: Simon Robinson <simon@robinson.ac>
2023-01-20 23:18:25 +01:00
Miss Islington (bot)
0dc35e4bbb
gh-91485: Avoid unnecessary use of non-Python syntax in io docs (GH-101177)
...
(cherry picked from commit 783d1bc51b
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-20 14:12:26 -08:00
Miss Islington (bot)
e039d53dae
[3.11] gh-101100: [Enum] Fix sphinx warnings in docs (GH-101122) ( #101173 )
...
(cherry picked from commit 9e025d305f
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-20 23:07:23 +01:00
Miss Islington (bot)
5e1c4ac85e
[3.11] Provided better example for logging cookbook (GH-101164) (GH-101184)
...
Co-authored-by: Vladimir Malinovskii <galqiwi@galqiwi.ru>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2023-01-20 17:43:08 +00:00
Gregory P. Smith
efe3a389ca
[3.11] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional ( #101179 )
...
The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.
Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time..
(cherry picked from commit 5927013e47
)
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2023-01-20 00:06:18 -08:00
Miss Islington (bot)
1998ea69c7
gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042)
...
(cherry picked from commit 8e9d08b062
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2023-01-19 21:06:47 -08:00
Miss Islington (bot)
db65a326a4
Docs: improve sqlite3 placeholders example (GH-101092)
...
(cherry picked from commit b84be8d9c0
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-01-18 01:43:44 -08:00
Miss Islington (bot)
5e52778b1a
Fix typo in `ReprEnum` documentation (GH-101079)
...
(cherry picked from commit c5660ae96f
)
Co-authored-by: Viicos <65306057+Viicos@users.noreply.github.com>
2023-01-17 02:59:35 -08:00
Miss Islington (bot)
a3510c3a4e
gh-100247: Improve documentation for custom shebang commands in py.exe launcher (GH-101083)
...
(cherry picked from commit 30753c37c6
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-16 09:13:47 -08:00
Miss Islington (bot)
6d98282ed4
[3.11] Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029) ( #101030 )
...
Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029)
(cherry picked from commit ef633e5000
)
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2023-01-15 12:16:06 +05:30
Miss Islington (bot)
c7aa39286b
gh-100668: Clarify how sqlite3 maps parameters onto placeholders (GH-100960)
...
(cherry picked from commit 206f05a46b
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-14 15:04:53 -08:00
Miss Islington (bot)
39c1f68fff
gh-101021: Document binary parameters as bytes (GH-101024)
...
(cherry picked from commit 49cae39ef0
)
Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2023-01-14 12:22:08 -08:00
Raymond Hettinger
ba88628808
[3.11] Add recipes to showcase tee(), zip*, batched, starmap, and product. (GH-101028)
2023-01-13 22:32:32 -06:00
Miss Islington (bot)
6492492ce7
gh-100247: Fix py.exe launcher not using entire shebang command for finding custom commands (GH-100944)
...
(cherry picked from commit 468c3bf798
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2023-01-13 04:52:28 -08:00
Serhiy Storchaka
2834fdc689
[3.11] gh-100160: Tweak the documentation for the default asyncio policy (GH-100969)
2023-01-13 10:15:23 +02:00
Miss Islington (bot)
75717645bc
Fix typo in `enum` module documentation (GH-100992)
...
(cherry picked from commit 2161bbf243
)
Co-authored-by: Noam Cohen <noam@noam.me>
2023-01-12 07:51:11 -08:00
Miss Islington (bot)
e8097d49f6
GH-100894: Updated the doc for `sys.winver` to clarify its usual contents (GH-100913)
...
(cherry picked from commit d9dff4c8b5
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2023-01-11 16:21:07 -08:00
Serhiy Storchaka
1b2459dc64
[3.11] gh-100160: Remove any deprecation warnings in asyncio.get_event_loop() ( #100412 )
...
Some deprecation warnings will reappear (in a slightly different form) in 3.12.
Co-authored-by: Guido van Rossum <guido@python.org>
2023-01-10 12:20:09 -08:00
Miss Islington (bot)
a7f9afdd46
[3.11] gh-100916: Convert argument to appropriate type (GH-100917) (GH-100918)
...
Co-authored-by: Yao-Ching Huang <tom4996131207@gmail.com>
2023-01-10 10:38:57 +00:00
Hugo van Kemenade
1e74a12bde
[3.11] Fix typos in Doc folder (GH-100880). ( #100914 )
...
Co-authored-by: Semen Zhydenko <semen.zhydenko@gmail.com>
2023-01-10 11:42:03 +02:00
Miss Islington (bot)
4e096ec647
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
...
(cherry picked from commit e098137cd3
)
Co-authored-by: Ryan Ozawa <ryan.ozawa21@gmail.com>
2023-01-09 13:52:43 -08:00
Miss Islington (bot)
07d1f99e8f
[3.11] Update copyright years to 2023. (gh-100848) (GH-100849)
...
(cherry picked from commit 11f99323c2
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2023-01-08 17:57:17 -08:00
Miss Islington (bot)
87076d880c
gh-100783: fix os.path.join documentation (GH-100811)
...
- Use "drive", not "drive letter", because of UNC paths
- Previous components are not thrown away from relative drive letters
- Use "segment" instead of "component" for consistency with pathlib
- Other miscellaneous improvements
(cherry picked from commit 53455a319f
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-08 01:22:44 -08:00
Miss Islington (bot)
caed845fb5
gh-100824: Fix typo in the documentation of unittest.TestLoader.testNamePatterns (GH-100825)
...
(cherry picked from commit 6d3bc4a795
)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2023-01-08 00:16:49 -08:00
Raymond Hettinger
4b4e6da7b5
[3.11] Future-proof recipe by renaming dotproduct() to sumprod() (GH-100828)
2023-01-07 15:16:38 -06:00
Miss Islington (bot)
a3e2407f5c
gh-100673: Removed erroneous note in the get_type_hints docs (GH-100701)
...
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
(cherry picked from commit deaf090699
)
Co-authored-by: FrozenBob <30644137+FrozenBob@users.noreply.github.com>
2023-01-07 09:38:32 -08:00
Miss Islington (bot)
72263f2a20
gh-99026 update dataclasses docs for when annotations are inspected (gh-100798)
...
update dataclasses docs for when annotations are inspected
(cherry picked from commit 659c2607f5
)
Co-authored-by: Akshit Tyagi <37214399+exitflynn@users.noreply.github.com>
2023-01-06 06:34:30 -08:00
Miss Islington (bot)
d6b8413e94
gh-87691: clarify use of anchor in pathlib docs (GH-100782)
...
This is feedback from https://github.com/python/cpython/pull/100737GH-discussion_r1062968696
This matches the wording from the `os.path.join` docs better:
https://docs.python.org/3/library/os.path.htmlGH-os.path.join
In particular, the previous use of "anchor" was incorrect given the
pathlib definition of "anchor".
(cherry picked from commit 2f2fa03ff3
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2023-01-05 17:59:27 -08:00
Miss Islington (bot)
75861006d8
gh-87691: add an absolute path pathlib example in / operator docs (GH-100737)
...
The behaviour is fully explained a couple paragraphs above, but it may be useful to have a brief example to cover the behaviour.
(cherry picked from commit 1ae619c911
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Automerge-Triggered-By: GH:hauntsaninja
2023-01-05 15:04:39 -08:00
Miss Islington (bot)
a34f0bdcf6
GH-100766: Note that locale.LC_MESSAGES is not universal (GH-100767)
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2023-01-05 03:46:13 +00:00
Miss Islington (bot)
eba6b00953
[3.11] gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353) ( #100704 )
...
gh-81611: Improve `range` paragraph in 8.3 of language reference (GH-98353)
(cherry picked from commit 8b1f125121
)
Co-authored-by: 4l4k4z4m <alakazamjoined@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-01-04 15:57:24 -05:00
Miss Islington (bot)
c915f00eca
docs: fix `ssizeobjargproc` parameters (GH-100736)
...
(cherry picked from commit 5fb1c08e15
)
Co-authored-by: David Lechner <david@lechnology.com>
2023-01-04 07:40:06 -08:00
Zachary Ware
b93bd153d5
[3.11] Docs: Fix the Show Source link (GH-100733)
...
See also python/release-tools#10
2023-01-03 16:51:36 -06:00
Miss Islington (bot)
7e9b2b0aa7
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
...
(cherry picked from commit 64ed609c53
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2023-01-03 14:27:38 -08:00
Zachary Ware
f49006e6a2
gh-100700: Remove Date and Release fields in past whatsnews (GH-100729)
2023-01-03 16:10:57 -06:00
Miss Islington (bot)
b99ac1dbc0
fix `grammer` -> `grammar` typo in expressions.rst (GH-100683)
...
(cherry picked from commit 7feb6d2f85
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
2023-01-02 03:57:51 -08:00
Miss Islington (bot)
1bc0705e64
Fix deprecation doc for `PyEval_InitThreads` (GH-100667)
...
(cherry picked from commit 254ab42240
)
Co-authored-by: Alexander Shadchin <alexandr.shadchin@gmail.com>
2023-01-02 03:21:20 -08:00
Miss Islington (bot)
af136e9877
gh-100428: Make int documentation more accurate (GH-100436)
...
- Remove first link to lexical definition of integer literal, since it
doesn't apply (differs in handling of leading zeros, base needs to be
explicitly specified, unicode digits are allowed)
- Better describe handling of leading zeros, unicode digits, underscores
- Base 0 does not work exactly as like a code literal, since it allows
Unicode digits. Link code literal to lexical definition of integer
literal.
(cherry picked from commit edfbf56f4c
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-01-01 19:21:58 -08:00
Miss Islington (bot)
e7a2659b4c
gh-99953: Purge mention of numeric param style from sqlite3 docs (GH-100630)
...
The PEP-249 numeric style has never been supported by sqlite3.
(cherry picked from commit b7a68ab824
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-01-01 14:35:39 -08:00
Miss Islington (bot)
18ccb84697
gh-100201: Document behavior with a bare `yield` statement (GH-100416)
...
(cherry picked from commit 1aab269d4a
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-01-01 07:44:27 -08:00
Miss Islington (bot)
c7dcfdaef6
gh-96773 Fix documentation of socket backlog (GH-96778)
...
(cherry picked from commit 1d1480fefc
)
Co-authored-by: Mehrdad Moradizadeh <mhrddmoradii@gmail.com>
2023-01-01 07:13:50 -08:00
Miss Islington (bot)
7ed7127876
gh-100546: Remove incorrect positional-only marker from eval (GH-100547)
...
All the arguments are positional-only.
The current status after GH-99476 seems to be to not use positional-only
markers in documentation, hence I've simply removed it.
(cherry picked from commit 71159a8e07
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-31 17:06:31 -08:00
Miss Islington (bot)
f80ba44f7d
gh-100633 Tutorial: Fix dataclasses import (GH-100638)
...
import dataclass not dataclasses from dataclasses
(cherry picked from commit 98308dbeb1
)
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2022-12-31 04:28:59 -08:00
Miss Islington (bot)
f9ddbc0de5
GH-85979: Clarify specification of `object.__await__` (GH-22320)
...
(cherry picked from commit f59c7f8edd
)
Co-authored-by: Paolo Lammens <lammenspaolo@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-12-30 22:34:12 -08:00
Miss Islington (bot)
18006309ea
[3.11] Improve comments in itertools uniquification recipes (GH-100631) (GH-100632)
2022-12-30 22:23:39 -06:00
Miss Islington (bot)
297465a4db
gh-100616: Document 'attr' parameter for window.vline() in curses module (GH-24961)
...
(cherry picked from commit f4fcfdf8c5
)
Co-authored-by: mathieui <mathieui@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-12-30 09:05:49 -08:00
Miss Islington (bot)
e180dff4c7
gh-100583: Improve the `pydoc` documentation (GH-100590)
...
(cherry picked from commit 7223d50b97
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2022-12-29 07:24:11 -08:00
Miss Islington (bot)
ac31120de7
GH-100101: Clarify documentation of zip's strict option (GH-100103)
...
(cherry picked from commit cf1c098180
)
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2022-12-28 13:32:19 -08:00
Miss Islington (bot)
9120450b25
Restore early-out to factor(). Strengthen tests. (GH-100591)
...
(cherry picked from commit c4c5790120
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-12-28 12:37:58 -08:00
Miss Islington (bot)
95fa61cbce
Improve factor() recipe and fix its tests (GH-100576)
...
(cherry picked from commit 2d52406835
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-12-28 03:22:11 -08:00
Miss Islington (bot)
de621281ce
gh-55688: Add note about ending backslashes for raw strings (GH-94768)
...
(cherry picked from commit b95b1b3b25
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
2022-12-27 21:45:45 -08:00
Shantanu
2cb4b13af6
[3.11] gh-92446: Improve argparse choices docs (GH-94627) ( #100528 )
...
Based on the definition of the collections.abc classes, it is more accurate to use "sequence" instead of "container" when describing argparse choices.
(cherry picked from commit ad3c99e521
)
Co-authored-by: Guy Yagev <yourlefthandman8@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-26 01:09:06 -06:00
Miss Islington (bot)
44b664e057
gh-99535: Add test for inheritance of annotations and update documentation (GH-99990)
...
(cherry picked from commit f5b7b19bf1
)
Co-authored-by: MonadChains <monadchains@gmail.com>
2022-12-24 12:31:10 -08:00
Miss Islington (bot)
f801fa8ee5
gh-100472: Fix docs claim that compileall parameters could be bytes (GH-100473)
...
(cherry picked from commit 046cbc2080
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-24 12:29:50 -08:00
Miss Islington (bot)
80013d78e0
[Minor PR] Quotes in documentation changed into code blocks (GH-99536)
...
Minor formatting fix in documentation
(cherry picked from commit efccd04b9e
)
Co-authored-by: Bart Broere <mail@bartbroere.eu>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-24 12:26:11 -08:00
Miss Islington (bot)
3b70487459
GH-93179: Document the thread safety of functools.lru_cache (GH-95970)
...
(cherry picked from commit ba4bb7e464
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-12-24 12:25:34 -08:00
Miss Islington (bot)
bf0f306bcd
gh-100428: Make float documentation more accurate (GH-100437)
...
Previously, the grammar did not accept `float("10")`.
Also implement mdickinson's suggestion of removing the indirection.
(cherry picked from commit 2e1a9ce989
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-24 12:18:40 -08:00
Miss Islington (bot)
a7eee898ab
gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499)
...
(cherry picked from commit 00afa5066b
)
Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-24 07:32:00 -08:00
Miss Islington (bot)
ba87dae453
Misc Itertools recipe tweaks (GH-100493)
...
(cherry picked from commit 0769f95751
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-12-24 00:31:36 -08:00
Miss Islington (bot)
b914054d9d
gh-77771: Add enterabs example in sched (GH-92716)
...
(cherry picked from commit 0f6420640c
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-23 21:31:18 -08:00
Gregory P. Smith
a852c5f8ee
[3.11] Correct CVE-2020-10735 documentation (GH-100306). ( #100476 )
...
(cherry picked from commit 1cf3d78c92
)
Co-authored-by: Jeremy Paige <ucodery@gmail.com>
2022-12-23 18:07:50 -08:00
Miss Islington (bot)
9477594374
Add "strict" to dotproduct(). Add docstring. Factor-out common code. (GH-100480)
...
(cherry picked from commit f89de679ff
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-12-23 16:00:21 -08:00
Miss Islington (bot)
4b3b6423c3
gh-98712: Clarify "readonly bytes-like object" semantics in C arg-parsing docs (GH-98710)
...
(cherry picked from commit 49f6ff719c
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-12-23 07:08:11 -08:00
Miss Islington (bot)
1fa4c6bd1f
gh-48496: Added example and link to faq for UnboundLocalError in reference (GH-93068)
...
(cherry picked from commit f3db68e6e6
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-12-22 15:30:12 -08:00
Miss Islington (bot)
fe828ec709
gh-91081: Add note on WeakKeyDictionary behavior when deleting a replaced entry (GH-91499)
...
(cherry picked from commit c615286e85
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <P.T.eendebak@tudelft.nl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-12-20 19:34:17 -08:00
Miss Islington (bot)
23fa1667b3
gh-99991: improve docs on str.encode and bytes.decode (GH-100198)
...
(cherry picked from commit a2bb3b7f9d
)
Co-authored-by: Bisola Olasehinde <horlasehinde@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-20 18:12:53 -08:00
Miss Islington (bot)
1332fdabba
Clarify that every thread has its own default context in contextvars (GH-99246)
...
(cherry picked from commit cb60b6131b
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-12-20 03:44:55 -08:00
Miss Islington (bot)
cfa78ecc12
gh-69929: re docs: Add more specific definition of \w (GH-92015)
...
(cherry picked from commit 36a0b1d0dd
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-12-19 19:14:52 -08:00
Raymond Hettinger
09186676cf
[3.11] GH-98363: Update batched() recipe in docs to match 3.12 ( #100323 )
2022-12-17 19:10:03 -06:00
Miss Islington (bot)
bf0a334c4e
Docs: Use `PY_VERSION_HEX` for version comparison (GH-100179)
...
(cherry picked from commit 0264f634f7
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-12-16 23:49:49 -08:00
Miss Islington (bot)
370498b12e
gh-97909: Fix markup for `PyMethodDef` members (GH-100089)
...
(cherry picked from commit 8edcb30c3f
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2022-12-16 23:19:45 -08:00
Miss Islington (bot)
e3d85783e5
Document that zipfile's pwd parameter is a `bytes` object (GH-100209)
...
(cherry picked from commit 5ee7eb9deb
)
Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
2022-12-16 22:54:33 -08:00
Miss Islington (bot)
4c810f92ba
gh-99830: asyncio: Document returns of remove_{reader,writer} (GH-100302)
...
(cherry picked from commit 5234e1cbea
)
Co-authored-by: Ben Darnell <ben@bendarnell.com>
2022-12-16 11:14:28 -08:00
Miss Islington (bot)
138c2e6f3f
[3.11] "Compound statement" docs: Fix with-statement step indexing (GH-100286) (GH-100300)
...
Back in commit 226e6e7d43
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.
(cherry picked from commit f23236a92d
)
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
2022-12-16 11:01:24 -08:00
Miss Islington (bot)
9d2dcbbccd
[3.11] Remove uninformative itertools recipe (GH-100253) (GH-100275)
2022-12-15 12:47:58 -06:00
Miss Islington (bot)
cb1001ce23
gh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs (GH-100249)
...
(cherry picked from commit 9663853800
)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2022-12-14 09:07:36 -08:00
Miss Islington (bot)
cd4166fec2
GH-100206: use versionadded for the addition of sysconfig.get_default_scheme (GH-100207)
...
(cherry picked from commit d3ea82aaf9
)
Co-authored-by: Filipe Laíns <lains@riseup.net>
2022-12-13 03:02:41 -08:00
Miss Islington (bot)
60383a3cd8
Fix: typo (Indention) (GH-99904)
...
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.
(cherry picked from commit 8711b59f7a
)
Co-authored-by: jarrodcolburn <jcourtlandcolburn@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
2022-12-12 04:38:39 -08:00
Miss Islington (bot)
17bc55e043
clarify the 4300-digit limit on int-str conversion (GH-100175)
...
(cherry picked from commit 935ef59321
)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2022-12-12 04:06:48 -08:00
Miss Islington (bot)
71b032635d
gh-70393: Clarify mention of "middle" scope (GH-98839)
...
(cherry picked from commit 70be5e42f6
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-12-11 20:25:06 -08:00
Miss Islington (bot)
593c5a0247
gh-100174: [Enum] Correct PowersOfThree example. (GH-100178)
...
Changed from multiples of 3 to powers of 3 to match the class name.
(cherry picked from commit 868bab0fdc
)
Co-authored-by: Beweeted <Beweeted@users.noreply.github.com>
2022-12-11 15:30:25 -08:00
Miss Islington (bot)
606adb4b89
gh-99728: correct typo in `datetime` format codes documentation (GH-99750)
...
(cherry picked from commit d5f8a2b6ad
)
Co-authored-by: Brad Wolfe <brad.wolfe@gmail.com>
2022-12-10 02:29:04 -08:00
Miss Islington (bot)
9aca00341a
gh-100049: fix `repr` for `mappingproxy` in dictionary view example doc (GH-100052)
...
(cherry picked from commit 7c0fb71fbf
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2022-12-10 01:23:24 -08:00
Miss Islington (bot)
ecb16d5d63
gh-96250: Improve sqlite3 injection attack example (GH-99270)
...
(cherry picked from commit 41d4ac9da3
)
Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-12-08 12:45:40 -08:00
Miss Islington (bot)
0274a3bc3b
Use sphinxext-opengraph to generate OpenGraph metadata (GH-99931)
...
(cherry picked from commit f49c735e52
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-08 09:34:52 -08:00
Serhiy Storchaka
3fae04b10e
[3.11] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created ( #99949 )
...
It no longer emits a deprecation warning if the current event loop was set.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-12-06 16:15:44 +01:00
Miss Islington (bot)
235f5fd2ca
[3.11] gh-100001: Remove doc typo, add versionadded (GH-100042) ( #100043 )
...
(cherry picked from commit bed15f87ea
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-12-06 11:34:20 +01:00
Miss Islington (bot)
05031ee1f5
[Enum] Fix typos in the documentation (GH-99960)
...
(cherry picked from commit 2ae894b6d1
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-12-05 21:46:48 -08:00
Miss Islington (bot)
a726f747e6
gh-100001: Omit control characters in http.server stderr logs. (GH-100002)
...
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.
(cherry picked from commit d8ab0a4dfa
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-12-05 13:39:22 -08:00
Miss Islington (bot)
f3a58cece6
[3.11] dataclasses.rst: Prevent horizontal scrolling (gh-100025) (gh-100028)
...
dataclasses.rst: Prevent horizontal scrolling (gh-100025)
(cherry picked from commit 51ee0a29e9
)
Co-authored-by: Ram Rachum <ram@rachum.com>
Co-authored-by: Ram Rachum <ram@rachum.com>
2022-12-05 13:59:34 -05:00
Miss Islington (bot)
7f2bcc7aaa
gh-93464: [Enum] Add versionchanged tag (GH-99997)
...
(cherry picked from commit e3a3863cb9
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-12-05 02:45:37 -08:00
Miss Islington (bot)
27218d0799
gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice and suggest other edits (GH-99784)
...
(cherry picked from commit bf26bdf6ac
)
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
2022-12-03 16:59:06 -08:00
Miss Islington (bot)
f4511d3ee9
[3.11] GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916) (GH-99912)
...
GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916)
Mention fullmatch along with search and match.
(cherry picked from commit e0f91deb59
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2022-11-30 18:14:36 -05:00
Miss Islington (bot)
90701ebaf4
bpo-47220: Document the optional callback parameter of weakref.WeakMethod (GH-25491)
...
(cherry picked from commit 9628136fac
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-11-30 11:53:04 -08:00
Miss Islington (bot)
d7c2e0a537
Docs: improve accuracy of socketserver reference (GH-24767)
...
(cherry picked from commit 052bc128ac
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2022-11-29 12:43:09 -08:00
Miss Islington (bot)
fbe388162b
whatsnew-3.10: Mention PEP 647 in the Release highlights section. (GH-99853)
...
Mention PEP 647 in the Release highlights section.
Also re-ordered the list so it matches the order in the details sections below.
(cherry picked from commit d74a58872c
)
Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
2022-11-29 12:41:05 -08:00
Miss Islington (bot)
2e9ea7b44b
gh-90717: Update the documentation for the altchars paremeter in base64 library (GH-94187)
...
(cherry picked from commit 05dfc539c2
)
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
2022-11-29 08:29:03 -08:00
Miss Islington (bot)
a2b84bbf77
`fnmatch` docs: link to `fnmatch.filter()`, not `builtins.filter()` (GH-99819)
...
(cherry picked from commit ca3e611b1f
)
Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
2022-11-28 10:17:07 -08:00
Miss Islington (bot)
5dce4ab736
gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)
...
These slots are marked "should be treated as read-only" in the
table at the start of the document. That doesn't say anything about
setting them in the static struct.
`tp_bases` docs did say that it should be ``NULL`` (TIL!). If you
ignore that, seemingly nothing bad happens. However, some slots
may not be inherited, depending on which sub-slot structs are present.
(FWIW, NumPy sets tp_bases and is affected by the quirk -- though to
be fair, its DUAL_INHERIT code probably predates tp_bases docs, and
also the result happens to be benign.)
This patch makes things explicit.
It also makes the summary table legend easier to scan.
(cherry picked from commit 219696abb2
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-11-28 03:25:04 -08:00
Miss Islington (bot)
1e327059a3
bpo-41825: restructure docs for the os.wait*() family (GH-22356)
...
(cherry picked from commit 492dc02b01
)
Co-authored-by: Georg Brandl <georg@python.org>
2022-11-28 01:48:52 -08:00
Miss Islington (bot)
f160996412
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
...
(cherry picked from commit 276643e207
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-11-27 13:21:00 -08:00
Miss Islington (bot)
366adc7c83
gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339)
...
GH-91340
https://bugs.python.org/issue47184
(cherry picked from commit dfc2732a57
)
Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Automerge-Triggered-By: GH:kumaraditya303
2022-11-27 10:05:59 -08:00
Miss Islington (bot)
8bb7fdaee8
doc: Remove backslashes in doctest grammar docs (GH-29346)
...
(cherry picked from commit 22860dbbc8
)
Co-authored-by: George Zhang <geetransit@gmail.com>
2022-11-26 22:46:33 -08:00
Miss Islington (bot)
4ce1a827db
bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-24659)
...
The docs stated that PyImport_ImportFrozenModuleObject() returns a
new reference, but it actually returns an int.
(cherry picked from commit 62a5dc13e9
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-11-26 22:37:08 -08:00
Miss Islington (bot)
fe9957241a
gh-99795: Fix typo in importlib.resources.abc (GH-99796)
...
Changing TraversableReader to TraversableResources at one place of the documentation.
See GH-99795 for more details.
(cherry picked from commit 5f8898216e
)
Co-authored-by: busywhitespace <busywhitespace@tuta.io>
2022-11-26 10:12:23 -08:00
Miss Islington (bot)
f98322920e
[3.11] gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512) ( #99791 )
...
gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512)
Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
It is the same function, just re-exported. So, I guess they should mention the same input types.
(cherry picked from commit 47d673d81f
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-11-26 15:19:23 +05:30
Miss Islington (bot)
0006d9bf7b
Fix typo in `__match_args__` doc (GH-99785)
...
A opy of GH-98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.
(cherry picked from commit a86d854522
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-11-25 16:10:48 -08:00
Miss Islington (bot)
00755196e3
[3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) ( #99451 )
...
Fix misspelling in docs for http.HTTPMethod (GH-99376)
(cherry picked from commit f0d12ca0e0
)
Co-authored-by: Matt Harasymczuk <github.com@haras.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-25 18:26:50 -05:00
Miss Islington (bot)
f5fa17bef5
gh-64019: Have attribute table in `inspect` docs link to module attributes instead of listing them (GH-98116)
...
(cherry picked from commit 7d2dcc53d0
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
2022-11-25 14:06:45 -08:00
Miss Islington (bot)
772fc63516
[3.11] gh-85073: Add some missing links to source (GH-99363) ( #99586 )
...
gh-85073: Add some missing links to source (GH-99363)
Add some missing links to source from Python docs
(cherry picked from commit 27d8dc2c9d
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-11-25 23:19:40 +05:30
Miss Islington (bot)
5b7408490f
gh-96168: Add sqlite3 row factory how-to (GH-99507)
...
(cherry picked from commit 8749121b07
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-11-25 05:15:09 -08:00
Miss Islington (bot)
d279f38a71
Fix rendering of audioop license in Doc/license.rst (GH-99752)
...
Also some cosmetic blank line additions for consistency with the
formatting of the rest of the file.
(cherry picked from commit b5b3904f05
)
Co-authored-by: Zachary Ware <zach@python.org>
2022-11-24 08:29:21 -08:00
Miss Islington (bot)
609273eb52
gh-99619: fix error in documentation of ExceptionGroup.derive() (GH-99621)
...
(cherry picked from commit 5d9183c7ad
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-11-23 03:08:22 -08:00
Miss Islington (bot)
b4ae5b76ed
[3.11] gh-99650 : Updated argparse docs (GH-99653) (GH-99705)
2022-11-22 14:17:20 -08:00
Miss Islington (bot)
a64e71eece
GH-92892: Add section about variadic functions to ctypes documentation (GH-99529)
...
On some platforms, and in particular macOS/arm64, the calling
convention for variadic arguments is different from the regular
calling convention. Add a section to the documentation to document
this.
(cherry picked from commit bc3a11d21d
)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2022-11-22 10:57:09 -08:00
Miss Islington (bot)
420b7e8f43
[3.11] gh-99146 struct module documentation should have more predictable examples/warnings (GH-99141) (GH-99702)
...
gh-99146 struct module documentation should have more predictable examples/warnings (GH-99141)
* nail down a couple examples to have more predictable output
* update a number of things, but this is really just a stash...
* added an applications section to describe typical uses for native and machine-independent formats
* make sure all format strings use a format prefix character
* responding to comments from @gpshead. Not likely finished yet.
* This got more involved than I expected...
* respond to several PR comments
* a lot of wordsmithing
* try and be more consistent in use of ``x`` vs ``'x'``
* expand examples a bit
* update the "see also" to be more up-to-date
* original examples relied on import * so present all examples as if
* reformat based on @gpshead comment (missed before)
* responding to comments
* missed this
* one more suggested edit
* wordsmithing
(cherry picked from commit 22d91c16bb
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-22 18:16:59 +00:00
Miss Islington (bot)
9a4b2f4f7f
gh-93937: Document PyFrame_Check and PyFrame_Type (GH-99695)
...
(cherry picked from commit d15b9f19ac
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-11-22 07:50:39 -08:00
Miss Islington (bot)
05147dc383
gh-99662: fix typo in typing.TypeVarTuple docs (GH-99672)
...
(cherry picked from commit 1bf983ce7e
)
Co-authored-by: GabrielAnguita <60579349+GabrielAnguita@users.noreply.github.com>
2022-11-21 20:09:49 -08:00
Miss Islington (bot)
bb4c091583
[3.11] GH-95815: Document less specific error for os.remove (GH-99571) ( #99641 )
...
GH-95815: Document less specific error for os.remove (GH-99571)
os.remove can raise PermissionError instead of IsADirectoryError,
when the object to be removed is a directory (in particular on
macOS).
This reverts a change done in GH-14262.
(cherry picked from commit 1cae31d26b
)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2022-11-21 12:04:55 +01:00
Miss Islington (bot)
a15ab1ec65
Doc: Make functions.html readable again. (GH-99476)
...
(cherry picked from commit 858cb79486
)
Co-authored-by: Julien Palard <julien@palard.fr>
2022-11-19 02:58:32 -08:00
Miss Islington (bot)
369cb3e66a
Doc: Replace question mark with fullstop (GH-99558)
...
The sentence "Set the LC_CTYPE locale to the user preferred locale." should end with a period
instead of a question mark.
(cherry picked from commit 0e09d2cc59
)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2022-11-18 11:34:10 -08:00
Miss Islington (bot)
82ab9e6b79
gh-99553: fix bug where an ExceptionGroup subclass can wrap a BaseException (GH-99572)
...
(cherry picked from commit c8c6113398
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-11-18 08:10:55 -08:00
Gregory P. Smith
51c68cf466
[3.11] gh-98930: improve the docstring of signal.strsignal (GH-99290) ( #99449 )
...
Improves the docstring on signal.strsignal to make it explain when it returns a message, None, or when it raises ValueError.
Closes GH-98930
Co-authored-by: Gregory P. Smith <greg@krypto.org>.
(cherry picked from commit 88385b8564
)
Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
2022-11-13 12:21:19 -08:00
Miss Islington (bot)
edf744990e
gh-99392: Fix sqlite3 converter recipes (GH-99393)
...
(cherry picked from commit dfc1b17a23
)
Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
2022-11-12 11:48:52 -08:00
Miss Islington (bot)
944ac46b88
[3.11] gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395) (GH-99415)
...
gh-99304: [Enum] clarify what constitutes a flag alias (GH-99395)
(cherry picked from commit 73a921b070
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-12 10:43:32 -08:00
Miss Islington (bot)
d75b2e2fc8
gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372)
...
(cherry picked from commit c3c3871415
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-11-11 05:42:44 -08:00
Miss Islington (bot)
b31b64570a
gh-84522: Add for-loop to apply-method-to-sequence FAQ (GH-94660)
...
(cherry picked from commit 97c493dd35
)
Co-authored-by: Samuel Sloniker <sam@kj7rrv.com>
2022-11-10 20:26:31 -08:00
Miss Islington (bot)
edd92a11ab
gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437)
...
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py
[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
(cherry picked from commit d26ee8a0a5
)
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
2022-11-10 17:30:50 -08:00
Miss Islington (bot)
17f1c0ab06
GH-99183: Document behavior of count() for empty substrings (GH-99339)
...
(cherry picked from commit 2f4af2d99c
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2022-11-10 13:29:16 -08:00
Miss Islington (bot)
014940ac70
Update reference to the size of PyPI (GH-99076)
...
Update reference to the size of PyPI
Last changed in 2008 (528576031d
).
(cherry picked from commit 58ee5d8677
)
Co-authored-by: jmcb <joelsgp@protonmail.com>
2022-11-09 11:36:10 -08:00
Miss Islington (bot)
cf5dbb47a2
[Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265)
...
(cherry picked from commit b3bd69c1bf
)
Co-authored-by: Bruno Neyra <112962296+blv-brunoneyra@users.noreply.github.com>
2022-11-08 16:51:04 -08:00
Miss Islington (bot)
00147a84fc
gh-99238: clarify the type of the env dict. (GH-99253)
...
(cherry picked from commit 2eee9d9cd7
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-11-08 13:09:04 -08:00
Miss Islington (bot)
ca944628ac
Fix broken link in `asyncio-subprocesses` doc (GH-99214)
...
GH- Fix broken link in Doc/library/asyncio-subprocess.rst
This is a trivial fix in documentation to fix a broken link.
There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.htmlGH-asyncio.subprocess.Process ) for the function ``wait_for``:

I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs.
This PR fixes the link and the result looks like the following:

(cherry picked from commit acf4d5d5bd
)
Co-authored-by: Mikael Koli <koli.mikael@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
2022-11-08 08:33:51 -08:00
Miss Islington (bot)
2d00190591
gh-92119: ctypes: Print exception class name instead of its representation (GH-98302)
...
(cherry picked from commit b9dedfe61d
)
Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
2022-11-07 21:20:06 -08:00
Miss Islington (bot)
857f6a44a5
[3.11] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) (GH-99212)
...
gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002)
The flag is not inherited, but its effect -- a NULL tp_new -- is.
Drop hints for people who come here wanting to “disallow instantiation”.
(cherry picked from commit 1438b77997
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-11-07 19:55:58 +01:00
Miss Islington (bot)
3dbf2708f5
doc: Formatting and typo fixes (GH-98974)
...
(cherry picked from commit 728e42fcf5
)
Co-authored-by: jmcb <joelsgp@protonmail.com>
2022-11-07 09:14:52 -08:00
Miss Islington (bot)
c4408d35f6
gh-94286 Fix documentation of print default param (GH-94297)
...
(cherry picked from commit 2db55e0c00
)
Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
2022-11-06 12:24:02 -08:00
Miss Islington (bot)
be4bab8c2b
gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148)
...
* fix auto() failure during multiple assignment
i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1,
'text')`. Before it would have been `(<an auto instance>, 'text')`
(cherry picked from commit 8feb7ab77c
)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-11-06 06:30:32 -08:00
Miss Islington (bot)
e0fc2b3fd1
[doc] fix typo (GH-99143)
...
(cherry picked from commit 586b07e1f9
)
Co-authored-by: Doj <34577424+visualdoj@users.noreply.github.com>
2022-11-05 14:12:22 -07:00
Jason R. Coombs
07734a42db
[3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875)
...
These changes are already applied to main but have been selected from importlib_metadata 4.x for their bug fixes.
2022-11-05 06:55:04 -07:00
Miss Islington (bot)
f7d2c948f5
minor edits to locale doc (GH-98537)
...
(cherry picked from commit c0bf7607a1
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-04 06:12:01 -07:00
Miss Islington (bot)
2ef2eaac15
Docs: add `named` to the list of styles in the sqlite3.paramstyle attr docs (GH-99078)
...
(cherry picked from commit 016c7d37b6
)
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-11-03 16:27:53 -07:00
Miss Islington (bot)
eb023a84d9
gh-98740: Fix validation of conditional expressions in RE (GH-98764)
...
In very rare circumstances the JUMP opcode could be confused with the
argument of the opcode in the "then" part which doesn't end with the
JUMP opcode. This led to incorrect detection of the final JUMP opcode
and incorrect calculation of the size of the subexpression.
NOTE: Changed return value of functions _validate_inner() and
_validate_charset() in Modules/_sre/sre.c. Now they return 0 on success,
-1 on failure, and 1 if the last op is JUMP (which usually is a failure).
Previously they returned 1 on success and 0 on failure.
(cherry picked from commit e9ac890c02
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-11-03 00:47:39 -07:00
Miss Islington (bot)
2199a7dace
gh-65002: Make note that null bytes are used to pad bytes (GH-98635)
...
(cherry picked from commit 8cd21c2c5d
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-11-02 19:24:24 -07:00
Miss Islington (bot)
e0df94dc7c
Docs: Add 'as, match statement' to the index (GH-99001)
...
(cherry picked from commit 26720fffd0
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-11-02 19:22:41 -07:00
Miss Islington (bot)
8b4d5b1047
argparse howto: Use f-string in preference to "...".format() (GH-98883)
...
(cherry picked from commit 1fd20d0b57
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-02 19:17:33 -07:00
Miss Islington (bot)
88736db5d6
gh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)
...
(cherry picked from commit c053284e39
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-11-02 14:57:26 -07:00
Miss Islington (bot)
46ccb35a40
gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)
...
(cherry picked from commit 898d0d9ad8
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-11-01 22:12:52 -07:00
Miss Islington (bot)
d683bcc7d0
gh-96265: Formatting changes for faq/programming (GH-98242)
...
* Formatting changes for faq/programming
* Add missing method formatting, use non-literal formatting
* Fix sphinx warnings
* Some extra formatting missed earlier
* More formatting suggestions from review
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Add missing colon, avoid referening external module
(cherry picked from commit 0689b99bb8
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-01 22:06:26 -07:00
Miss Islington (bot)
b2e28c8700
gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958)
...
(cherry picked from commit 65d1407737
)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-11-01 21:00:13 -07:00
Miss Islington (bot)
67f63b82b8
[3.11] [doc] Update cookbook example for socket-based logging in a production sett… (GH-98922) (GH-98980)
...
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-11-01 23:34:32 +00:00
Miss Islington (bot)
129de5d4a2
Doc: use "unnumbered" footnotes (GH-98954)
...
Use unnumbered footnote in this file to avoid reseting the footnotes numbering.
Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
(cherry picked from commit f042646595
)
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
2022-11-01 06:35:34 -07:00
Miss Islington (bot)
e02ce485ac
[3.11] Missing PS1 prompt in tutorial example (GH-98921) (GH-98944)
...
(cherry picked from commit d22bde983e
)
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
Automerge-Triggered-By: GH:rhettinger
2022-11-01 04:08:26 -07:00
Miss Islington (bot)
217a317425
Fix wording in Functional Programming HOWTO (GH-98939)
...
(cherry picked from commit f4d56292e9
)
Co-authored-by: partev <petrosyan@gmail.com>
2022-10-31 19:57:42 -07:00
Miss Islington (bot)
46a3cf4fe3
gh-98692: Enable treating shebang lines as executables in py.exe launcher (GH-98732)
...
(cherry picked from commit 88297e2a8a
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2022-10-31 14:31:26 -07:00
Miss Islington (bot)
a4f8db19ad
Fix typo in sorting HOWTO (GH-98888)
...
(cherry picked from commit 3b86538661
)
Co-authored-by: partev <petrosyan@gmail.com>
2022-10-31 11:07:14 -07:00
Miss Islington (bot)
43cbb3df9a
Doc: Fix sphinx-lint issues (GH-98911)
...
They were introduced right between GH-98441 and GH-98408.
(cherry picked from commit c1c3be0f9d
)
Co-authored-by: Julien Palard <julien@palard.fr>
2022-10-31 10:29:30 -07:00
Miss Islington (bot)
f6f07b252f
gh-98576: Fix types in dataclass.InitVar example (gh-98577)
...
(cherry picked from commit 880bafc574
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-31 08:14:04 -07:00
Miss Islington (bot)
a55bd6f884
glossary.rst: Fix typo in package definition (GH-98865)
...
This is a tiny typo fix of package definition in glossary.
According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly.
Automerge-Triggered-By: GH:AlexWaygood
(cherry picked from commit fc94d55ff4
)
Co-authored-by: ab <abousselmi@users.noreply.github.com>
2022-10-29 15:50:31 -07:00
Miss Islington (bot)
d038307b10
Fix typo in docs (GH-98863)
...
(cherry picked from commit bfecff5f73
)
Co-authored-by: Yuvi Panda <yuvipanda@gmail.com>
2022-10-29 13:56:27 -07:00
Miss Islington (bot)
f8fb0d8e77
gh-93358: Fix python-config docs for how to embed Python (GH-98649)
...
(cherry picked from commit e063c23c65
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-29 11:55:01 -07:00
Miss Islington (bot)
e237bf6862
dataclasses docs: consistent indentation (4 spaces) in examples (GH-98855)
...
(cherry picked from commit d10c2b9742
)
Co-authored-by: FC Stegerman <flx@obfusk.net>
2022-10-29 10:15:16 -07:00
Miss Islington (bot)
12957d7cbd
Fix typo in contextvars docs (GH-98823)
...
(cherry picked from commit 72fa57a8fe
)
Co-authored-by: cburroughs <chris.burroughs@gmail.com>
2022-10-28 14:23:26 -07:00
Miss Islington (bot)
2d4b6e00f0
`argparse` docs: normalize constant references (GH-98765)
...
(cherry picked from commit b27b57c6e4
)
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-10-28 05:25:58 -07:00
Miss Islington (bot)
434943e0b4
[3.11] Python documents state elsewhere that a comma is not an operator (GH-98736) ( #98757 )
...
Python documents state elsewhere that a comma is not an operator, so calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.htmlGH-operators and https://docs.python.org/3/faq/programming.htmlGH-id22 .
(cherry picked from commit d578aaea62
)
Co-authored-by: Gerardwx <Gerardwx@users.noreply.github.com>
2022-10-28 12:15:34 +02:00
Stanley
5f86275ec2
[3.11] Change links to label refs (GH-98454) ( #98725 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 268129a74f
)
2022-10-26 13:18:50 -07:00
Miss Islington (bot)
78df56ec69
gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720)
...
(cherry picked from commit 365852a03a
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-26 08:01:54 -07:00
Miss Islington (bot)
ca266aaf45
gh-98644: point people to tomllib from configparser’s docs (GH-98645)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 5e74bad93c
)
Co-authored-by: Philipp A <flying-sheep@web.de>
2022-10-26 07:14:44 -07:00
Miss Islington (bot)
2aedba59ec
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
...
(cherry picked from commit 216f45e4fe
)
Co-authored-by: fancidev <fancidev@gmail.com>
2022-10-25 20:55:29 -07:00
Miss Islington (bot)
7a25d27ec2
gh-77753: Add example for values that compare equal in stdtypes (GH-98497)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 0ca6a4d640
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 20:02:44 -07:00
Miss Islington (bot)
8777d059bb
gh-84747: Add `async for` comment for StreamReader (GH-98633)
...
(cherry picked from commit 4196ee5c8b
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 19:23:08 -07:00
Miss Islington (bot)
fa95b69856
fix a typo in whatsnew/3.11 (GH-98603)
...
(cherry picked from commit 45644905ea
)
Co-authored-by: July Tikhonov <july.tikh@gmail.com>
2022-10-25 16:50:09 -07:00
Miss Islington (bot)
298364f794
Fix typos in deprecation section of 3.11 What's New (GH-98628)
...
(cherry picked from commit faea6a131a
)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2022-10-25 16:44:18 -07:00
Miss Islington (bot)
08c3c91055
gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)
...
* Fix names/references of pending removal APIs
* Sort list of APIs pending removal alphabetically
* Add missing modules/submodules pending removal in 3.12
* Add table of unittest deprecated aliases to 3.11 What's New
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit e19c2b979f
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-25 16:41:51 -07:00
Miss Islington (bot)
4fc042f28f
gh-97937: dis docs: add adaptive=False (GH-97939)
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit 5d8bf2b106
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-25 16:06:08 -07:00
Miss Islington (bot)
4cd5ea62ac
gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple example (GH-98605)
...
(cherry picked from commit be0cf82ae4
)
Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
2022-10-25 08:42:12 -07:00
Miss Islington (bot)
4b68e34a6c
gh-98623: Fix base classes in `typing.rst` (GH-98626)
...
(cherry picked from commit 5076108872
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 07:13:16 -07:00
Miss Islington (bot)
c96c7630c5
gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (GH-98631)
...
* Add two line breaks and ref target labels to remaining subsections
* Fix a few out of order Improved Modules
* Fix a few minor textual formatting issues in sections
* Fix remaining Sphinx warnings in the Improved Modules section
(cherry picked from commit dd13b23e49
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-25 06:29:53 -07:00
Pablo Galindo Salgado
b3cafb60af
[3.11] Fix v3.11.0 release merge problems (GH-98622)
...
When merging the v3.11.0 tag into 3.11, some files were incorrectly updated and some others were not properly deleted.
Automerge-Triggered-By: GH:pablogsal
2022-10-24 16:30:06 -07:00
Pablo Galindo
69b6b56d85
Python 3.11.0
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmNWzOwACgkQ/+h0BBaL
2EcepxAAmZLGMrL4D7Zxzo6N2ezkuiuoQH4JvxIUaB7cjU5h0GSUFlmcJQCHhCwk
AvToQrmH/7uuuEZKST1fomtUE83wudfHhX2t+CMBdbLG1hIwhTfLNMTqFhONturF
XlkVUcva1i9XrYZPLl1pIcBf1Sjm6pPW5QZ4BP1ZHJ5C2pHEzaBRFX/q0lU5aF9O
z5nBBpnga2gShUTqM1VkXucU4lKXsi4blbn/Z8giganMXY1SXIsEOoCaDZYN1Hh/
xQiOpSrjy/uSz4vGSNuPwp9J2lRlw8n4RBd/P7om01CrJMAKotH+62OqwhlQ8ydB
ywp0kygtPtMdSK7F1WKMWkYX4CXfLpYwN0+x3Z3iYFBFiuzOFrUCQYgqqfEPNq+o
bQxxnhAvYcOVINUub6oL23hgFZIoM6l54L66qujQVFM0usCY2f23Ikqd0Z7K8+6e
uDRAvGiCHkbbfhdnfXzc/Wgj4zLaPnNs8S2s8ojK32NPV8gyWVBumcsRvlocfl6K
hoA5wqeAXsOv+pFjkGtk90Yg+8R9n+n47//o6uYW/vvZtksm2wPm3hnuCA0WqPzN
IM7SJE5VrtSRqQpXT9j4G3zyHDNT/Qhrh+cyBM5kgoPSdbU0ugZN8P7GWVtsFhmK
rrHRns85gNZJ6qTN1pU22MybYCPIsg5Dt6+jZ8hJWIzOOy9apIk=
=Ryd2
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmNW55YACgkQ/+h0BBaL
2EfCLg//bMWtb/X3D+IM+9BIrpEscj/vw22zH9j8PIRd8iWfW80TNEIBh4uPEc0j
SDTkA5bqN6CB7xqIxDlWQcJpGiImVZ2LzOw8HHye1QCfVZk741CF78UhEnb+hTbO
gr7nIznytv+VdMSDRHTSgpnkRNQ9FjFEHLu7YQTMof5i/YmTxWZcsru6dTLlEutg
F3+PfxbKwPgJkfare91X62XSQwyTL6k0mvl5+Sdq2WEQdgMqv4I8V9dHbnk9K3VI
B+K2xsfIyWHrLDwQa3LBZj4YOKTwnwqlr1sEqO47NfasWaMYa1vBsktLVtPVQ3xS
Hz0lLhJXJLzf5hmf2r4Tw1S5spn5ijsZ7CwK2Zl+1+dbJMpRoK4VeSSYy/OfEpwy
8Hx1YitMyORF3HkGWa+pPYPNaIOw4S/EQQPYd5osg3NnknYjkkKZZaliq7EZra7c
GANPJamXhHREQyhux9KeiYZer3SU3CSXopyxm8ClcBZJAiAOjhAdeOk+Q4Ta9T6+
gRWBOrelroyFTWHsOd8V7gSz3XJNuAzlNZ/+1Oj/7Em+5DGLFcxJrZGLxn+hruZ5
GPK9IQXbURAuxqVrqCzw2tzf/NzJr0fs4QDYEVI95pfLjzk1tuJ5WR6zFNC0COK2
qw8TTvXglsvHqVMnK8u73GVSTv1UGYqbQH9uAeEikAQYr3TTdZo=
=dsZm
-----END PGP SIGNATURE-----
Merge tag 'v3.11.0' into 3.11
Python 3.11.0
2022-10-24 20:29:24 +01:00
Miss Islington (bot)
cdbfce121f
gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports subscripting" (GH-98508)
...
(cherry picked from commit e3b9dd8e87
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-24 11:16:58 -07:00
Miss Islington (bot)
032d1276ed
GH-91635: clarify docs about closing of transport in asyncio (GH-98563)
...
(cherry picked from commit 2fdcc6f2cb
)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 11:00:18 -07:00
Miss Islington (bot)
d9abd8a584
gh-98500: Fix typing docs for `*View` classes (GH-98511)
...
(cherry picked from commit 1a217f9ffc
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-24 10:55:11 -07:00
Miss Islington (bot)
3f6cfc5678
gh-95913: Fix grammar for SpooledTemporaryFile 3.11 whatsnew entry (GH-98604)
...
Followup from GH-98312.
(cherry picked from commit c5a9d3f67f
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-24 09:53:15 -07:00
Miss Islington (bot)
981b509784
GH-90985: Revert "Deprecate passing a message into cancel()" (GH-97999)
...
Reason: we were too hasty in deprecating this.
We shouldn't deprecate it before we have a replacement.
(cherry picked from commit 09de8d7aaf
)
Co-authored-by: Guido van Rossum <guido@python.org>
2022-10-24 17:09:41 +01:00
Miss Islington (bot)
f0083923fa
gh-90908: Document asyncio.Task.cancelling() and asyncio.Task.uncancel() (GH-95253)
...
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
(cherry picked from commit f00645d5db
)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-10-24 17:09:37 +01:00
Miss Islington (bot)
c184c6750e
gh-95913: Edit, link and sort 3.11 WhatsNew Build section (GH-98588)
...
(cherry picked from commit e81fad6b8a
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:46 +01:00
Miss Islington (bot)
cde4cf9de4
gh-95913: Edit, sort & expand 3.11 WhatsNew Porting section (GH-98585)
...
(cherry picked from commit 43bef54a32
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:45 +01:00
Miss Islington (bot)
7cdea80d3b
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
...
(cherry picked from commit 8dbec4dbe5
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:44 +01:00
Miss Islington (bot)
c2cb04ed9d
gh-95913 Add string section to Whatsnew with new Template methods (GH-98311)
...
(cherry picked from commit e2dc223004
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 16:45:43 +01:00
Miss Islington (bot)
c4ad3fce66
gh-95913: Add io support for SpooledTemporaryFile in 3.11 Whatsnew (GH-98312)
...
(cherry picked from commit f3f8b6fca5
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 06:13:46 -07:00
Miss Islington (bot)
3aed2ac002
gh-95913: Edit & expand Deprecated section of 3.11 WhatsNew (GH-98581)
...
* Refine Sphinx syntax and grammar/phrasing in Deprecated section items
* Organize into lang/builtins, modules & stdlib sections
* Convert PEP 594 module list into a grid to not waste as much space
* Add importlib.resources deprecated functions to section
(cherry picked from commit dfb5d272e6
)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-24 06:08:20 -07:00