Commit graph

110649 commits

Author SHA1 Message Date
Miss Islington (bot)
d55bf81c4e
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)
Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit 4e605666b0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-10-07 05:11:38 -07:00
Miss Islington (bot)
ee92205bb2
[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)
Thanks for the fix @wiggin15 .
(cherry picked from commit 599c07006a)


Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>

Automerge-Triggered-By: GH:JulienPalard
2021-10-07 02:26:12 -07:00
Miss Islington (bot)
5afc5bb45d
[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)
(cherry picked from commit dd02a696e5)


Co-authored-by: Christian Clauss <cclauss@me.com>

Automerge-Triggered-By: GH:gpshead
2021-10-07 01:55:18 -07:00
Miss Islington (bot)
35d4857375
bpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28779) 2021-10-07 16:48:00 +09:00
Miss Islington (bot)
ce121fd875
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28772)
It took me longer than I expected to figure out why a random class
I dealt with didn't support weak references. I believe this addition
will make the __slots__/weakref interaction more discoverable to people
having troubles with this. (Before this patch __slots__ was not
mentioned in weakref documentation even once).

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

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
2021-10-06 20:52:22 +02:00
Miss Islington (bot)
4c35a2aa80
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771)
Operating systems without support for TCP_NODELAY will raise an OSError
when trying to set the socket option, but the show can still go on.
(cherry picked from commit 0571b934f5)

Co-authored-by: rtobar <rtobarc@gmail.com>
2021-10-06 20:29:23 +02:00
Miss Islington (bot)
dcdeb96495
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28762)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7af95a1e80)

Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
2021-10-06 17:15:42 +02:00
Christian Clauss
d15f47d179
[3.10] [doc] Fix typos found using codespell (GH-28744) (GH-28758) 2021-10-06 15:56:57 +02:00
Miss Islington (bot)
325e4647af
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)
(cherry picked from commit 4c8d543823)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
2021-10-06 00:15:46 +02:00
Miss Islington (bot)
258c5fbbfd
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)
(cherry picked from commit 1dac95c814)

Co-authored-by: Julien Palard <julien@palard.fr>
2021-10-05 23:04:27 +02:00
Miss Islington (bot)
eb59e2fc11
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
(cherry picked from commit 4103280b83)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-10-05 19:21:25 +02:00
Miss Islington (bot)
d0d29655ff
bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28738)
Automerge-Triggered-By: GH:encukou
(cherry picked from commit b9bb74871b)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-10-05 18:34:59 +02:00
Miss Islington (bot)
d0d0909a3a
bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)
(cherry picked from commit de4052fe06)

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
2021-10-05 13:38:50 +01:00
Miss Islington (bot)
3733dddeca
[3.10] bpo-45371: Fix distutils' rpath support for clang (GH-28732) (GH-28733)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit ef6196028f)


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

Automerge-Triggered-By: GH:tiran
2021-10-05 03:04:52 -07:00
John Belmonte
872b1e537e
[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)
Make enter_context(foo()) / enter_async_context(foo()) equivalent to
`[async] with foo()` regarding __context__ when an exception is raised.

Previously exceptions would be caught and re-raised with the wrong
context when explicitly overriding __context__ with None..
(cherry picked from commit e6d1aa1ac6)

Co-authored-by: John Belmonte <john@neggie.net>

Automerge-Triggered-By: GH:njsmith
2021-10-04 23:21:34 -07:00
Pablo Galindo
1e328afb04
Post 3.10.0 2021-10-04 20:17:37 +01:00
Pablo Galindo
6145192287 Python 3.10.0
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmFbPJ8ACgkQ/+h0BBaL
 2EfHRRAAvS0Z8NNZXSzsyQ42kLtR6Sni7hxw5D1ChD0h4hSk+zyybUUnMlAiZhf+
 fGuoj3rTncE/J756EYlF9/tuNVgx/LAkLNzFAIBnCq/r1xaHBQ/E4QxxMoqNQ2Bq
 xfB0gyGScy1HtMF6thhv18udG0Npgu+eIbwtqtVdJeUkuTgTsUz7+EOu9FZdap4t
 s/PB7F29gw8UVVMz8kR6IyIE1Rq6cvSilvgaLkzHiG9A9qLdUDE6qAo2bmx87J20
 7m0IkjqSkIyuNQDCI+lhehCgYNcOqy5f/rwCF1363cCErIZMpo6JOM/Jn9EwGO2H
 Utttg3KghgHiI7Yf2IFTxL2iCgfDiQ871PgcySNeYdM8dCPH/hrWpX5mi6a5Px3f
 8in3QbEN1mCOQFo92b/WyD90L6wpkjjPhMMdvyxaxDH2hluKSa6RCi+0dcegx+qK
 59mJxiz1d52mfRbyq0m0fQXUDcWbtzUgNwa6FYfDoS8bPGT8Fzt5boeI+QxUlUMX
 E3Pqb0s8vt8+Vgyk8xmNK+SbK6JLhYw7p1QYomRI3nS2IgrbRdTL2KQYTwbpnkQV
 vjmEbzMCZRFI9wiozBm8t7PITydTSfcC7DSho31FK9yKd9g1sWjhY7Oclgabezx6
 PjLsg41K/tKLixDqpMAYpPU/1Kdp7i9QHiPckjGRWSqRy2whTwU=
 =A8if
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmFbUgcACgkQ/+h0BBaL
 2EfmqQ//Tm0Se1IUjcdR2Mlzc75kqZh/q7zSe8e56sgQsAPpkVnZ7eWvQ4QrYYYo
 UEUS/4PRBO3T/aCX4F6rnfZXOfUDrS6u5u6o/bGqBdvyT+0TX3sx33+WioaOrRgH
 7g4Q4NzG+JsfZewADtQHMTpe2v7yfkw9XsK7RUogqn0SXW5csXeRQf7WOdXki9mq
 gIoILPACu4gXyUpYKHGJBbDTF8JbM0sC71bo1WkENMtmFgnGyGuooz4v01NDt+RI
 ZHGjUSLjEMf68TuYnsMzCY/DwFK+uENeISC2jXZKwCTT36TkC7TFQUs24NxDNlPn
 tBf0AqBOBpLXliZZzkHFkHXFKTA+7NDEJu0vdyBq+o+3m9lBd2SJlE+1yWUT06c4
 uirJpRNUVlD/RLAecfBLByJpqKBQA4G/q/MocD32xWqQqCkeSxf1x5gc3YPmfMMp
 jXaNEzp7yP/XVIxvsT+fA6Kpp7ySxTpNNCgrhzEH3GfC/p8g7hBuPYNEjFiYOPQQ
 WS5NbJsuAi7SdfATxcjYaVkQzsn8mJYcN1cUD1HQvCNb28jLFEzzgdIPCDLkTHKL
 35SrFiTJFYXqWZa140j9L/3YROAsUJAmP+jdzRtEYqS4BKpuc0DVWt8p1+bFERH9
 UnMzn5PReIufBi5BjAW6SMNhHYoZC0nqX90T9aQAftYyuBF3d4U=
 =T4+A
 -----END PGP SIGNATURE-----

Merge tag 'v3.10.0' into 3.10

Python 3.10.0
2021-10-04 20:12:06 +01:00
Pablo Galindo
b494f5935c
Python 3.10.0 2021-10-04 18:40:46 +01:00
Serhiy Storchaka
1670d590fa
[3.10] bpo-45355: More use of sizeof(_Py_CODEUNIT) (GH-28720). (GH-28721)
(cherry picked from commit 252b7bcb23)
2021-10-04 17:07:21 +03:00
Serhiy Storchaka
b5499784ec
[3.10] bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code unit (GH-28711). (GH-28718)
(cherry picked from commit 60b9e040c9)
2021-10-04 15:01:11 +03:00
Miss Islington (bot)
bc4c705869
bpo-45310: Fix parrallel shared memory tests (GH-28661)
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit eb4495e8e2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-04 12:15:12 +01:00
Miss Islington (bot)
e4d36423d0
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit 9ce0f48e91)

Co-authored-by: Julien Palard <julien@palard.fr>
2021-10-04 00:58:48 +01:00
Miss Islington (bot)
63c4d42e6e
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
(cherry picked from commit bc4cde4033)

Co-authored-by: zhanpon <pon.zhan@gmail.com>
2021-10-04 00:42:12 +01:00
Miss Islington (bot)
18bf0c10ec
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
pypi.org "  The Python Package Index (PyPI) ...
(cherry picked from commit 0be338199f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-10-04 00:41:33 +01:00
Miss Islington (bot)
49fac92173
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698) 2021-10-04 00:41:24 +01:00
Serhiy Storchaka
edf190b97e
[3.10] Remove trailing spaces (GH-28709) 2021-10-04 00:40:48 +01:00
Pablo Galindo Salgado
2c47b8080b
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707) 2021-10-04 00:40:38 +01:00
Pablo Galindo Salgado
f146ca36f8
bpo-45350: Rerun autoreconf with the pkg-config macros (GH-28707) 2021-10-04 00:39:54 +01:00
Serhiy Storchaka
93242d7a2a
[3.10] Remove trailing spaces (GH-28709) 2021-10-03 20:03:49 +03:00
Miss Islington (bot)
5ba61f488d
Fix spelling error in comment (GH-28696) (GH-28699) 2021-10-02 14:33:49 -05:00
Miss Islington (bot)
72089f33c0
bpo-45346: Keep docs consistent regarding true and false values (GH-28697) (GH-28698) 2021-10-02 14:32:56 -05:00
Miss Islington (bot)
22cf6a2f23
bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)
(cherry picked from commit 0742abdc48)

Co-authored-by: TAGAMI Yukihiro <tagami.yukihiro@gmail.com>
2021-10-02 06:21:55 -07:00
Miss Islington (bot)
e040adc806
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (GH-28687)
pypi.org "  The Python Package Index (PyPI) ...
(cherry picked from commit 0be338199f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-10-01 23:27:23 -07:00
Miss Islington (bot)
2221207f44
bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)
(cherry picked from commit a450398933)

Co-authored-by: AngstyDuck <solsticedante@gmail.com>
2021-10-01 13:30:15 -07:00
Victor Stinner
6df8c32753
bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671)
On Unix, if the sem_clockwait() function is available in the C
library (glibc 2.30 and newer), the threading.Lock.acquire() method
now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout,
rather than using the system clock (time.CLOCK_REALTIME), to not be
affected by system clock changes.

configure now checks if the sem_clockwait() function is available.
2021-10-01 18:22:49 +02:00
Miss Islington (bot)
282992b36f
bpo-45332: Fix broken Decimal test and benchmark (GH-28680)
(cherry picked from commit 9eed75fde2)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-10-01 07:16:37 -07:00
Miss Islington (bot)
fc3511f18e
bpo-45125: Improves pickling docs and tests for shared_memory (GH-28294)
(cherry picked from commit 746d648d47)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2021-10-01 06:09:15 -07:00
Miss Islington (bot)
b994feeca7
hashlib: Fix old message about unicode objects. (GH-28653)
(cherry picked from commit 9ce0f48e91)

Co-authored-by: Julien Palard <julien@palard.fr>
2021-10-01 05:58:37 -07:00
Miss Islington (bot)
4e6681d0cf
bpo-45310: Fix parrallel shared memory tests (GH-28661)
Add a PID to names of POSIX shared memory objects to allow
running multiprocessing tests (test_multiprocessing_fork,
test_multiprocessing_spawn, etc) in parallel.
(cherry picked from commit eb4495e8e2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-01 02:41:20 -07:00
Miss Islington (bot)
ef7c7294e8
bpo-45229: Make datetime tests discoverable (GH-28615)
(cherry picked from commit d441437ee7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-01 00:36:17 -07:00
Serhiy Storchaka
7873884d47
[3.10] bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654) (GH-28657)
* Work correctly if an additional fresh module imports other
  additional fresh module which imports a blocked module.
* Raises ImportError if the specified module cannot be imported
  while all additional fresh modules are successfully imported.
* Support blocking packages.
* Always restore the import state of fresh and blocked modules
  and their submodules.
* Fix test_decimal and test_xml_etree which depended on an undesired
  side effect of import_fresh_module().
(cherry picked from commit ec4d917a6a)
2021-09-30 19:56:41 +03:00
Miss Islington (bot)
80285ecc8d
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) (GH-28636)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit 196998e220)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
2021-09-30 01:02:11 +02:00
Miss Islington (bot)
017a791ae4
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28625)
Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading.

Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
(cherry picked from commit f1ca5d7f61)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-29 17:21:55 +02:00
Miss Islington (bot)
412ae8ab10
[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)
* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit 6c1154b9de)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-29 16:13:41 +02:00
Mark Shannon
2be4c370c6
Move predispatch logic from DISPATCH macro to juts before switch. Reduces size of each opocde in interpreter. (GH-28475) 2021-09-29 13:16:13 +01:00
Miss Islington (bot)
02fdd73a19
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566) (GH-28616)
(cherry picked from commit bc4cde4033)

Co-authored-by: zhanpon <pon.zhan@gmail.com>
2021-09-29 13:41:27 +02:00
Miss Islington (bot)
1e2058214f
bpo-45249: Ensure the traceback module prints correctly syntax errors with ranges (GH-28575)
(cherry picked from commit 20f439b6b9)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-09-29 12:40:23 +01:00
Miss Islington (bot)
dfccba4733
bpo-45067 - Verify the version of ncurses for extended color support feature usage. (GH-28260)
* issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses
for extended color support feature usage.

The function extended_color_content was introduced in 2017.  The ncurses-devel
package in CentOS 7 had a older version ncurses resulted in compilation error.
For compiling ncurses with extended color support, we verify the version of the
ncurses library.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 794430700d)

Co-authored-by: Senthil Kumaran <senthil@python.org>
2021-09-29 12:39:01 +01:00
Miss Islington (bot)
01be51833d
bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235) (GH-28251)
Update test_sysconfig.test_user_similar() for the posix_user scheme:
"platlib" doesn't use sys.platlibdir.
(cherry picked from commit 49acac00c0)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-29 12:37:59 +01:00
Miss Islington (bot)
6ae97bbf4e
bpo-45118: Fix regrtest second summary for re-run tests (GH-28183) (GH-28214)
Fix regrtest second summary when using -w/--verbose2 command line
option: lists re-run tests in the second test summary.
(cherry picked from commit c4ea45d7d2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-09-29 12:37:42 +01:00