Commit graph

108444 commits

Author SHA1 Message Date
Steve Dower
bb2f3ff7a8
bpo-42800: Add audit events for f_code and tb_frame (GH-24182)
Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name):
* PyTracebackObject: tb_frame
* PyFrameObject: f_code
* PyGenObject: gi_code, gi_frame
* PyCoroObject: cr_code, cr_frame
* PyAsyncGenObject: ag_code, ag_frame
2021-05-03 14:06:36 +01:00
Miss Islington (bot)
1536342c44
[3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)
(cherry picked from commit 440c025726)


Co-authored-by: Julien Palard <julien@palard.fr>

Automerge-Triggered-By: GH:JulienPalard
2021-05-03 05:43:04 -07:00
Ned Deily
7f7dc67354
[3.9] Update macOS installer readme for 3.9.5 (GH-25836) 2021-05-03 01:49:27 -04:00
Miss Islington (bot)
98035ec93f
bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785) (GH-25830)
Narrow search to match contents of SDKs, namely only files in ``/System/Library``,
``/System/IOSSupport``, and ``/usr`` other than ``/usr/local``. Previously,
anything under ``/System`` was assumed to be in an SDK which causes problems
with the new file system layout in 10.15+ where user file systems may appear
to be mounted under ``/System``.  Paths in ``/Library`` were also
incorrectly treated as SDK locations.

Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit d52bbde942)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2021-05-02 23:38:49 -04:00
Erlend Egeberg Aasland
ad73d1657c
bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ (GH-25818) 2021-05-02 23:43:06 +01:00
Miss Islington (bot)
e60b1e150d
bpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805) (GH-25819) 2021-05-02 13:14:30 -07:00
Miss Islington (bot)
5374fbc314
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099) (GH-25815)
Reverts commit e653d4d8e8 and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <christian@python.org>

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 60ce8f0be6)
2021-05-02 15:49:03 +02:00
Miss Islington (bot)
cf6a79644c
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) (#25812)
Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 73766b0341)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-05-02 13:03:10 +02:00
Miss Islington (bot)
bb3ec9ceae
bpo-41100: Update Misc/ACKS (GH-25808) (GH-25809)
(cherry picked from commit 518f8b5dd5)

Co-authored-by: Ned Deily <nad@python.org>
2021-05-02 05:25:38 -04:00
Miss Islington (bot)
de0e3f8c16
[3.9] bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25804) (GH-25807)
This allows reliably forcing macOS universal2 framework builds
to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs
if needed for testing or when universal2 wheels are not yet
available.
(cherry picked from commit 0cb33da1cc)


Co-authored-by: Ned Deily <nad@python.org>

Automerge-Triggered-By: GH:ned-deily
2021-05-02 02:10:21 -07:00
Miss Islington (bot)
ee0df3dee4
Fix broken name in build.yml (GH-25759) (GH-25802)
(cherry picked from commit 29282b2825)
2021-05-01 19:56:56 -07:00
Miss Islington (bot)
10a62bbecc
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
(cherry picked from commit 779232413a)

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
2021-05-01 16:56:05 -04:00
Miss Islington (bot)
5c018db467
Fixing doc for callback for lambda (GG-25779) (GH-25788)
Fixing callback for lambda when no return value is provided
(cherry picked from commit 50c21ad353)

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>

Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
2021-05-01 15:55:46 -04:00
Stéphane Bidoul
af1e06c62f
[3.9] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25782) 2021-05-01 16:49:34 +01:00
Miss Islington (bot)
e48405a9be
bpo-43971: Add spaces around annotated arg default '=' (GH-25702)
Result: "quantity_on_hand: int = 0".
(cherry picked from commit e726a902b7)

Co-authored-by: Mohamed Moselhy <look4d@gmail.com>

Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
2021-04-30 20:30:38 -04:00
Miss Islington (bot)
a7f15ba547
bpo-43935: Fix typo in Turtle.back() docstring (GH-25581)
'e ,' to 'e, '.
(cherry picked from commit 0048c60f01)

Co-authored-by: Tarjei Bærland <tarjeibaerland@gmail.com>
2021-04-30 15:27:48 -07:00
Miss Islington (bot)
a92d738763
bpo-43954: Fix a missing word in the unittest docs (GH-25672)
(cherry picked from commit 2abbd8f2ad)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-30 00:56:56 -07:00
Miss Islington (bot)
3eaa6f9d18
bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)
Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section.

There are more modified links than in the bug report because I searched some other ones which can get the same improvement.
(cherry picked from commit 2fd928c8c1)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
2021-04-29 11:26:26 -07:00
Miss Islington (bot)
491fde0161
[3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) (GH-25725)
* bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 76cd81d603)
Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
2021-04-29 10:57:31 -07:00
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