Commit graph

116412 commits

Author SHA1 Message Date
Miss Islington (bot)
b3f0108eac
[3.11] GH-69695: Update `PyImport_ImportModule` description (GH-103836) (GH-114924)
GH-69695: Update ``PyImport_ImportModule`` description (GH-103836)

(cherry picked from commit 9872855a31)

Co-authored-by: patenaud <33957588+patenaud@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-02-05 10:53:50 +01:00
Miss Islington (bot)
7f1c5578bb
[3.11] Remove bogus syntax error marker in csv doc (GH-115017) (#115019)
(cherry picked from commit 39ec7fbba8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-05 04:18:02 +00:00
Travis Howse
5ce076fd92
[3.11] gh-114887 Reject only sockets of type SOCK_STREAM in create_da… (#114979)
Also improve exception message.

(cherry picked from commit 94ec2b9c9c)

Co-authored-by: Donghee Na <donghee.na92@gmail.com>
2024-02-04 20:01:37 -08:00
Alex Waygood
510eb4e6a8
[3.11] Bump ruff to 0.2.0 (#114932) (#115008) 2024-02-04 20:00:05 +00:00
Miss Islington (bot)
fef6c9bbde
[3.11] gh-113803: Fix inaccurate documentation for shutil.move when dst is an existing directory (GH-113837) (#115007)
* fix the usage of dst and destination in shutil.move doc
* update shutil.move doc
(cherry picked from commit da8f9fb2ea)

Co-authored-by: Dai Wentao <dwt136@gmail.com>
2024-02-04 19:02:10 +00:00
Serhiy Storchaka
0244e96d10
[3.11] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391) (GH-115002)
* Fix a RuntimeWarning emitted when assign an integer-like value that
  is not an instance of int to an attribute that corresponds to a C
  struct member of type T_UINT and T_ULONG.
* Fix a double RuntimeWarning emitted when assign a negative integer value
  to an attribute that corresponds to a C struct member of type T_UINT.
(cherry picked from commit 3ddc515255)
2024-02-04 17:54:26 +00:00
Miss Islington (bot)
f18341fa4e
[3.11] gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds "funcid" (GH-113955) (GH-114998)
Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and
Canvas widgets destroyed the current binding for "sequence", leaving
"sequence" unbound, and deleted the "funcid" command.

Now they remove only "funcid" from the binding for "sequence", keeping
other commands, and delete the "funcid" command.
They leave "sequence" unbound only if "funcid" was the last bound command.
(cherry picked from commit 7e42fddf60)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-04 16:47:03 +00:00
Miss Islington (bot)
f8cba751e2
[3.11] gh-113280: Always close socket if SSLSocket creation failed (GH-114659) (GH-114996)
(cherry picked from commit 0ea366240b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2024-02-04 16:16:57 +00:00
Miss Islington (bot)
55e5ae70b3
[3.11] gh-101100: Fix dangling references in pickle.rst (GH-114972) (#114992)
gh-101100: Fix dangling references in pickle.rst (GH-114972)
(cherry picked from commit ec69e1d0dd)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-04 14:32:42 +00:00
Hugo van Kemenade
2443ebd042
[3.11] gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (GH-114327) (#114989)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-04 04:53:52 -07:00
Stéphane Bidoul
364892f6bb
[3.11] gh-114965: Updated bundled pip to 24.0 (gh-114966) (gh-114973)
Updated bundled pip to 24.0.
(cherry picked from commit a4c298c149)
2024-02-03 19:38:23 +00:00
Miss Islington (bot)
34ab494c74
[3.11] gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729) (#114970)
gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729)
(cherry picked from commit ab76d37948)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-03 18:51:56 +00:00
Miss Islington (bot)
e846c88b37
[3.11] gh-114959: tarfile: do not ignore errors when extract a directory on top of a file (GH-114960) (GH-114964)
Also, add tests common to tarfile and zipfile.
(cherry picked from commit 96bce033c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-03 16:41:31 +00:00
Miss Islington (bot)
e9639e428a
[3.11] gh-114955: Add clear to MutableSequence's mixin methods in document (gh-114956) (#114962)
gh-114955: Add clear to MutableSequence's mixin methods in document (gh-114956)
(cherry picked from commit b4240fd68e)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2024-02-03 15:48:29 +00:00
Miss Islington (bot)
50b912715e
[3.11] Update LOGGING example taken from Django docs. (GH-114903) (#114952)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2024-02-03 08:23:21 -07:00
Miss Islington (bot)
1956f7b229
[3.11] Normalize heading underline in multiprocessing.rst (GH-114923) (#114947)
This gets rid of the mildly confusing `>>>>>>>' underlines which look vaguely like `diff` punctuation.
(cherry picked from commit 00d7109075)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-02-03 02:02:15 +00:00
Miss Islington (bot)
b833b00482
[3.11] gh-114913: Add newline to subprocess doc (GH-114941) (#114943)
*creationflags* is a separate topic from *startupinfo*.
Start sentence with 'If given', like previous sentence.
(cherry picked from commit 1183f1e6bf)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-02 23:22:03 +00:00
Miss Islington (bot)
4e1360ae50
[3.11] Correct timedelta description (GH-101417) (GH-114939)
It only represents the difference between two datetime or
date objects, not between two time objects.
(cherry picked from commit 73d20cafb5)

Co-authored-by: John Belmonte <john@neggie.net>
2024-02-02 21:49:04 +00:00
Miss Islington (bot)
9bc79da844
[3.11] Fix indentation of "versionchanged" in datetime.rst (GH-114933) (GH-114936)
(cherry picked from commit b27812d632)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-02 23:18:25 +02:00
Miss Islington (bot)
df5381d8b6
[3.11] gh-103360: Add link in stdtypes.rst to escape sequences in lexical_analysis.rst (GH-103638) (#114908)
(cherry picked from commit d29f57f603)

Co-authored-by: Justin Williams <97240811+juswil@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-02-02 21:06:35 +00:00
Miss Islington (bot)
08133e4b58
[3.11] gh-114728: Fix documentation for comparison of objects in datetime module (GH-114749) (GH-114929)
(cherry picked from commit c12240ed28)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-02 18:59:28 +00:00
Miss Islington (bot)
e995c585e7
[3.11] gh-103820: IDLE: Do not interpret buttons 4/5 as scrolling on non-X11 (GH-103821) (GH-114902)
Also fix test_mousewheel: do not skip a check which was broken due to incorrect
delta on Aqua and XQuartz, and probably not because of `.update_idletasks()`.
(cherry picked from commit d25d4ee60c)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
2024-02-02 15:13:00 +02:00
Miss Islington (bot)
1eb791ce4f
[3.11] Move "format" param doc of shutil.make_archive() on its own paragraph (GH-103829) (GH-114898)
(cherry picked from commit 53339a0ef7)

Co-authored-by: Michal Kaptur <kaptur.michal@gmail.com>
2024-02-02 12:28:15 +02:00
Miss Islington (bot)
3c30de1172
[3.11] gh-89891: Refer SharedMemory implementation as POSIX (GH-104678) (GH-114874)
It only uses POSIX API.
(cherry picked from commit 500ede0117)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2024-02-01 22:35:29 +02:00
Miss Islington (bot)
95f18f9738
[3.11] gh-101100: Fix sphinx warnings in howto/logging.rst (GH-114846) (#114872)
gh-101100: Fix sphinx warnings in `howto/logging.rst` (GH-114846)

(cherry picked from commit dc01b919c7)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-01 18:45:02 +00:00
Miss Islington (bot)
a46fddfed3
[3.11] Correct description of inheriting from another class (GH-114660) (#114869)
"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:12 +00:00
Miss Islington (bot)
3acab9a676
[3.11] gh-105031: Clarify datetime documentation for ISO8601 (GH-105049) (GH-114867)
(cherry picked from commit e9dab65638)

Co-authored-by: Nicholas Hollander <31573882+nhhollander@users.noreply.github.com>
2024-02-01 19:33:55 +02:00
Miss Islington (bot)
e3458aa431
[3.11] gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228) (GH-114861)
(cherry picked from commit 4dbb198d27)

Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
2024-02-01 12:25:08 +00:00
Miss Islington (bot)
9979635612
[3.11] gh-107461 ctypes: Add a testcase for nested _as_parameter_ lookup (GH-107462) (GH-114859)
(cherry picked from commit 0bf42dae7e)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2024-02-01 12:08:52 +00:00
Miss Islington (bot)
8d2a193cf6
[3.11] Fix typos in ElementTree documentation (GH-108848) (GH-114855)
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:40:46 +00:00
Miss Islington (bot)
a9c2801d49
[3.11] gh-114648: Add IndexError exception to tutorial datastructures list.pop entry (GH-114681) (#114842)
Remove redundant explanation of optional argument.
(cherry picked from commit 57c3e775df)

Co-authored-by: srinivasan <shivnaren@gmail.com>
2024-02-01 03:53:15 +00:00
Miss Islington (bot)
cba5cee035
[3.11] CI: Test on macOS M1 (GH-114766) (#114835)
Test on macOS M1
(cherry picked from commit 854e2bc423)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-01 01:55:45 +00:00
Miss Islington (bot)
ef2ba9a007
[3.11] gh-109534: fix reference leak when SSL handshake fails (GH-114074) (#114830)
gh-109534: fix reference leak when SSL handshake fails (GH-114074)
(cherry picked from commit 80aa7b3688)

Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
2024-02-01 00:59:17 +00:00
Miss Islington (bot)
fe0f544f33
[3.11] gh-111112: Avoid potential confusion in TCP server example. (GH-111113) (#114832)
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:58 +00:00
Miss Islington (bot)
e66ad91f68
[3.11] Add note to sys.orig_argv clarifying the difference from sys.argv (GH-114630) (#114822)
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:20 +00:00
Miss Islington (bot)
8e323cb68b
[3.11] gh-114790: Do not execute workflows/require-pr-label.yml on forks (GH-114791) (#114801)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-31 12:32:50 +00:00
Miss Islington (bot)
3982049a30
[3.11] gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755) (GH-114799)
Prior to gh-114269, the iterator returned by ElementTree.iterparse was
initialized with the root attribute as None. This restores the previous
behavior.
(cherry picked from commit 66f95ea6a6)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-01-31 12:03:08 +00:00
Miss Islington (bot)
ad6233396a
[3.11] gh-101100: Fix class reference in library/test.rst (GH-114769) (GH-114793)
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:00 +00:00
Skip Montanaro
a38bc7cad6
[3.11] gh-101100: Fix references in csv docs (GH-114658) (GH-114773)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 3911b42cc0)
2024-01-31 09:32:12 +00:00
Miss Islington (bot)
48632d22d6
[3.11] Docs: mark up dbm.gnu.open() and dbm.ndbm.open() using param list (GH-114762) (#114784)
(cherry picked from commit c8cf5d7d14)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-31 07:05:58 +00:00
Miss Islington (bot)
d326d52478
gh-110190: Fix ctypes structs with array on Windows ARM64 (GH-114753)
(cherry picked from commit a06b606462)

Co-authored-by: Diego Russo <diego.russo@arm.com>
2024-01-31 00:08:26 +00:00
Miss Islington (bot)
f1f0f2e3d7
[3.11] Clarify one-item tuple (GH-114745) (#114758)
A 'single tuple' means 'one tuple, of whatever length.
Remove the unneeded and slightly distracting parenthetical 'singleton' comment.
(cherry picked from commit a1332a99cf)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2024-01-30 18:50:32 +00:00
Miss Islington (bot)
679fe04dc3
[3.11] Set hosted_on for Read the Docs builds (GH-114697) (#114735)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-29 21:30:27 +00:00
Serhiy Storchaka
3dd3b301b6
[3.11] Fix more references to datetime and time classes (GH-114717) (GH-114726)
They could be confused with references to datetime and time modules.
(cherry picked from commit 39c766b579)
2024-01-29 16:59:59 +00:00
Miss Islington (bot)
55bddca133
[3.11] Remove limit in calendar CLI help message for year arg (GH-114719) (GH-114723)
The limit was removed in 66c88ce30c (GH-4109).
(cherry picked from commit 0f54ee4c6c)

Co-authored-by: Steven Ward <planet36@users.noreply.github.com>
2024-01-29 16:41:45 +00:00
Serhiy Storchaka
c67f94e385
[3.11] gh-101100: Fix datetime reference warnings (GH-114661) (GH-114718)
(cherry picked from commit e8b8f5e9c2)

Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2024-01-29 15:20:05 +00:00
Miss Islington (bot)
07d68ea843
[3.11] gh-89159: Add some TarFile attribute types (GH-114520) (GH-114715)
(cherry picked from commit d7d0d13cd3)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2024-01-29 14:25:52 +00:00
Miss Islington (bot)
ca9a7fc24f
[3.11] gh-101100: Fix Sphinx warnings in whatsnew/2.2.rst (GH-112366) (#114712)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2024-01-29 13:18:59 +00:00
Miss Islington (bot)
ee3ca96359
[3.11] gh-114685: Fix incorrect use of PyBUF_READ in import.c (GH-114686) (GH-114701)
(cherry picked from commit 1ac1b2f953)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-29 10:03:14 +00:00
Miss Islington (bot)
9fd8aaab83
[3.11] gh-101100: Fix sphinx warnings in Doc/c-api/memoryview.rst (GH-114669) (GH-114705)
(cherry picked from commit 97fb2480e4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-01-29 10:02:52 +00:00