]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agogh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856)
Michael Droettboom [Tue, 16 Aug 2022 15:54:13 +0000 (11:54 -0400)] 
gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856)

When loading a source file from disk, there is a separate UTF-8 validator
distinct from the one in `unicode_decode_utf8`. This exercises that code path
with the same set of invalid inputs as we use for testing the "other" UTF-8
decoder.

3 years agoGH-95736: fix IsolatedAsyncioTestCase to initialize Runner before calling setup funct...
Kumar Aditya [Tue, 16 Aug 2022 15:52:06 +0000 (21:22 +0530)] 
GH-95736: fix IsolatedAsyncioTestCase to initialize Runner before calling setup functions  (#95898)

3 years agoGH-95245: Move weakreflist into the pre-header. (GH-95996)
Mark Shannon [Tue, 16 Aug 2022 12:57:18 +0000 (13:57 +0100)] 
GH-95245: Move weakreflist into the pre-header. (GH-95996)

3 years agoremove repetitive credit from what's new in 3.11 rst (GH-96024)
Irit Katriel [Tue, 16 Aug 2022 12:47:07 +0000 (13:47 +0100)] 
remove repetitive credit from what's new in 3.11 rst (GH-96024)

3 years agogh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)
Christian Heimes [Tue, 16 Aug 2022 11:44:02 +0000 (13:44 +0200)] 
gh-95957: Add instructions for Tcl/Tk and OpenSSL on RHEL/CentOS 7 (#95964)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years agoChange CODEOWNERS entries for iritkatriel (GH-96008)
Irit Katriel [Tue, 16 Aug 2022 08:38:32 +0000 (09:38 +0100)] 
Change CODEOWNERS entries for iritkatriel (GH-96008)

3 years agogh-95808: Add missing early returns in _asynciomodule.c (#95809)
Yury Selivanov [Mon, 15 Aug 2022 23:32:40 +0000 (16:32 -0700)] 
gh-95808: Add missing early returns in _asynciomodule.c (#95809)

3 years agogh-78143: IDLE - fix settings dialog page label. (#96009)
Terry Jan Reedy [Mon, 15 Aug 2022 23:03:56 +0000 (19:03 -0400)] 
gh-78143: IDLE - fix settings dialog page label. (#96009)

'/Tab' should have been removed from the font page label
when the tab-spaces setting was moved to the Windows page.

3 years agoGH-94808: Test __build_class__ inside non-dict __builtins__ (GH-95932)
Michael Droettboom [Mon, 15 Aug 2022 17:39:06 +0000 (13:39 -0400)] 
GH-94808: Test __build_class__ inside non-dict __builtins__ (GH-95932)

3 years agoGH-95899: fix asyncio.Runner to call set_event_loop only once (#95900)
Kumar Aditya [Mon, 15 Aug 2022 17:02:47 +0000 (22:32 +0530)] 
GH-95899: fix asyncio.Runner to call set_event_loop only once (#95900)

3 years agogh-95231: Disable md5 & crypt modules if FIPS is enabled (GH-94742)
Shreenidhi Shedi [Mon, 15 Aug 2022 14:48:07 +0000 (20:18 +0530)] 
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>
3 years agogh-95707: Fix function signature (GH-95995)
Christian Heimes [Mon, 15 Aug 2022 14:06:28 +0000 (16:06 +0200)] 
gh-95707: Fix function signature (GH-95995)

3 years agoGH-95707: Fix uses of `Py_TPFLAGS_MANAGED_DICT` (GH-95854)
Mark Shannon [Mon, 15 Aug 2022 11:29:27 +0000 (12:29 +0100)] 
GH-95707: Fix uses of `Py_TPFLAGS_MANAGED_DICT` (GH-95854)

* Make sure that tp_dictoffset is correct with Py_TPFLAGS_MANAGED_DICT is set.

* Avoid traversing managed dict twice when subclassing class with Py_TPFLAGS_MANAGED_DICT set.

3 years agogh-95853: Address wasm build and test issues (GH-95985)
Christian Heimes [Mon, 15 Aug 2022 05:41:10 +0000 (07:41 +0200)] 
gh-95853: Address wasm build and test issues (GH-95985)

3 years agoClarify asyncio.Runner docs re: loop_factory (#95979)
Kumar Aditya [Sun, 14 Aug 2022 15:53:34 +0000 (21:23 +0530)] 
Clarify asyncio.Runner docs re: loop_factory (#95979)

3 years agoGH-95977: Speed up calling pure python descriptor __get__ with vectorcall (gh-95978)
Kumar Aditya [Sun, 14 Aug 2022 15:13:42 +0000 (20:43 +0530)] 
GH-95977: Speed up calling pure python descriptor __get__ with vectorcall (gh-95978)

3 years agobpo-40222: Mark exception table function in the dis module as private (#95961)
Pablo Galindo Salgado [Sun, 14 Aug 2022 14:42:31 +0000 (15:42 +0100)] 
bpo-40222: Mark exception table function in the dis module as private (#95961)

3 years agogh-95853: Add script to automate WASM build (GH-95828) 95955/head
Christian Heimes [Sat, 13 Aug 2022 19:56:08 +0000 (21:56 +0200)] 
gh-95853: Add script to automate WASM build (GH-95828)

Automate WASM build with a new Python script. The script provides
several build profiles with configure flags for Emscripten flavors
and WASI. The script can detect and use Emscripten SDK and WASI SDK from
default locations or env vars.

``configure`` now detects Node arguments and creates HOSTRUNNER
arguments for Node 16. It also sets correct arguments for
``wasm64-emscripten``.

Co-authored-by: Brett Cannon <brett@python.org>
3 years agogh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)
Christian Heimes [Sat, 13 Aug 2022 19:00:58 +0000 (21:00 +0200)] 
gh-89313: Add hashlib.file_digest to whatsnew 3.11 (GH-95965)

Automerge-Triggered-By: GH:pablogsal
3 years agobpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)
Pablo Galindo Salgado [Sat, 13 Aug 2022 18:27:44 +0000 (19:27 +0100)] 
bpo-25625: Document contextlib.chdir in the 3.11 what's new (#95962)

3 years agogh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' (GH-95937)
Irit Katriel [Sat, 13 Aug 2022 11:49:04 +0000 (12:49 +0100)] 
gh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' (GH-95937)

3 years agogh-90928: Improve static initialization of keywords tuple in AC (#95907)
Erlend E. Aasland [Sat, 13 Aug 2022 10:09:40 +0000 (12:09 +0200)] 
gh-90928: Improve static initialization of keywords tuple in AC (#95907)

3 years agogh-94439: typing docs: Add minimum version to `__required_keys__` and `__optional_key...
Howie Zhao [Sat, 13 Aug 2022 04:23:33 +0000 (12:23 +0800)] 
gh-94439: typing docs: Add minimum version to `__required_keys__` and `__optional_keys__` (#95373)

3 years agoFix typo in internal/pycore_atomic.h (GH-95939)
fluesvamp [Sat, 13 Aug 2022 03:40:41 +0000 (22:40 -0500)] 
Fix typo in internal/pycore_atomic.h (GH-95939)

3 years agogh-94909: fix joining of absolute and relative Windows paths in pathlib (GH-95450)
Barney Gale [Fri, 12 Aug 2022 21:23:41 +0000 (22:23 +0100)] 
gh-94909: fix joining of absolute and relative Windows paths in pathlib  (GH-95450)

Have pathlib use `os.path.join()` to join arguments to the `PurePath` initialiser, which fixes a minor bug when handling relative paths with drives.

Previously:

```python
>>> from pathlib import PureWindowsPath
>>> a = 'C:/a/b'
>>> b = 'C:x/y'
>>> PureWindowsPath(a, b)
PureWindowsPath('C:x/y')
```

Now:

```python
>>> PureWindowsPath(a, b)
PureWindowsPath('C:/a/b/x/y')
```

3 years agogh-94996: Disallow lambda pos only params with feature_version < (3, 8) (GH-95934)
Shantanu [Fri, 12 Aug 2022 18:41:02 +0000 (11:41 -0700)] 
gh-94996: Disallow lambda pos only params with feature_version < (3, 8) (GH-95934)

3 years agogh-94996: Disallow parsing pos only params with feature_version < (3, 8) (GH-94997)
Shantanu [Fri, 12 Aug 2022 17:27:50 +0000 (10:27 -0700)] 
gh-94996: Disallow parsing pos only params with feature_version < (3, 8) (GH-94997)

3 years agogh-90300: [docs] Add whatsnew entry for new --help output (GH-95856) (GH-95928)
Łukasz Langa [Fri, 12 Aug 2022 16:22:25 +0000 (18:22 +0200)] 
gh-90300: [docs] Add whatsnew entry for new --help output (GH-95856) (GH-95928)

Co-authored-by: Éric <merwok@netwok.org>
3 years agogh-82180: Document support for non-integer arg removed from grp.getgrgid in 3.10...
Hugo van Kemenade [Fri, 12 Aug 2022 16:22:06 +0000 (19:22 +0300)] 
gh-82180: Document support for non-integer arg removed from grp.getgrgid in 3.10 (GH-95346)

3 years agogh-95914: Add missing PEPs to the Summary section of 3.11 What's New (GH-95916)
CAM Gerlach [Fri, 12 Aug 2022 15:50:01 +0000 (10:50 -0500)] 
gh-95914: Add missing PEPs to the Summary section of 3.11 What's New (GH-95916)

3 years agogh-95922: compiler's eliminate_empty_basic_blocks ignores the last block of the compi...
Irit Katriel [Fri, 12 Aug 2022 15:35:09 +0000 (16:35 +0100)] 
gh-95922: compiler's eliminate_empty_basic_blocks ignores the last block of the compilation unit (GH-95924)

3 years agogh-95724: Clarify taskgroups.py license. (#95847)
Yury Selivanov [Thu, 11 Aug 2022 23:12:06 +0000 (16:12 -0700)] 
gh-95724: Clarify taskgroups.py license. (#95847)

3 years agogh-95273: Improve sqlite3.complete_statement docs (#95840)
Erlend E. Aasland [Thu, 11 Aug 2022 23:05:12 +0000 (01:05 +0200)] 
gh-95273: Improve sqlite3.complete_statement docs (#95840)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860)
Eric Snow [Thu, 11 Aug 2022 21:25:49 +0000 (15:25 -0600)] 
gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860)

We only statically initialize for core code and builtin modules.  Extension modules still create
the tuple at runtime.  We'll solve that part of interpreter isolation separately.

This change includes generated code. The non-generated changes are in:

* Tools/clinic/clinic.py
* Python/getargs.c
* Include/cpython/modsupport.h
* Makefile.pre.in (re-generate global strings after running clinic)
* very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c

All other changes are generated code (clinic, global strings).

3 years agogh-95841: IDLE - Revise Windows local doc url (#95845)
Terry Jan Reedy [Thu, 11 Aug 2022 20:54:03 +0000 (16:54 -0400)] 
gh-95841: IDLE - Revise Windows local doc url (#95845)

#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: Steve Dower
3 years agogh-84910: Change 'IDLE Help' to 'IDLE Doc' (#95873)
Terry Jan Reedy [Thu, 11 Aug 2022 20:50:49 +0000 (16:50 -0400)] 
gh-84910: Change 'IDLE Help' to 'IDLE Doc' (#95873)

'IDLE Help' was a plain text file.  It was superceded years ago
by a copy of the much more complete html doc.  .

3 years agogh-87092: compiler's codegen stage uses int jump target labels, and the target pointe...
Irit Katriel [Thu, 11 Aug 2022 16:40:49 +0000 (17:40 +0100)] 
gh-87092: compiler's codegen stage uses int jump target labels, and the target pointer is only calculated just before optimization stage (GH-95655)

3 years agoGH-95818: Skip incomplete frames in `PyThreadState_GetFrame` (GH-95886)
Mark Shannon [Thu, 11 Aug 2022 13:06:32 +0000 (14:06 +0100)] 
GH-95818: Skip incomplete frames in `PyThreadState_GetFrame` (GH-95886)

3 years agoUpdate _PyEval_AddPendingCall comment (#95817)
zhanpon [Thu, 11 Aug 2022 11:32:52 +0000 (20:32 +0900)] 
Update _PyEval_AddPendingCall comment (#95817)

3 years agogh-95878: Fix format char in datetime CAPI tests (GH-95879)
Christian Heimes [Thu, 11 Aug 2022 09:58:10 +0000 (11:58 +0200)] 
gh-95878: Fix format char in datetime CAPI tests (GH-95879)

3 years agogh-95876: Fix format string in pegen error location code (#95877)
Christian Heimes [Thu, 11 Aug 2022 08:55:57 +0000 (10:55 +0200)] 
gh-95876: Fix format string in pegen error location code (#95877)

3 years agogh-90385: Add pathlib.Path.walk what's new section (GH-95467)
Stanislav Zmiev [Thu, 11 Aug 2022 07:31:46 +0000 (11:31 +0400)] 
gh-90385: Add pathlib.Path.walk what's new section (GH-95467)

Automerge-Triggered-By: GH:brettcannon
3 years agoDocs: replace 'currying' by 'partial function'. (#91814)
Clemens Tolboom [Thu, 11 Aug 2022 06:23:40 +0000 (08:23 +0200)] 
Docs: replace 'currying' by 'partial function'. (#91814)

3 years agogh-75510: Edit idlelib entry in doc (#95869)
Terry Jan Reedy [Thu, 11 Aug 2022 02:44:17 +0000 (22:44 -0400)] 
gh-75510: Edit idlelib entry in doc (#95869)

Make section instead of subsection and revise sentence.

3 years agogh-84910: Tweak IDLE Glossary entry (#95866)
Terry Jan Reedy [Thu, 11 Aug 2022 02:04:36 +0000 (22:04 -0400)] 
gh-84910: Tweak IDLE Glossary entry (#95866)

Link "IDLE" to its doc and add 'and Learning' to its expansion,
as in the doc.

3 years agogh-95733: Allow installing Store package on older Windows versions (GH-95862)
Steve Dower [Wed, 10 Aug 2022 23:47:58 +0000 (00:47 +0100)] 
gh-95733: Allow installing Store package on older Windows versions (GH-95862)

3 years agogh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665)
Mark Dickinson [Wed, 10 Aug 2022 18:25:39 +0000 (19:25 +0100)] 
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665)

This PR fixes the error message from float(s) in the case where s contains only whitespace.

3 years agogh-95804: Respect MemoryHandler.flushOnClose in logging shutdown. (GH-95857)
David Bonner [Wed, 10 Aug 2022 17:08:55 +0000 (13:08 -0400)] 
gh-95804: Respect MemoryHandler.flushOnClose in logging shutdown. (GH-95857)

3 years agogh-95504: Fix negative numbers in PyUnicode_FromFormat (GH-95848)
Petr Viktorin [Wed, 10 Aug 2022 11:12:40 +0000 (13:12 +0200)] 
gh-95504: Fix negative numbers in PyUnicode_FromFormat (GH-95848)

Co-authored-by: philg314 <110174000+philg314@users.noreply.github.com>
3 years ago[docs] Mention RESUME opcode in whatsnew/3.11.rst (#95595)
esc [Wed, 10 Aug 2022 10:50:21 +0000 (12:50 +0200)] 
[docs] Mention RESUME opcode in whatsnew/3.11.rst (#95595)

3 years agogh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793)
Petr Viktorin [Wed, 10 Aug 2022 09:53:10 +0000 (11:53 +0200)] 
gh-93649: Undefine NDEBUG in Modules/_testcapi/* to enable assert() (GH-95793)

3 years agogh-93649: Split unicode tests from _testcapimodule.c & add some more (GH-95819)
Petr Viktorin [Wed, 10 Aug 2022 07:10:25 +0000 (09:10 +0200)] 
gh-93649: Split unicode tests from _testcapimodule.c & add some more (GH-95819)

- Move PyUnicode tests to a separate file
- Add some more tests for PyUnicode_FromFormat

Co-authored-by: philg314 <110174000+philg314@users.noreply.github.com>
3 years agogh-95349: Hide a Distutils Warning Filter for test_check_c_globals (GH-95837)
Eric Snow [Tue, 9 Aug 2022 23:04:05 +0000 (17:04 -0600)] 
gh-95349: Hide a Distutils Warning Filter for test_check_c_globals (GH-95837)

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.

3 years agogh-75500: Add idlelib section to IDLE doc (#95832)
Terry Jan Reedy [Tue, 9 Aug 2022 18:34:42 +0000 (14:34 -0400)] 
gh-75500: Add idlelib section to IDLE doc (#95832)

This enables accessing IDLE as 'idlelib' in the Doc Module listing.

3 years agogh-95767: Fix grammatical error in asyncio loop.create_task docs (#95768)
Andrzej Bartosiński [Tue, 9 Aug 2022 13:59:27 +0000 (15:59 +0200)] 
gh-95767: Fix grammatical error in asyncio loop.create_task docs (#95768)

3 years agoGH-92678: Document that you shouldn't be doing your own dictionary offset calculation...
Mark Shannon [Tue, 9 Aug 2022 13:26:37 +0000 (14:26 +0100)] 
GH-92678: Document that you shouldn't be doing your own dictionary offset calculations. (GH-95598)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agoDisable Limited API tests with Py_TRACE_REFS (GH-95796)
Petr Viktorin [Tue, 9 Aug 2022 07:03:11 +0000 (09:03 +0200)] 
Disable Limited API tests with Py_TRACE_REFS (GH-95796)

3 years agoImprovements to the bisect docs (GH-95807)
Raymond Hettinger [Tue, 9 Aug 2022 06:31:50 +0000 (23:31 -0700)] 
Improvements to the bisect docs (GH-95807)

3 years agobpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775)
Matthias Görgens [Mon, 8 Aug 2022 23:22:26 +0000 (07:22 +0800)] 
bpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775)

3 years agogh-95273: Reorganize sqlite3 doc module level funcs and vars (#95626)
Erlend E. Aasland [Mon, 8 Aug 2022 19:25:35 +0000 (21:25 +0200)] 
gh-95273: Reorganize sqlite3 doc module level funcs and vars (#95626)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agogh-95781: More strict format string checking in PyUnicode_FromFormatV() (GH-95784)
Serhiy Storchaka [Mon, 8 Aug 2022 16:21:07 +0000 (19:21 +0300)] 
gh-95781: More strict format string checking in PyUnicode_FromFormatV() (GH-95784)

An unrecognized format character in PyUnicode_FromFormat() and
PyUnicode_FromFormatV() now sets a SystemError.
In previous versions it caused all the rest of the format string to be
copied as-is to the result string, and any extra arguments discarded.

3 years agogh-95491: Mention IDLE Issue project in Readme (#95750)
Terry Jan Reedy [Mon, 8 Aug 2022 13:37:43 +0000 (09:37 -0400)] 
gh-95491: Mention IDLE Issue project in Readme (#95750)

3 years agogh-93274: Expose receiving vectorcall in the Limited API (GH-95717)
Petr Viktorin [Mon, 8 Aug 2022 12:12:05 +0000 (14:12 +0200)] 
gh-93274: Expose receiving vectorcall in the Limited API (GH-95717)

3 years agogh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650)
Serhiy Storchaka [Mon, 8 Aug 2022 11:00:17 +0000 (14:00 +0300)] 
gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650)

3 years agogh-95388: Suppress deprecation warning in test_immutable_type_with_mutable_base ...
Erlend E. Aasland [Mon, 8 Aug 2022 10:15:57 +0000 (12:15 +0200)] 
gh-95388: Suppress deprecation warning in test_immutable_type_with_mutable_base (GH-95728)

When 3.14 kicks in, it'll be a RuntimeError;
the test will correctly fail then.

3 years agoFix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)
Erlend E. Aasland [Mon, 8 Aug 2022 08:58:29 +0000 (10:58 +0200)] 
Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729)

3 years agodocs: Fix a few typos (#94899)
Tim Gates [Mon, 8 Aug 2022 08:02:45 +0000 (18:02 +1000)] 
docs: Fix a few typos (#94899)

- overriden => overridden
- calcualation => calculation

Signed-off-by: Tim Gates <tim.gates@iress.com>
3 years agoFix documentation typo for functools.cmp_to_key (GH-95766)
Andrzej Bartosiński [Mon, 8 Aug 2022 06:49:48 +0000 (08:49 +0200)] 
Fix documentation typo for functools.cmp_to_key (GH-95766)

3 years agogh-88339: enable fast seeking of uncompressed unencrypted zipfile.ZipExtFile (GH...
JuniorJPDJ [Sat, 6 Aug 2022 23:21:23 +0000 (01:21 +0200)] 
gh-88339: enable fast seeking of uncompressed unencrypted zipfile.ZipExtFile (GH-27737)

Avoid reading all of the intermediate data in uncompressed items in a zip file when the user seeks forward.

Contributed by: @JuniorJPDJ

3 years agogh-94635: Fixup sqlite3 'Introduction' seealso note (#95751)
Erlend E. Aasland [Sat, 6 Aug 2022 21:30:26 +0000 (23:30 +0200)] 
gh-94635: Fixup sqlite3 'Introduction' seealso note (#95751)

In gh-95269, the seealso note incorrectly ended up in
the 'Tutorial' section.

3 years ago\bgh-95376: Add test for names containing null (#GH-5394)
Sion Kang [Sat, 6 Aug 2022 16:53:19 +0000 (01:53 +0900)] 
\bgh-95376: Add test for names containing null (#GH-5394)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-95395: Add argument type error test (GH-95412)
Sion Kang [Sat, 6 Aug 2022 16:52:53 +0000 (01:52 +0900)] 
gh-95395: Add argument type error test (GH-95412)

3 years agogh-95155: Update "Using Python on a Mac" documentation (GH-95284)
Howie Zhao [Sat, 6 Aug 2022 16:50:28 +0000 (00:50 +0800)] 
gh-95155: Update "Using Python on a Mac" documentation (GH-95284)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agoFix typo in test_dataclasses.py (gh-95735)
da-woods [Sat, 6 Aug 2022 15:56:00 +0000 (16:56 +0100)] 
Fix typo in test_dataclasses.py (gh-95735)

`dataclass` was called as a function when it was almost certainly intended to be a decorator.

3 years agogh-95385 Fastpath for encoding dict to JSON (gh-95374)
Aivars Kalvāns [Sat, 6 Aug 2022 06:55:24 +0000 (09:55 +0300)] 
gh-95385 Fastpath for encoding dict to JSON (gh-95374)

3 years agogh-93243: Make smtpd private before porting its users (GH-93246)
Oleg Iarygin [Sat, 6 Aug 2022 00:41:29 +0000 (03:41 +0300)] 
gh-93243: Make smtpd private before porting its users (GH-93246)

gh-93243

This PR is required to reduce diffs of the following porting (no need to either maintain documentation and tests consistent with each porting step, or try to port everything and remove smtpd in a single PR).

Automerge-Triggered-By: GH:warsaw
3 years agogh-86943: implement `pathlib.WindowsPath.is_mount()` (GH-31458)
Barney Gale [Fri, 5 Aug 2022 22:37:44 +0000 (23:37 +0100)] 
gh-86943: implement `pathlib.WindowsPath.is_mount()` (GH-31458)

Have `pathlib.WindowsPath.is_mount()` call `ntpath.ismount()`. Previously it raised `NotImplementedError` unconditionally.

https://bugs.python.org/issue42777

3 years agogh-95251: IDLE - Add What's New section to README (#95688)
Terry Jan Reedy [Fri, 5 Aug 2022 21:15:18 +0000 (17:15 -0400)] 
gh-95251: IDLE - Add What's New section to README (#95688)

Document what I (TJR) currently do for 3.10/3.11.

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
3 years agogh-89362: Doc IDLE menu and search (#95697)
Terry Jan Reedy [Fri, 5 Aug 2022 16:21:45 +0000 (12:21 -0400)] 
gh-89362: Doc IDLE menu and search (#95697)

Update menu item position and capitalization.
Add paragraph about search.
For help.html, include save-as addition.

3 years agoUpdate the magic number in test_util.py (#95714)
Pablo Galindo Salgado [Fri, 5 Aug 2022 14:42:39 +0000 (15:42 +0100)] 
Update the magic number in test_util.py (#95714)

3 years agoRemove draft notice from 3.11 What's new (#95713)
Pablo Galindo Salgado [Fri, 5 Aug 2022 14:40:41 +0000 (15:40 +0100)] 
Remove draft notice from 3.11 What's new (#95713)

3 years agogh-93744: Remove configure --with-cxx-main option (#95651)
Victor Stinner [Fri, 5 Aug 2022 11:26:58 +0000 (13:26 +0200)] 
gh-93744: Remove configure --with-cxx-main option (#95651)

Remove the "configure --with-cxx-main" build option: it didn't work
for many years. Remove the MAINCC variable from configure and
Makefile.

The MAINCC variable was added by the issue gh-42471: commit
0f48d98b740110a672b62d467af192ec160e56ba. Previously, --with-cxx-main
was named --with-cxx.

Keep CXX and LDCXXSHARED variables, even if they are no longer used
by Python build system.

3 years agogh-95573: Reduce test data size in test_asyncio/test_ssl.py (GH-95668)
Fantix King [Fri, 5 Aug 2022 08:45:36 +0000 (04:45 -0400)] 
gh-95573: Reduce test data size in test_asyncio/test_ssl.py (GH-95668)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agoGH-95685: Fix rendering of the string documentation (#95686)
Mariatta Wijaya [Fri, 5 Aug 2022 07:41:02 +0000 (00:41 -0700)] 
GH-95685: Fix rendering of the string documentation (#95686)

There's an extra underlines that messed the rest of the documentation rendering.

Closes #95685

3 years agogh-95573: Fix a mistake in asyncio ssl tests suppressing all logs (#95687)
Fantix King [Fri, 5 Aug 2022 07:33:35 +0000 (03:33 -0400)] 
gh-95573: Fix a mistake in asyncio ssl tests suppressing all logs (#95687)

3 years agoGH-90997: Document CACHEs (GH-95694)
Brandt Bucher [Fri, 5 Aug 2022 05:45:05 +0000 (22:45 -0700)] 
GH-90997: Document CACHEs (GH-95694)

3 years agogh-65802: IDLE - explain SaveAs and extensions (#95690)
Terry Jan Reedy [Fri, 5 Aug 2022 01:51:14 +0000 (21:51 -0400)] 
gh-65802: IDLE - explain SaveAs and extensions (#95690)

File name extensions may or may not be shown for the current name
and are added in an OS-dependent manner if not given for the new
name.

3 years agogh-94673: Add Per-Interpreter tp_subclasses for Static Builtin Types (gh-95301)
Eric Snow [Fri, 5 Aug 2022 01:26:59 +0000 (19:26 -0600)] 
gh-94673: Add Per-Interpreter tp_subclasses for Static Builtin Types (gh-95301)

3 years agogh-94619: Remove long deprecated methods module_repr() and load_module() (#94624)
Barry Warsaw [Fri, 5 Aug 2022 00:24:26 +0000 (17:24 -0700)] 
gh-94619: Remove long deprecated methods module_repr() and load_module() (#94624)

* gh-94619: Remove long deprecated methods module_repr() and load_module()

Closes #94619

* Update Misc/NEWS.d/next/Library/2022-07-06-14-57-33.gh-issue-94619.PRqKVX.rst

Fix typo

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Brett Cannon <brett@python.org>
3 years agoDocs: sqlite3 docs fixup (#95681)
Erlend Egeberg Aasland [Thu, 4 Aug 2022 22:06:46 +0000 (00:06 +0200)] 
Docs: sqlite3 docs fixup (#95681)

- Disable links to the module itself
- Fix link indent
- Consistent ref markup

3 years agogh-95271: Extract placeholders howto from sqlite3 tutorial (#95522)
Erlend Egeberg Aasland [Thu, 4 Aug 2022 20:41:18 +0000 (22:41 +0200)] 
gh-95271: Extract placeholders howto from sqlite3 tutorial (#95522)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 years agoRemove unnecessary text from documentation. (GH-95670)
fluesvamp [Thu, 4 Aug 2022 20:18:05 +0000 (15:18 -0500)] 
Remove unnecessary text from documentation. (GH-95670)

3 years agogh-95273: Improve documented return values and exceptions raised for sqlite3 class...
Erlend Egeberg Aasland [Thu, 4 Aug 2022 19:58:10 +0000 (21:58 +0200)] 
gh-95273: Improve documented return values and exceptions raised for sqlite3 class methods (#95530)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-95656: Enable the sqlite3 load extension API in Windows build (#95662)
Erlend Egeberg Aasland [Thu, 4 Aug 2022 19:26:13 +0000 (21:26 +0200)] 
gh-95656: Enable the sqlite3 load extension API in Windows build (#95662)

3 years agoDocs: fix two typos in the sqlite3 docs (#95661)
ceh [Thu, 4 Aug 2022 18:25:53 +0000 (20:25 +0200)] 
Docs: fix two typos in the sqlite3 docs (#95661)

- statment => statement
- transaciton => transaction

3 years agogh-94673: Recover Weaklist Lookup Performance (gh-95544)
Eric Snow [Thu, 4 Aug 2022 17:28:15 +0000 (11:28 -0600)] 
gh-94673: Recover Weaklist Lookup Performance (gh-95544)

gh-95302 seems to have introduced a small performance regression. Here we make some minor changes to recover that lost performance.

3 years agogh-90110: Update the C Analyzer Tool Whitelists (gh-95628)
Eric Snow [Thu, 4 Aug 2022 16:47:02 +0000 (10:47 -0600)] 
gh-90110: Update the C Analyzer Tool Whitelists (gh-95628)

3 years agoFix links to old SF bugs (#95648)
Serhiy Storchaka [Thu, 4 Aug 2022 16:12:35 +0000 (19:12 +0300)] 
Fix links to old SF bugs (#95648)

3 years agogh-95587: Fixes some upgrade detection issues in the Windows installer (GH-95631)
Steve Dower [Thu, 4 Aug 2022 16:12:08 +0000 (17:12 +0100)] 
gh-95587: Fixes some upgrade detection issues in the Windows installer (GH-95631)

3 years agogh-93274: Make vectorcall safe on mutable classes & inherit it by default (#95437)
Petr Viktorin [Thu, 4 Aug 2022 15:19:29 +0000 (17:19 +0200)] 
gh-93274: Make vectorcall safe on mutable classes & inherit it by default (#95437)