Commit graph

108425 commits

Author SHA1 Message Date
Miss Islington (bot)
8d47f92d46
[doc] Be more clear on super() regarding multiple base classes methods (GH-21789) (GH-25706)
(cherry picked from commit 69a733bda3)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-28 18:13:12 -07:00
Miss Islington (bot)
c4e503ed80
[doc] Do some polishing in IDEs section (GH-22070) (GH-25703)
(cherry picked from commit 08a4803863)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-28 18:09:03 -07:00
Miss Islington (bot)
0252ce3571
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506) (GH-25508)
(cherry picked from commit 7b86e47617)

Co-authored-by: Steve Dower <steve.dower@python.org>

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-28 18:20:40 +02:00
Miss Islington (bot)
629ef0fb9c
bpo-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684) (GH-25688)
Fix test_logging.test_namer_rotator_inheritance() on Windows: use
os.replace() rather than os.rename().
(cherry picked from commit fe52eb6219)

Co-authored-by: Victor Stinner <vstinner@python.org>

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-04-28 17:28:15 +02:00
Irit Katriel
2dc6b1789e
bpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691) 2021-04-28 17:21:11 +02:00
Miss Islington (bot)
fdb11897d7
bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) (GH-25689)
(cherry picked from commit 4c49be7668)
2021-04-28 17:11:15 +02:00
Miss Islington (bot)
cf9d65c5af
bpo-37751: Update codecs.register() doc. (GH-25643)
(cherry picked from commit 5c84bb506a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-04-28 11:26:11 +09:00
Erlend Egeberg Aasland
5cadcec5ec
[3.9] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)
(cherry picked from commit bf0c7c0147)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-04-27 20:57:05 +01:00
Miss Islington (bot)
c9767e564b
Fix generated file name for installer builds on macOS 11+. (GH-25661) (GH-25664)
(cherry picked from commit 8a37463989)

Co-authored-by: Ned Deily <nad@python.org>
2021-04-27 14:20:41 -04:00
Miss Islington (bot)
bf0736db45
[3.9] bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640) (GH-25662)
(cherry picked from commit ce82781644)


Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

Automerge-Triggered-By: GH:ned-deily
2021-04-27 10:42:15 -07:00
Miss Islington (bot)
531c81038e
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (GH-23096) (GH-25659)
(cherry picked from commit 32980fb669)

Co-authored-by: Hai Shi <shihai1992@gmail.com>

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-04-27 16:25:19 +02:00
Miss Islington (bot)
4a3d73d8ad
[doc] Remove duplicated operator.itemgetter example (GH-24178) (#25646)
* Remove duplicated itemgetter example
* Add spaces
(cherry picked from commit 743e2bae10)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-26 21:16:40 -07:00
Miss Islington (bot)
c816c1c779
Use the zero argument form of super() in examples for Python3 docs. (GH-22314) (GH-25638)
(cherry picked from commit 52cd6d5e1b)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-26 15:16:20 -07:00
Miss Islington (bot)
f65f3f0e99
bpo-40432: Use python 3.8 or higher to compile CPython on Windows (GH-25389) (#25637)
(cherry picked from commit 425434dadc)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-04-26 21:54:25 +02:00
Ma Lin
ba7338a460
Fix thread locks in zlib module may go wrong in rare case (#22130)
Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
2021-04-26 21:50:33 +02:00
Miss Islington (bot)
d0698c676c
bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24211)
Before, using the * operator to repeat a bytearray would copy data from the start of
the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
(cherry picked from commit 61d8c54f43)

Co-authored-by: Tobias Holl <TobiasHoll@users.noreply.github.com>
2021-04-26 21:39:51 +02:00
Miss Islington (bot)
c9c1dbd253
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25635)
(cherry picked from commit 8a307e488d)

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>

Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
2021-04-26 15:36:23 -04:00
Miss Islington (bot)
3b917d1774
[3.9] bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624) (GH-25626)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3c586ca500)


Co-authored-by: Christian Heimes <christian@python.org>

Automerge-Triggered-By: GH:tiran
2021-04-26 08:12:37 -07:00
Miss Islington (bot)
b348580da6
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
The check about the f argument type was removed in this commit:
2c94aa567e

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2021-04-26 07:24:17 -07:00
Miss Islington (bot)
d7a1a815d9
Update asyncio-subprocess.rst (GH-21680) (GH-25621)
(cherry picked from commit 3c4850e222)

Co-authored-by: Gabriel R F <github@gabrf.com>
2021-04-25 21:47:05 -07:00
Senthil Kumaran
debb23fae6
[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)
(cherry picked from commit b6daab2f67)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
2021-04-25 21:30:32 -07:00
Miss Islington (bot)
4cb98169b3
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
(cherry picked from commit 7be870f945)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
2021-04-25 21:06:55 -07:00
Miss Islington (bot)
a3c6752f71
Quick pydoc update to smtplib.py (GH-22292) (GH-25615)
Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
(cherry picked from commit b3dec6f9ed)

Co-authored-by: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com>
2021-04-25 21:03:54 -07:00
Miss Islington (bot)
b47f05157b
bpo-43534: Fix the turtle module working with multiple root windows GH-25593
(cherry picked from commit 8af929fc76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-04-25 18:54:41 -07:00
Miss Islington (bot)
2b475dc1ff
Fix broken links and improve stand-alone tools list in FAQ GH-25609
(cherry picked from commit d28b346953)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:43:43 -07:00
Miss Islington (bot)
7349c12452
Fix id of 'Internet Message Format' RFC in email doc GH-25613
Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322).

(The typo probably comes from commit 29d1bc0842 in which the ID of
this RFC got updated from the obsolete 2822.)

Co-authored-by: Ambrose Chua <ambrose@hey.com>
(cherry picked from commit cb5c802dcf)
Co-authored-by: Denis Laxalde <denis@laxalde.org>
2021-04-25 18:42:56 -07:00
Miss Islington (bot)
b861ed1006
Fix copy.Error casing in documentation GH-22004 (#25611)
(cherry picked from commit 0d930f108c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-04-25 18:39:24 -07:00
Miss Islington (bot)
9b2c5b20a5
Remove mention of dst parameter from description of os.lstat() (GH-24704)
It looks like it was accidentally copy-pasted in
6fa7aada9b.
(cherry picked from commit 7f8e072c6d)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2021-04-25 14:47:54 -07:00
Miss Islington (bot)
ab99b6a8ba
Fix a typo in datamodel reference document (GH-24930)
(cherry picked from commit a1a5e3c4c8)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
2021-04-25 14:36:57 -07:00
Senthil Kumaran
d2e2534751
[3.9] fix typo in warning (GH-20620) (#25601)
* Add space after period to warning in _tzpath.py

Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...

* Update _tzpath.py
(cherry picked from commit a31cf86bc2)

Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
2021-04-25 12:25:51 -07:00
Miss Islington (bot)
2825f906c7
BaseHTTPRequestHandler, that path includes query (GH-25597)
* Clarify, for BaseHTTPRequestHandler, that path includes query

Co-authored-by: David Jones <drj@pobox.com>
(cherry picked from commit a89d8a94a0)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
2021-04-25 10:30:15 -07:00
Miss Islington (bot)
2178afffc0
Improve CDN purge script (GH-25251) (#25254)
(cherry picked from commit e35dd556e1)

Co-authored-by: Steve Dower <steve.dower@python.org>

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-25 08:19:32 -07:00
Serhiy Storchaka
9a165399ae
[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (GH-25187). (GH-25588)
(cherry picked from commit 3bb3fb3be0)
2021-04-25 13:49:31 +03:00
Miss Islington (bot)
7248ce30bb
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)
(cherry picked from commit b5adc8a7e5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-04-25 03:44:30 -07:00
Stéphane Bidoul
d962b00fcf
[3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578)
(cherry picked from commit 196983563d)
2021-04-24 23:27:44 +01:00
Miss Islington (bot)
52e9031fbd
bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500)
The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version.
Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part).
sys.getwindowsversion() is not updated to avoid launching executables from that module.
(cherry picked from commit 2a3f4899c6)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
2021-04-23 19:09:20 +01:00
Miss Islington (bot)
04bcfe001c
bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)
(cherry picked from commit 3513d55a61)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-23 10:28:05 -07:00
Christian Heimes
e259a77f21
[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25555)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b9ad88be03)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-23 14:23:35 +02:00
Jason R. Coombs
d4fff1f580
bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)
Use a versionadded directive to generate the text "New in version
3.8." (to match with the documentation of other modules).

Automerge-Triggered-By: GH:jaraco.
(cherry picked from commit adf24bd835)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-23 15:46:16 +09:00
Miss Islington (bot)
987b65e956
Reformat idlelib colorizer (GH-25479)
Also replace if-then and and-or with conditional expressions.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 702a0885ba)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-04-22 23:32:33 -04:00
Miss Islington (bot)
8db72cd342
Add more tests. Fix code excerpt. (GH-25549) (GH-25550) 2021-04-22 20:26:56 -07:00
Miss Islington (bot)
34be48450f
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Reported by Yahor Harunovich.
(cherry picked from commit 14092b5a4a)
2021-04-22 18:16:16 -07:00
Miss Islington (bot)
bc5a1a7adf
bpo-39572: Address typo in CHANGELOG. (GH-24999)
(cherry picked from commit 6afb0a8078)

Co-authored-by: Simon Charette <charette.s@gmail.com>
2021-04-22 17:58:42 -07:00
Miss Islington (bot)
28575923a9
bpo-38822: Check specifically for a drive, not just a colon (GH-25540)
(cherry picked from commit e07d809889)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-23 00:56:45 +01:00
Miss Islington (bot)
ab5d78ce41
bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)
(cherry picked from commit 4696f1285d)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-22 13:30:29 -07:00
Miss Islington (bot)
8e7cebb497
bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)
It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a401a9)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-22 13:09:56 -07:00
Miss Islington (bot)
87a392db40
bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608)
(cherry picked from commit 660592f67c)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2021-04-21 21:32:40 -07:00
Miss Islington (bot)
d8576b1d15
bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510)
(cherry picked from commit dc516ef839)

Co-authored-by: Steve Dower <steve.dower@python.org>
2021-04-21 16:43:40 -07:00
Miss Islington (bot)
fa03efda3d
Improve the error message for choices(population, 10) (GH-25267) (GH-25477) 2021-04-19 23:15:50 -07:00
Miss Islington (bot)
072ec69af5
bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472) 2021-04-19 08:56:38 -07:00