Commit graph

114573 commits

Author SHA1 Message Date
Miss Islington (bot)
8bd7a0b581
GH-95899: fix asyncio.Runner to call set_event_loop only once (GH-95900) (#96003)
(cherry picked from commit 914f6367a0)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-08-15 15:01:23 -07:00
Miss Islington (bot)
3fa97b8589
gh-95231: Disable md5 & crypt modules if FIPS is enabled (GH-94742)
If kernel fips is enabled, we get permission error upon doing
`import crypt`. So, if kernel fips is enabled, disable the
unallowed hashing methods.

Python 3.9.1 (default, May 10 2022, 11:36:26)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import crypt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/crypt.py", line 117, in <module>
    _add_method('MD5', '1', 8, 34)
  File "/usr/lib/python3.9/crypt.py", line 94, in _add_method
    result = crypt('', salt)
  File "/usr/lib/python3.9/crypt.py", line 82, in crypt
    return _crypt.crypt(word, salt)
PermissionError: [Errno 1] Operation not permitted

Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
(cherry picked from commit 2fa03b1b07)

Co-authored-by: Shreenidhi Shedi <53473811+sshedi@users.noreply.github.com>
2022-08-15 08:37:51 -07:00
Miss Islington (bot)
3ce1d0093e
Clarify asyncio.Runner docs re: loop_factory (GH-95979)
(cherry picked from commit e8259e047c)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-08-14 09:02:07 -07:00
Miss Islington (bot)
38882d97b3
bpo-40222: Mark exception table function in the dis module as private (GH-95961)
(cherry picked from commit c26500224f)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-08-14 08:08:04 -07:00
Miss Islington (bot)
d89f5fe1f4
gh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 0b329f4f03)

Co-authored-by: Christian Heimes <christian@python.org>
2022-08-13 12:55:15 -07:00
Miss Islington (bot)
1fccb1d493
[3.11] gh-94439: typing docs: Add minimum version to __required_keys__ and __optional_keys__ (GH-95373) (#95944)
Co-authored-by: Howie Zhao <howiezhaohr@hotmail.com>
2022-08-13 19:42:27 +01:00
Miss Islington (bot)
63690996e8
bpo-25625: Document contextlib.chdir in the 3.11 what's new (GH-95962)
(cherry picked from commit 7552f237a2)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-08-13 11:34:17 -07:00
Miss Islington (bot)
df9c12e287
Fix typo in internal/pycore_atomic.h (GH-95939)
(cherry picked from commit 8281cbddc6)

Co-authored-by: fluesvamp <105884371+fluesvamp@users.noreply.github.com>
2022-08-12 21:04:06 -07:00
Shantanu
7fc8221794
[3.11] gh-94996: Disallow lambda pos only params with feature_version < (3, 8) (GH-95934) (GH-95936)
(cherry picked from commit a965db37f2)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

Automerge-Triggered-By: GH:lysnikolaou
2022-08-12 12:41:09 -07:00
Miss Islington (bot)
6fc90c1183
GH-95818: Skip incomplete frames in PyThreadState_GetFrame (GH-95886) (#95890)
(cherry picked from commit 1b46d118e6)

Co-authored-by: Mark Shannon <mark@hotpy.org>

Co-authored-by: Mark Shannon <mark@hotpy.org>
2022-08-12 19:40:49 +01:00
Miss Islington (bot)
4abf84602f
gh-94996: Disallow parsing pos only params with feature_version < (3, 8) (GH-94997)
(cherry picked from commit b5e3ea2862)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-08-12 10:53:09 -07:00
Miss Islington (bot)
7fdda1a47f
gh-82180: Document support for non-integer arg removed from grp.getgrgid in 3.10 (GH-95346) (GH-95929)
(cherry picked from commit 50bf5fafcc)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-12 19:03:04 +02:00
Miss Islington (bot)
5cc3964a32
gh-95914: Add missing PEPs to the Summary section of 3.11 What's New (GH-95916) (GH-95927)
(cherry picked from commit 6376433ac3)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-12 18:13:38 +02:00
Éric
e3adb19df8
[3.11] gh-90300: [docs] Add whatsnew entry for new --help output (GH-95856) 2022-08-12 18:07:05 +02:00
Erlend E. Aasland
bd86e09ab9
[3.11] gh-95273: Improve sqlite3.complete_statement docs (GH-95840) (#95917)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit e6623e7083)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-08-12 09:34:26 +02:00
Miss Islington (bot)
577dbc3c49
gh-95841: IDLE - Revise Windows local doc url (GH-95845) (#95905)
GH-91242 replaced the Windows chm help file with a copy
of the html docs.  This PR replaces the IDLE code that
fetches the Windows local help url passed to os.startfile.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Steve Dower
Approved by Steve Dower, #95845 (review), 2nd subblock.

(cherry picked from commit bdb2cf8e91)
2022-08-11 20:11:17 -04:00
Miss Islington (bot)
24dd1429e5
gh-95724: Clarify taskgroups.py license. (GH-95847)
(cherry picked from commit 7da4937748)

Co-authored-by: Yury Selivanov <yury@edgedb.com>
2022-08-11 16:45:30 -07:00
Miss Islington (bot)
f8df88e07a
gh-84910: Change 'IDLE Help' to 'IDLE Doc' (GH-95873)
'IDLE Help' was a plain text file.  It was superceded years ago
by a copy of the much more complete html doc.  .
(cherry picked from commit 05a0f37029)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-11 14:14:30 -07:00
Miss Islington (bot)
3ea9ba6478
gh-95605: Fix float(s) error message when s contains only whitespace (GH-95665) (GH-95858)
This PR fixes the error message from float(s) in the case where s contains only whitespace.
(cherry picked from commit 97e9cfa75a)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2022-08-11 17:16:53 +01:00
Miss Islington (bot)
731732aa8b
gh-95878: Fix format char in datetime CAPI tests (GH-95879) (#95885)
(cherry picked from commit 8b34e914bb)

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

Co-authored-by: Christian Heimes <christian@python.org>
2022-08-11 12:46:14 +01:00
Miss Islington (bot)
1221e8c400
gh-95876: Fix format string in pegen error location code (GH-95877)
(cherry picked from commit b4c857d0fd)

Co-authored-by: Christian Heimes <christian@python.org>
2022-08-11 02:19:20 -07:00
Miss Islington (bot)
209f2a7b45
gh-75510: Edit idlelib entry in doc (GH-95869)
Make section instead of subsection and revise sentence.
(cherry picked from commit 9af4aed73a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-10 20:02:09 -07:00
Miss Islington (bot)
599b6ffb0d
gh-84910: Tweak IDLE Glossary entry (GH-95866)
Link "IDLE" to its doc and add 'and Learning' to its expansion,
as in the doc.
(cherry picked from commit 3646f6cd88)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-10 19:13:33 -07:00
Miss Islington (bot)
5c829436d2
[docs] Mention RESUME opcode in whatsnew/3.11.rst (GH-95595) (GH-95851)
(cherry picked from commit cf28540fd3)

Co-authored-by: esc <esc@users.noreply.github.com>
2022-08-10 13:01:19 +02:00
Miss Islington (bot)
2c4bd21630
gh-95349: Hide a Distutils Warning Filter for test_check_c_globals (GH-95837) (GH-95843)
Under certain build conditions, test_check_c_globals fails.  This fix takes the same approach as we took for gh-84236 (via gh-20095).  We'll be removing use of distutils in the c-analyzer at some point.  Until then we'll hide the warning filter.
(cherry picked from commit 3ff6d9affb)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2022-08-10 12:57:32 +02:00
Miss Islington (bot)
a42215c7e1
gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650) (GH-95780)
(cherry picked from commit cc9160a29b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-08-10 12:55:50 +02:00
Miss Islington (bot)
25d0a81e62
[docs] Fix typo for functools.cmp_to_key (GH-95766)
(cherry picked from commit f83b0cabeb)

Co-authored-by: Andrzej Bartosiński <6197476+Neob91@users.noreply.github.com>
2022-08-10 12:54:57 +02:00
Miss Islington (bot)
c6aa68fdf5
gh-75500: Add idlelib section to IDLE doc (GH-95832)
This enables accessing IDLE as 'idlelib' in the Doc Module listing.
(cherry picked from commit 70fc9641b5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-09 12:33:23 -07:00
Terry Jan Reedy
1a22ec5d69
[3.11] gh-88878: IDLE - replace type('') with str (#95792)
Change in idlelib.browser, line 54
cherrypicked from 3680ebed7f
2022-08-09 13:42:16 -04:00
Miss Islington (bot)
77fccc29df
gh-95491: Mention IDLE Issue project in Readme (GH-95750) (#95791)
(cherry picked from commit 63140b445e)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-09 13:38:36 -04:00
Miss Islington (bot)
c96b26cb06
GH-92678: Document that you shouldn't be doing your own dictionary offset calculations. (GH-95598) (GH-95821)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Mark Shannon <mark@hotpy.org>
2022-08-09 16:22:54 +01:00
Miss Islington (bot)
2d36d5e2d7
gh-95767: Fix grammatical error in asyncio loop.create_task docs (GH-95768)
(cherry picked from commit 141f2517fc)

Co-authored-by: Andrzej Bartosiński <6197476+Neob91@users.noreply.github.com>
2022-08-09 07:09:49 -07:00
Miss Islington (bot)
88cae1c9c6
gh-94635: Fixup sqlite3 'Introduction' seealso note (GH-95751) (#95752)
In gh-95269, the seealso note incorrectly ended up in
the 'Tutorial' section.
(cherry picked from commit 56af5a200d)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-08-09 13:48:08 +02:00
Erlend E. Aasland
d7a6a97806
[3.11] gh-95273: Reorganize sqlite3 doc module level funcs and vars (GH-95626) (#95801)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit 41c939cb35)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-08-09 13:47:15 +02:00
Miss Islington (bot)
514ec82031
Fix typo in test_dataclasses.py (gh-95735) (gh-95740)
`dataclass` was called as a function when it was almost certainly intended to be a decorator.
(cherry picked from commit 59e09efe88)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2022-08-09 07:46:20 -04:00
Pablo Galindo
868fb9e269
Merge remote-tracking branch 'upstream/3.11' into 3.11 2022-08-08 14:08:40 +01:00
Pablo Galindo
19eed66d2b
Post 3.11.0rc1 2022-08-08 14:07:31 +01:00
Miss Islington (bot)
6dffb5f1cf
gh-95376: Add test for names containing null (GH-GH-5394) (#GH-5746)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a17cd47b61)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
2022-08-06 19:31:58 +02:00
Miss Islington (bot)
08510324db
gh-95395: Add argument type error test (GH-95412) (GH-95744)
(cherry picked from commit 4703c15811)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
2022-08-06 19:30:46 +02:00
Miss Islington (bot)
96c1f013b3
gh-95155: Update "Using Python on a Mac" documentation (GH-95284) (GH-95742)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit d25ff1f613)

Co-authored-by: Howie Zhao <howiezhaohr@hotmail.com>
2022-08-06 19:15:48 +02:00
Miss Islington (bot)
11f7d41ccf
gh-89362: Doc IDLE menu and search (GH-95697) (GH-95718)
Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.
(cherry picked from commit 834064c19a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-06 19:01:10 +02:00
Miss Islington (bot)
1f48913db3
gh-95251: IDLE - Add What's New section to README (GH-95688) (GH-95726)
Document what I (TJR) currently do for 3.10/3.11.

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a302a27489)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-08-06 18:55:49 +02:00
Pablo Galindo
41cb07120b
Python 3.11.0rc1 2022-08-05 15:45:18 +01:00
Miss Islington (bot)
d6cf9e4a3e
[3.11] Update the magic number in test_util.py (GH-95714) (#95716)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-08-05 15:43:10 +01:00
Miss Islington (bot)
96555cb2fa
[3.11] Remove draft notice from 3.11 What's new (GH-95713) (#95715)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-08-05 15:41:45 +01:00
Miss Islington (bot)
954b8875a0
gh-95573: Reduce test data size in test_asyncio/test_ssl.py (GH-95668) (GH-95705)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3a9e1fda7a)

Co-authored-by: Fantix King <fantix.king@gmail.com>
2022-08-05 11:23:57 +02:00
Shantanu
6a36b8e586
[3.11] Clarifying the documentation on library/syslog (GH-92587) (GH-95492)
(cherry picked from commit b7ce4625fe)

Co-authored-by: Nicolas Haller <nicolas@haller.im>
2022-08-05 10:18:44 +02:00
Miss Islington (bot)
0e636e4e7b
gh-95573: Fix a mistake in asyncio ssl tests suppressing all logs (GH-95687) (GH-95699)
(cherry picked from commit e1d68b3ce7)

Co-authored-by: Fantix King <fantix.king@gmail.com>
2022-08-05 10:07:15 +02:00
Miss Islington (bot)
82328126b4
GH-95685: Fix rendering of the string documentation (GH-95686) (GH-95700)
There's an extra underlines that messed the rest of the documentation rendering.

Closes #95685
(cherry picked from commit a525f2ada4)

Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
2022-08-05 09:58:40 +02:00
Miss Islington (bot)
07d97c9e5d
GH-90997: Document CACHEs (GH-95694) (GH-95696)
(cherry picked from commit 5f3c9fda18)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2022-08-05 09:42:49 +02:00