Commit graph

12741 commits

Author SHA1 Message Date
Miss Islington (bot)
1bb64e52ea
[3.12] Correct description of inheriting from another class (GH-114660) (#114868)
"inherits <someclass>" grates to this reader. I think it should be "inherits from <someclass>".
(cherry picked from commit c9c6e04380)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-02-01 18:15:11 +00:00
Miss Islington (bot)
a8a1df05f7
[3.12] gh-105031: Clarify datetime documentation for ISO8601 (GH-105049) (GH-114866)
(cherry picked from commit e9dab65638)

Co-authored-by: Nicholas Hollander <31573882+nhhollander@users.noreply.github.com>
2024-02-01 19:34:08 +02:00
Miss Islington (bot)
600724d442
[3.12] Fix typos in ElementTree documentation (GH-108848) (GH-114854)
PI objects instead of comment objects.
(cherry picked from commit de6f97cd35)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2024-02-01 09:41:01 +00:00
Miss Islington (bot)
c26decab6f
[3.12] gh-67230: Add versionadded notes for QUOTE_NOTNULL and QUOTE_STRINGS (GH-114816) (#114840)
As @GPHemsley pointed out, GH-29469 omitted `versionadded` notes for the 2 new items.
(cherry picked from commit 586057e9f8)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-02-01 03:17:56 +00:00
Miss Islington (bot)
3017c27d35
[3.12] gh-114811: Change '\*' to '*' in warnings.rst (GH-114819) (#114837)
Regression in 3.12.
(cherry picked from commit ff8939e5ab)

Co-authored-by: Pradyot Ranjan <99216956+prady0t@users.noreply.github.com>
2024-02-01 01:54:25 +00:00
Miss Islington (bot)
21b68a1198
[3.12] gh-111112: Avoid potential confusion in TCP server example. (GH-111113) (#114831)
gh-111112: Avoid potential confusion in TCP server example. (GH-111113)

Improve misleading TCP server docs and example.

socket.recv(), as documented by the Python reference documentation,
returns at most `bufsize` bytes, and the underlying TCP protocol means
there is no guaranteed correspondence between what is sent by the client
and what is received by the server.

This conflation could mislead readers into thinking that TCP is
datagram-based or has similar semantics, which will likely appear to
work for simple cases, but introduce difficult to reproduce bugs.
(cherry picked from commit a79a27242f)

Co-authored-by: Aidan Holm <alfh@google.com>
2024-02-01 00:50:34 +00:00
Miss Islington (bot)
c8e4c32105
[3.12] Add note to sys.orig_argv clarifying the difference from sys.argv (GH-114630) (#114821)
Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630)
(cherry picked from commit 1836f674c0)

Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-01-31 21:40:11 +00:00
Miss Islington (bot)
0536bbb192
[3.12] gh-101100: Fix class reference in library/test.rst (GH-114769) (GH-114794)
The text clearly seems to be referencing `TestFuncAcceptsSequencesMixin`,
for which no target is available. Name the class properly and suppress
the dangling reference.
(cherry picked from commit 7a93db4425)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-01-31 09:41:10 +00:00
Skip Montanaro
bb578f6286
[3.12] gh-101100: Fix references in csv docs (GH-114658) (GH-114771)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 3911b42cc0)
2024-01-31 09:32:25 +00:00
Miss Islington (bot)
fe5094c65f
[3.12] Docs: mark up dbm.gnu.open() and dbm.ndbm.open() using param list (GH-114762) (#114783)
(cherry picked from commit c8cf5d7d14)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-31 07:06:13 +00:00
Serhiy Storchaka
eed05e271c
[3.12] Fix more references to datetime and time classes (GH-114717) (GH-114725)
They could be confused with references to datetime and time modules.
(cherry picked from commit 39c766b579)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-29 17:01:24 +00:00
Miss Islington (bot)
783339a086
[3.12] gh-101100: Fix datetime reference warnings (GH-114661) (GH-114716)
(cherry picked from commit e8b8f5e9c2)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-29 17:12:03 +02:00
Miss Islington (bot)
0795d9a17a
[3.12] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114714)
(cherry picked from commit d7d0d13cd3)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2024-01-29 14:25:46 +00:00
Miss Islington (bot)
d14003adf2
[3.12] gh-110893: Improve the documentation for __future__ module (GH-114642) (#114702)
gh-110893: Improve the documentation for __future__ module (GH-114642)

nedbat took issue with the phrasing "real module". I'm actually fine
with that phrasing, but I do think the `__future__` page should be clear
about the way in which the `__future__` module is special. (Yes, there
was a footnote linking to the future statements part of the reference,
but there should be upfront discussion).

I'm sympathetic to nedbat's claim that no one really cares about
`__future__._Feature`, so I've moved the interesting table up to the
top.
(cherry picked from commit 3b86891fd6)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2024-01-29 09:46:48 +00:00
Miss Islington (bot)
c59452919b
[3.12] Correct Skip Montanaro's email address (GH-114677) (#114679)
Correct Skip Montanaro's email address (GH-114677)
(cherry picked from commit 5ecfd750b4)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-01-28 14:59:06 +00:00
Miss Islington (bot)
84223a0e0a
[3.12] gh-101100: Fix sphinx warnings in library/email.mime.rst (GH-114635) (GH-114640)
(cherry picked from commit 6a8944acb6)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-27 08:53:34 +00:00
Miss Islington (bot)
bf35ac1d4c
[3.12] Docs: rework the dbm.dumb introduction (GH-114550) (#114620)
(cherry picked from commit 6c2b419fb9)

- consistently use correct parameter markup
- consistently use submodule name as database name
- improve accuracy of the dbm.dumb.open() spec
- remove dumbdbm class refs and replace them with generic "database object"
- use parameter list for dbm.dumb.open()
(cherry picked from commit 6c2b419fb9)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-26 18:19:20 +00:00
Miss Islington (bot)
61f8f58f81
[3.12] Docs: mark up dbm.open() with param list (GH-114601) (#114604)
Also consolidate following paragraphs regarding database objects.

(cherry picked from commit 0bd8297a22)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-26 15:18:10 +00:00
Erlend E. Aasland
9726cabfb6
[3.12] Docs: reword dbm.ndbm introduction (#114549) (#114599)
(cherry picked from commit 4cf068ed08)

- add abbreviation directives for NDBM and GDBM
- consistently spell NDBM as NDBM
- silence broken ndbm class refs
- improve accuracy of dbm.ndbm.open() spec
- use replacement text for NDBM/GDBM file format incompatibility note
2024-01-26 13:56:39 +01:00
Miss Islington (bot)
4545845d7a
[3.12] Docs: fix versionchanged directives for dbm.open() and dbm.whichdb() (GH-114594) (#114595)
(cherry picked from commit 8710faeac2)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-26 12:42:31 +00:00
Miss Islington (bot)
3604117242
[3.12] Docs: rework dbm introduction (GH-114551) (#114590)
- add refs to other parts of the docs (dict, bytes, etc.)
- clarify whichdb() return value by using list markup
- silence refs to example or generic submodule methods (keys, get, etc.)

(cherry picked from commit 65cf5dce11)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-26 10:23:55 +00:00
Erlend E. Aasland
f416af903f
[3.12] Docs: reword dbm.gnu introduction (#114548) (#114588)
(cherry picked from commit 06c5de36f2)

Also...
- consistently spell GDBM as GDBM
- silence gdbm class refs
- improve accuracy of dbm.gdbm.open() spec
2024-01-26 10:13:35 +00:00
Miss Islington (bot)
e122081432
[3.12] gh-108731: Add description of __slots__ to MemberDescriptorType docs (GH-108745) (GH-114536)
(cherry picked from commit 6888cccac0)

Co-authored-by: plokmijnuhby <39633434+plokmijnuhby@users.noreply.github.com>
2024-01-24 20:05:24 +00:00
Miss Islington (bot)
66b7ae6f35
[3.12] Docs: mark up the FTP_TLS() docs with param list (GH-114510) (#114532)
Also turn sentence about prot_p() into a note.

(cherry picked from commit 6fadd68da5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-24 17:28:34 +01:00
Miss Islington (bot)
26f8a30de6
[3.12] gh-104360: remove reference to removed module-level wrap_socket (GH-104361) (GH-114528)
* remove reference to removed module-level wrap_socket
* drive by typo fix
(cherry picked from commit 127a497852)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2024-01-24 14:31:34 +00:00
Hugo van Kemenade
085e5d765a
[3.12] gh-101100: Fix sphinx warnings in concurrent.futures.rst (GH-114521) (#114525)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-24 13:44:22 +00:00
Hugo van Kemenade
0c42897f8d
[3.12] gh-101100: Fix sphinx warnings in asyncio-task.rst (GH-114469) (#114519)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-24 00:40:22 -07:00
Miss Islington (bot)
2692f5b6d2
[3.12] Fix a typo in the contextlib documentation (GH-114507) (#114514) 2024-01-24 04:22:37 +00:00
Miss Islington (bot)
a73a6a3c69
[3.12] Docs: use placeholders in dbm flag param docs (GH-114482) (#114497)
Also correct the default flag param for dbm.dumb.open();
it's 'c', not 'r'.
(cherry picked from commit 8c265408c5)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-23 21:05:21 +01:00
Miss Islington (bot)
d492b19856
[3.12] Docs: mark up FTP.connect() and FTP.login() with param lists (GH-114395) (#114485)
Use rst substitutions to reduce raw text duplication.

(cherry picked from commit 01105c7c4f)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-23 14:04:01 +00:00
Miss Islington (bot)
e18ceb7564
[3.12] Docs: mark up FTP.retrbinary and FTP.storbinary with param lists (GH-114399) (#114483)
(cherry picked from commit 5277d4c7db)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2024-01-23 14:00:27 +00:00
Miss Islington (bot)
1b9abe4acc
[3.12] gh-101100: Fix sphinx warnings in Doc/library/locale.rst (GH-114425) (#114477)
gh-101100: Fix sphinx warnings in `Doc/library/locale.rst` (GH-114425)

* gh-101100: Fix sphinx warnings in `Doc/library/locale.rst`

* Remove `/` from signatures
(cherry picked from commit 7d21cae964)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-23 13:23:31 +02:00
Erlend E. Aasland
3efcf6673e
[3.12] Docs: align usage of versionadded/versionchanged with recommended practice (#114409) (#114472)
(cherry picked from commit 1d7bddd961)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2024-01-23 10:39:57 +01:00
Miss Islington (bot)
ccd8d77112
[3.12] GH-105900: Fix pathlib.Path.symlink_to(target_is_directory=...) docs (GH-114035) (#114464)
Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85ac1)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
2024-01-23 05:36:16 +00:00
Miss Islington (bot)
9c2db5725e
[3.12] GH-82695: Clarify pathlib.Path.mkdir() documentation (GH-114032) (#114462)
Remove a double negative in the documentation of `mkdir()`'s *exist_ok*
parameter.

(cherry picked from commit 32c227470a)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-01-23 02:37:35 +00:00
Miss Islington (bot)
a199ab3f33
[3.12] GH-99334: Explain that PurePath.is_relative_to() is purely lexical. (GH-114031) (#114460)
(cherry picked from commit 3a61d24062)
2024-01-23 01:12:59 +00:00
Miss Islington (bot)
536b66f8fa
[3.12] gh-66944: Note that the contextlib.closing example is for illustrative purposes (GH-112198) (#114458) 2024-01-23 01:07:34 +00:00
Miss Islington (bot)
d705582f73
[3.12] Docs: Fix typo in code snippet (GH-114421) (GH-114434)
(cherry picked from commit 6d30cbee01)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-01-22 16:03:22 +00:00
Serhiy Storchaka
7da1750225
[3.12] gh-114115: Update documentation of array.array (GH-114117) (GH-114417)
(cherry picked from commit 650f9e4c94)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-22 09:37:16 +00:00
Miss Islington (bot)
33c1907de2
[3.12] gh-114328: tty cbreak mode should not alter ICRNL (GH-114335) (#114410)
The terminal CR -> NL mapping setting should be inherited in cbreak mode as OSes do not specify altering it as part of their stty cbreak mode definition.
(cherry picked from commit fd49e22670)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-01-21 23:41:03 +00:00
Erlend E. Aasland
5183a5dee5
[3.12] Docs: align sqlite3 docs with versionadded/versionchanged recommendations (#114400) (#114402)
(cherry picked from commit 336030161a)

When a parameter is added to a function or method, use the 'versionchanged'
directive, not 'versionadded'.
2024-01-21 20:04:01 +00:00
Miss Islington (bot)
1138fb545f
[3.12] Docs: link to sys.stdout in ftplib docs (GH-114396) (#114397)
(cherry picked from commit de17cf444a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-21 17:47:55 +00:00
Miss Islington (bot)
afefa4a74c
[3.12] gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect implementation (GH-114385) (#114386)
(cherry picked from commit 38768e4cdd)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-21 13:22:57 +00:00
Miss Islington (bot)
24fa45b59f
[3.12] Docs: mark up FTP() constructor with param list (GH-114359) (#114382)
(cherry picked from commit 96c15b1c8d)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-21 11:33:23 +00:00
Miss Islington (bot)
5dc4857661
[3.12] Docs: mark up the FTP debug levels as a list (GH-114360) (#114375)
(cherry picked from commit fbc28748ea)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-21 11:26:34 +01:00
Miss Islington (bot)
48bff74590
[3.12] Docs: Add missing line continuation to FTP_TLS class docs (GH-114352) (#114353)
Docs: Add missing line continuation to FTP_TLS class docs (GH-114352)

Regression introduced by b1ad5a5d4.
(cherry picked from commit 8f4f773647)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-20 21:21:00 +01:00
Miss Islington (bot)
a4eb0720f1
[3.12] Docs: structure the ftplib reference (GH-114317) (#114347)
Docs: structure the ftplib reference (GH-114317)

Introduce the following headings and subheadings:

- Reference
  * FTP objects
  * FTP_TLS objects
  * Module variables
(cherry picked from commit b1ad5a5d44)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-20 19:16:53 +00:00
Miss Islington (bot)
7a56df1266
[3.12] gh-114332: Fix the flags reference for `re.compile()` (GH-114334) (#114339)
gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334)

The GH-93000 change set inadvertently caused a sentence in re.compile()
documentation to refer to details that no longer followed. Correct this
with a link to the Flags sub-subsection.

(cherry picked from commit 567a85e9c1)

Co-authored-by: David H. Gutteridge <dhgutteridge@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-01-20 11:23:37 +00:00
Miss Islington (bot)
a76d0104d7
[3.12] gh-108303: Move all doctest related files and tests to Lib/test/test_doctest/ (GH-112109) (#114254)
gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109)
(cherry picked from commit 9c93350f58)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Brett Cannon <brett@python.org>
2024-01-18 16:25:04 +00:00
Miss Islington (bot)
55b73a5c78
[3.12] gh-114231: Fix indentation in enum.rst (GH-114232) (#114234)
Co-authored-by: Miyashita Yosuke <44266492+miyashiiii@users.noreply.github.com>
2024-01-18 09:29:34 +00:00