Commit graph

108377 commits

Author SHA1 Message Date
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
Miss Islington (bot)
0121f6792a
Fix typo in a dataclasses comment. (GH-25454)
(cherry picked from commit 76beadb8ff)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
2021-04-17 07:13:44 -07:00
Christian Heimes
cdf0287979
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)
Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b467d9a240)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-17 11:35:24 +02:00
Victor Stinner
e1903e11a3
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437)
Fix a race condition in the SMTP test of test_logging. Don't close a
file descriptor (socket) from a different thread while
asyncore.loop() is polling the file descriptor.

(cherry picked from commit 75ec103b3a)
2021-04-16 16:06:38 +02:00
Terry Jan Reedy
56c76df6e8
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Change threading.activeCount to synonym threading.active_count.
2021-04-16 02:08:07 -04:00
Miss Islington (bot)
95e4431804
bpo-20364: Improve sqlite3 placeholder docs (GH-25003)
(cherry picked from commit 3386ca0b36)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-04-14 16:28:11 +03:00
Miss Islington (bot)
57873af35a
bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)
(cherry picked from commit 133705b85c)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2021-04-13 22:34:39 -07:00
Pablo Galindo
4da5ca52b7
Revert "Add ignore file for the abidump check (GH-25323)" (GH-25394)
This reverts commit b3fec753bb.
2021-04-14 00:26:43 +01:00
Miss Islington (bot)
5ce227f3a7
[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)
The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 8fa1489365)


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

Automerge-Triggered-By: GH:tiran
2021-04-13 12:14:41 -07:00
Miss Islington (bot)
15ad30d88f
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c911)

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
2021-04-13 14:20:13 +02:00
Miss Islington (bot)
7d9d5bf863
[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit a4833883c9)


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

Automerge-Triggered-By: GH:tiran
2021-04-12 23:40:52 -07:00
Ethan Furman
6379924ecd
[3.9] bpo-42248: [Enum] ensure exceptions raised in `_missing_` are released (GH-25350). (GH-25370)
(cherry picked from commit 8c14f5a787)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2021-04-12 15:03:29 -07:00
Miss Islington (bot)
de06baa9de
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)
(cherry picked from commit 67c0b3d89c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-12 09:03:08 -07:00
Miss Islington (bot)
0983e01837
bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-12 03:24:48 -07:00
Miss Islington (bot)
6ec2fb42f9
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)
* coerce bytes separator to string

* Add news

* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d496)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-04-11 06:49:35 -07:00
Miss Islington (bot)
dbc0e19a48
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25341)
(cherry picked from commit 79650d0118)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2021-04-11 10:27:51 +01:00
Miss Islington (bot)
28fb2d1c4d
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333) 2021-04-10 09:19:49 -07:00
Pablo Galindo
b3fec753bb
Add ignore file for the abidump check (GH-25323) 2021-04-09 23:12:08 +01:00
Miss Islington (bot)
7c8796a750
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
ripemd160 is not available in OpenSSL 3.0.0's default crypto provider.
It's only present in legacy provider.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2d7fdc9073)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 13:46:17 -07:00
Erlend Egeberg Aasland
76d270ec2b
[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289). (GH-25294)
* [3.9] Fix possible refleak involving _PyArena_AddPyObject (GH-25289).
(cherry picked from commit c0e11a3ceb)

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

* Update Parser/pegen/pegen.c

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-04-09 18:46:32 +01:00
Christian Heimes
299ae9c7a2
[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)
(cherry picked from commit 150af75432)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 18:34:39 +02:00
Miss Islington (bot)
54d89a33e0
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6f37ebc61e)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 09:21:54 -07:00
Miss Islington (bot)
4a5c101936
bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 5151d64200)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 07:08:32 -07:00
Miss Islington (bot)
a188bd44ac
bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303)
(cherry picked from commit d3b73f32ef)

Co-authored-by: Christian Heimes <christian@python.org>
2021-04-09 06:46:11 -07:00
Pablo Galindo
4d9336d114
Add CI step to check changes in the exported ABI (GH-25230) 2021-04-09 01:34:08 +01:00
Miss Islington (bot)
a9228d02d1
[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)
(cherry picked from commit 1e051a21b7)


Co-authored-by: Saiyang Gou <gousaiyang@163.com>

Automerge-Triggered-By: GH:brandtbucher
2021-04-08 16:03:53 -07:00
Miss Islington (bot)
5490b49fa6
[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
(cherry picked from commit 14829b09eb)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-08 04:21:35 -04:00
Miss Islington (bot)
b3e8722853
Fix broken test for MutableSet.pop() (GH-25209) (GH-25269) 2021-04-07 16:56:48 -07:00
Saiyang Gou
3b1cf20297
[3.9] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25259)
(cherry picked from commit 58d72cab89)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
2021-04-07 20:32:48 +01:00
Miss Islington (bot)
f91fc7a679
bpo-43755: Update docs to reflect that lambda is not allowed in comp_if since 3.9 (GH-25231) (GH-25233) 2021-04-07 19:17:56 +01:00
Steve Dower
34f93002ba
bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2021-04-07 18:12:42 +01:00
Miss Islington (bot)
a21d4fbd54
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)
Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25)

Co-authored-by: Yeting Li <liyt@ios.ac.cn>

Co-authored-by: Yeting Li <liyt@ios.ac.cn>
2021-04-07 17:58:04 +02:00
Steve Dower
0af99b44ed
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121) 2021-04-07 12:35:36 +01:00
Miss Islington (bot)
2df971afd5
Fix blurb for bpo-43176. (GH-25215) (GH-25217)
(cherry picked from commit 1744c96ebc)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
2021-04-06 11:07:07 -04:00
Steve Dower
611aa39142
bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)
Earlier releases were mislabelled and included 1.1.1i again.
The tag/directory name is updated to ensure that builds get the fresh bits. However, the openssl-bin-1.1.1k tag in the repository has been forcibly updated, so fresh builds will be fine even without this change.
2021-04-06 16:03:52 +01:00
Miss Islington (bot)
8a34a0793b
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)
When a dataclass inherits from an empty base, all immutability checks are omitted. This PR fixes this and adds tests for it.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 376ffc6ac4)

Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>

Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
2021-04-06 09:46:30 -04:00
Miss Islington (bot)
c7ccb0ff61
bpo-17305: Link to the third-party idna package. (GH-25208)
So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution.
(cherry picked from commit 1d023e374c)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2021-04-06 01:19:15 -07:00
Miss Islington (bot)
028d5286d4
bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH-25202) 2021-04-05 13:11:50 -07:00
Miss Islington (bot)
013c30e5fc
bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200)
Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 75220674c0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2021-04-05 16:07:38 -04:00
Miss Islington (bot)
82cd24a03c
[3.9] Fix typo in turtledemo.two_canvases. (GH-25194)
(cherry picked from commit 4e2ef70841)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-04-05 13:43:15 -04:00
Łukasz Langa
c3c43dc07b
Post 3.9.4 2021-04-04 20:39:08 +02:00
Łukasz Langa
6c6ba50620 Python 3.9.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAmBpt7AACgkQsmmV4xAl
 BWiXTw/+KpFGbek7SRveuy1GFEMErvK/tAt4Th47kx5F5DO6AYSIhvEjZywgp6JA
 0EQDM5OX7SpiW6DaVs6lFPChKdG0ohpUZqcIhCTqwsVNE0A2mcwprRbzk+xAqFbV
 aeeY4SLR9ZQ6FKHYRzIBb4SwYzMDTEB6wN3bnCzANLyRu9V6/Q8Uk4159waRw5Kj
 roz8a+B/DTud286gKMaFN4pjfpgoKOLH4AiQSGDfMdIBvMpQP9ScM72cQcuo/nyU
 bsvT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1xCHts40KmQwai2dCupMS
 W96HaL20zmvN+BRszk+eTxI/zezxYt5EK37mwNP+PMJExChZMyGCSFV+KhQJPTdJ
 iNBVwFTzlcw3buUJtlIeEBOiQ2oA8gZrOgwJCjxqaC/wLYGOCHSOi7rfyR/X4fqX
 VSydShe3Eq1izBeyBKvwT8YSV6140v9gSLp/q7jwg/HWRSRbxpc6GcN2B/egBQ2b
 qzP+2MeT8w==
 =yKDv
 -----END PGP SIGNATURE-----

Merge tag 'v3.9.4' into 3.9

Python 3.9.4
2021-04-04 20:38:59 +02:00
Miss Islington (bot)
d56bcf915b
[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH-25183) (GH-25184)
(cherry picked from commit 2b5913b4ee)


Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>

Automerge-Triggered-By: GH:gvanrossum
2021-04-04 08:36:21 -07:00
Łukasz Langa
1f2e3088f3
Python 3.9.4 2021-04-04 14:56:53 +02:00
Gregory P. Smith
c7b0feca25
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
This reverts commit 8b795ab554.

It changed the PyThreadState structure size, breaking the ABI in 3.9.3.
2021-04-04 13:02:29 +02:00
Miss Islington (bot)
de0b2b1330
bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178) 2021-04-03 20:05:50 -07:00
Miss Islington (bot)
cbfa09b70b
Replace broken example code with correct simpler code. (GH-25162) (GH-25166) 2021-04-03 13:42:43 -07:00
Miss Islington (bot)
f12ae0b31a
Add more tests for the descriptor tutorial (GH-25164) (#25165)
(cherry picked from commit e4c8895ee5)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2021-04-03 13:42:28 -07:00
Miss Islington (bot)
63c69440c7
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit b2a91e0c9e)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-04-02 15:26:32 -07:00