]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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.
Aivars Kalvāns [Sat, 6 Aug 2022 06:55:24 +0000 (09:55 +0300)]
gh-95385 Fastpath for encoding dict to JSON (gh-95374)
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
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
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>
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.
Pablo Galindo Salgado [Fri, 5 Aug 2022 14:42:39 +0000 (15:42 +0100)]
Update the magic number in test_util.py (#95714)
Pablo Galindo Salgado [Fri, 5 Aug 2022 14:40:41 +0000 (15:40 +0100)]
Remove draft notice from 3.11 What's new (#95713)
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.
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>
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
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)
Brandt Bucher [Fri, 5 Aug 2022 05:45:05 +0000 (22:45 -0700)]
GH-90997: Document CACHEs (GH-95694)
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.
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)
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>
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
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>
fluesvamp [Thu, 4 Aug 2022 20:18:05 +0000 (15:18 -0500)]
Remove unnecessary text from documentation. (GH-95670)
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>
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)
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
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.
Eric Snow [Thu, 4 Aug 2022 16:47:02 +0000 (10:47 -0600)]
gh-90110: Update the C Analyzer Tool Whitelists (gh-95628)
Serhiy Storchaka [Thu, 4 Aug 2022 16:12:35 +0000 (19:12 +0300)]
Fix links to old SF bugs (#95648)
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)
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)
Petr Viktorin [Thu, 4 Aug 2022 14:13:45 +0000 (16:13 +0200)]
gh-95388: Deprecate creating immutable types with mutable bases (GH-95533)
Irit Katriel [Thu, 4 Aug 2022 13:59:32 +0000 (14:59 +0100)]
gh-87092: create a 'jump target label' abstraction so that the compiler's codegen stage does not work directly with basic blocks (GH-95398)
Kumar Aditya [Thu, 4 Aug 2022 13:57:44 +0000 (19:27 +0530)]
GH-95289: Always call uncancel() when parent cancellation is requested (#95602)
Co-authored-by: Guido van Rossum <guido@python.org>
Ken Jin [Thu, 4 Aug 2022 13:53:31 +0000 (21:53 +0800)]
gh-94936: C getters: co_varnames, co_cellvars, co_freevars (#95008)
Łukasz Langa [Thu, 4 Aug 2022 13:51:38 +0000 (15:51 +0200)]
gh-91323: Revert "Allow overriding a future compliance check in asyncio.Task (GH-32197)" (GH-95442)
This reverts commit
d4bb38f82bf18b00db3129031ce4969b6f0caab9 .
Serhiy Storchaka [Thu, 4 Aug 2022 10:30:05 +0000 (13:30 +0300)]
gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642)
It updates links which redirect to HTTPS with different authority or
path.
Terry Jan Reedy [Thu, 4 Aug 2022 07:35:42 +0000 (03:35 -0400)]
gh-95638: Update idlelib README file and menu lists (#95639)
Serhiy Storchaka [Thu, 4 Aug 2022 07:13:49 +0000 (10:13 +0300)]
gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527)
If an HTTP link is redirected to a same looking HTTPS link, the latter can
be used directly without changes in readability and behavior.
It protects from a men-in-the-middle attack.
This change does not affect Python examples.
Terry Jan Reedy [Thu, 4 Aug 2022 02:17:57 +0000 (22:17 -0400)]
gh-95191: IDLE Prompts entry for What's New 3.10 (#95633)
Terry Jan Reedy [Thu, 4 Aug 2022 00:56:05 +0000 (20:56 -0400)]
gh-95191: IDLE Prompts entry for Whatnew 3.11 (#95632)
Miro Hrončok [Wed, 3 Aug 2022 23:19:36 +0000 (01:19 +0200)]
gh-94675: Add a regression test for rjsmin re slowdown (GH-94685)
Adds a regression test for an re slowdown observed by rjsmin.
Uses multiprocessing to kill the test after SHORT_TIMEOUT.
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Co-authored-by: Christian Heimes <christian@python.org>
Hugo van Kemenade [Wed, 3 Aug 2022 21:47:20 +0000 (00:47 +0300)]
gh-90817: Use .. deprecated-removed:: when removal version known (#94960)
Steve Dower [Wed, 3 Aug 2022 21:18:51 +0000 (22:18 +0100)]
gh-94399: Restore PATH search behaviour of py.exe launcher for '/usr/bin/env' shebang lines (GH-95582)
Jo, Yunjin [Wed, 3 Aug 2022 21:16:15 +0000 (06:16 +0900)]
gh-95597: Fix typo in Lib directory files (#95599)
Ethan Furman [Wed, 3 Aug 2022 21:11:20 +0000 (14:11 -0700)]
[Enum] add whatsnew entries (GH-95455)
Derek Kim [Wed, 3 Aug 2022 20:55:03 +0000 (15:55 -0500)]
gh-95423: Update winreg.DeleteKeyEx documentation and remove dynamic function load (GH-95521)
Erlend Egeberg Aasland [Wed, 3 Aug 2022 20:21:15 +0000 (22:21 +0200)]
gh-95273: Align sqlite3 const doc refs with the devguide recommendations (#95525)
Stéphane Bidoul [Wed, 3 Aug 2022 19:26:51 +0000 (21:26 +0200)]
gh-95609: update bundled pip to 22.2.2 (gh-95610)
CAM Gerlach [Wed, 3 Aug 2022 19:23:20 +0000 (14:23 -0500)]
gh-91207: Fix CSS bug in Windows CHM help file and add deprecation message (GH-95607)
Mark Shannon [Wed, 3 Aug 2022 17:56:24 +0000 (18:56 +0100)]
GH-92678: Fix tp_dictoffset inheritance. (GH-95596)
* Add test for inheriting explicit __dict__ and weakref.
* Restore 3.10 behavior for multiple inheritance of C extension classes that store their dictionary at the end of the struct.
Erlend Egeberg Aasland [Tue, 2 Aug 2022 22:17:09 +0000 (00:17 +0200)]
Docs: fix incorrect formatting in sqlite3 CLI docs (#95581)
Christian Heimes [Tue, 2 Aug 2022 19:00:41 +0000 (21:00 +0200)]
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
CAM Gerlach [Tue, 2 Aug 2022 07:42:35 +0000 (02:42 -0500)]
gh-95516: Add param types and clarify param descriptions of LogRecord (GH-95517)
Erlend Egeberg Aasland [Tue, 2 Aug 2022 04:23:42 +0000 (06:23 +0200)]
gh-83270: Update IDLE's credits (#95528)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Tue, 2 Aug 2022 04:10:39 +0000 (00:10 -0400)]
gh-95191: IDLE: Include prompts when saving Shell #95554
Steve Dower [Mon, 1 Aug 2022 23:57:46 +0000 (00:57 +0100)]
gh-92219: Clarify that some options to the installer may break the install (GH-95548)
Eric Snow [Mon, 1 Aug 2022 23:13:23 +0000 (17:13 -0600)]
gh-90110: Get the C Analyzer Tool Working Again (gh-95545)
Brandt Bucher [Mon, 1 Aug 2022 18:02:56 +0000 (11:02 -0700)]
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
Eugene Triguba [Mon, 1 Aug 2022 16:52:39 +0000 (11:52 -0500)]
gh-91447: Fix findtext to only give an empty string on None (GH-91486)
The API documentation for [findtext](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.findtext) states that this function gives back an empty string on "no text content." With the previous implementation, this would give back a empty string even on text content values such as 0 or False. This patch attempts to resolve that by only giving back an empty string if the text attribute is set to `None`. Resolves #91447.
Automerge-Triggered-By: GH:gvanrossum
Oleg Iarygin [Mon, 1 Aug 2022 16:30:15 +0000 (19:30 +0300)]
gh-95417: Quick fix for "ULONG_PTR differs in levels of indirection from void *" (GH-95538)
Jacob Walls [Mon, 1 Aug 2022 16:02:09 +0000 (12:02 -0400)]
gh-95173: Add a regression test for sorting tuples containing None (#95464)
neonene [Mon, 1 Aug 2022 15:37:32 +0000 (00:37 +0900)]
gh-95445: Ensure Windows msi uninstalls document folder successfully (GH-95465)
Alex Hedges [Mon, 1 Aug 2022 15:06:43 +0000 (11:06 -0400)]
no-issue: Fix typo of "thrid" instead of "third" in dis docs (gh-95510)
Mark Shannon [Mon, 1 Aug 2022 13:34:54 +0000 (14:34 +0100)]
GH-95245: Store object values and dict pointers in single tagged pointer. (GH-95278)
Dong-hee Na [Mon, 1 Aug 2022 13:15:07 +0000 (22:15 +0900)]
gh-91146: More reduce allocation size of list from str.split/rsplit (gh-95493)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Noam Cohen [Mon, 1 Aug 2022 13:07:35 +0000 (16:07 +0300)]
gh-95007: Remove the NoneType return converter from Argument Clinic Doc (#95529)
The converter was removed in
74b5e4ce80858ac5c7d03411cb8cce7e6865f181
Petr Viktorin [Mon, 1 Aug 2022 13:04:14 +0000 (15:04 +0200)]
gh-93649: Split heaptype tests from _testcapimodule.c (GH-95386)
This removes the unused negative_dictoffset function:
the type this function would create is available as
_testcapi.HeapCTypeWithNegativeDict
Erlend Egeberg Aasland [Mon, 1 Aug 2022 10:25:16 +0000 (12:25 +0200)]
gh-77617: Add sqlite3 command-line interface (#95026)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Erlend Egeberg Aasland [Mon, 1 Aug 2022 09:15:07 +0000 (11:15 +0200)]
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523)
Terry Jan Reedy [Mon, 1 Aug 2022 05:06:13 +0000 (01:06 -0400)]
gh-95511: IDLE - fix Shell context menu copy-with-prompts bug (#95512)
If one selects whole lines, as the sidebar makes easy, do not
add an extra line. Only move the end of a selection to the
beginning of the next line when not already at the beginning
of a line. (Also improve the surrounding code.)
markus-sus [Mon, 1 Aug 2022 02:42:13 +0000 (04:42 +0200)]
bpo-42037: Corrected request dependencies in CookieJar functions (GH-23112)
Serhiy Storchaka [Sun, 31 Jul 2022 20:47:28 +0000 (23:47 +0300)]
IDLE: Fix docs URL in the About window (#28417)
Pablo Galindo Salgado [Sun, 31 Jul 2022 15:33:56 +0000 (16:33 +0100)]
bpo-45445: Revert "bpo-45445: Fail if an invalid X-option is provided in the command line (GH-28823)" (#94745)
Dong-hee Na [Sun, 31 Jul 2022 03:14:53 +0000 (12:14 +0900)]
gh-91146: Reduce allocation size of list from str.split()/rsplit() (gh-95473)
Terry Jan Reedy [Sun, 31 Jul 2022 01:09:07 +0000 (21:09 -0400)]
gh-95471: IDLE - Tweak Edit menu (#95481)
Move `Select All` above `Cut` as it is used with `Cut` and `Copy` but not `Paste`. Add a separator between `Replace` and `Go to Line` to separate items that belong to the 'Edit-find' (above) and 'Edit-show' (below) IDLE github project topics.
Erlend Egeberg Aasland [Sat, 30 Jul 2022 23:24:15 +0000 (01:24 +0200)]
gh-94635: Add Reference, How-to, and Concepts headings to sqlite3 docs (#94636)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Zachary Ware [Sat, 30 Jul 2022 22:21:08 +0000 (17:21 -0500)]
Doctest cleanups (GH-95436)
* GHA: Don't hide doctest output
* Enable doctests in math.rst
* Squash warnings in nntplib.rst doctests
* Squash warning in turtle.rst doctest
* Squash warnings in whatsnew/3.2.rst doctests
* Treat warnings as errors in Doc/ doctests
Terry Jan Reedy [Sat, 30 Jul 2022 19:57:37 +0000 (15:57 -0400)]
gh-90654: IDLE - Insert blank line in NEWS.txt (#95478)
Needed for backports.
Robert O'Shea [Sat, 30 Jul 2022 07:42:21 +0000 (08:42 +0100)]
gh-95454: Replace truthy/falsy with true/false (GH-95456)
Serhiy Storchaka [Sat, 30 Jul 2022 06:16:22 +0000 (09:16 +0300)]
gh-94938: Fix test (GH-95396)
Erlend Egeberg Aasland [Sat, 30 Jul 2022 04:42:13 +0000 (06:42 +0200)]
gh-95411: IDLE - Enable using the module browser with .pyw files (#95397)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Erlend Egeberg Aasland [Fri, 29 Jul 2022 19:27:15 +0000 (21:27 +0200)]
gh-95273: Relocate sqlite3 enable load extension note (#95430)
Steve Dower [Fri, 29 Jul 2022 16:24:56 +0000 (17:24 +0100)]
gh-94302: Clarify use of the 'open' operation in os.startfile (GH-95441)
Christian Heimes [Fri, 29 Jul 2022 14:42:09 +0000 (16:42 +0200)]
gh-95415: Make availability directive consistent (GH-95416)
Erlend Egeberg Aasland [Fri, 29 Jul 2022 12:31:41 +0000 (14:31 +0200)]
gh-95432: Fixup sqlite3 tutorial example (#95431)
- the insert statement should have five placeholders, not four
- missing ... in the multiline row list
Oleg Iarygin [Fri, 29 Jul 2022 11:48:11 +0000 (14:48 +0300)]
gh-94512: Fix forced arg format in AC-processed resource (GH-94515)
Erlend Egeberg Aasland [Fri, 29 Jul 2022 09:53:23 +0000 (11:53 +0200)]
gh-95273: Improve sqlite3 class descriptions (#95379)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Erlend Egeberg Aasland [Fri, 29 Jul 2022 07:42:22 +0000 (09:42 +0200)]
gh-95273: Move sqlite3 executemany examples from reference to tutorial (#95351)
Erlend Egeberg Aasland [Fri, 29 Jul 2022 07:40:44 +0000 (09:40 +0200)]
gh-95273: Condense sqlite3 executescript example (#95383)
Eric Snow [Fri, 29 Jul 2022 01:23:47 +0000 (19:23 -0600)]
gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types (#95302)
* Store tp_weaklist on the interpreter state for static builtin types.
* Factor out _PyStaticType_GET_WEAKREFS_LISTPTR().
* Add _PyStaticType_ClearWeakRefs().
* Add a comment about how _PyStaticType_ClearWeakRefs() loops.
* Document the change.
* Update Doc/whatsnew/3.12.rst
* Fix a typo.
BenjaminHelyer [Fri, 29 Jul 2022 00:09:51 +0000 (19:09 -0500)]
Improve documentation for adding datetime and timedelta (gh-95403)
Erlend Egeberg Aasland [Thu, 28 Jul 2022 23:04:26 +0000 (01:04 +0200)]
gh-89610: Add .pyi as a recognised extension for IDLE on macOS (#95393)
This allows opening stub files by double clicking on them in the Finder.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Raghunandan Bhat [Thu, 28 Jul 2022 22:48:33 +0000 (18:48 -0400)]
gh-43414: os.get_terminal_size() now uses the actual file descriptor on Windows instead of mapping to standard handles (#93203)
Jingxuan He [Thu, 28 Jul 2022 22:42:51 +0000 (00:42 +0200)]
Fix misused variable that was preventing permutations of classes from being tested (GH-93935)
[object Object] [Thu, 28 Jul 2022 22:38:56 +0000 (15:38 -0700)]
gh-86128: Add warning to ThreadPoolExecutor docs about atexit behaviour (GH-94008)
Pamela Fox [Thu, 28 Jul 2022 22:32:16 +0000 (15:32 -0700)]
Fix Unicode doc and replace use of macro with PyMem_New function (GH-94088)
JustAnotherArchivist [Thu, 28 Jul 2022 22:12:27 +0000 (22:12 +0000)]
gh-59200: Clarify `PyLong_FromString` documentation (GH-94363)
Oleg Iarygin [Thu, 28 Jul 2022 22:09:46 +0000 (01:09 +0300)]
gh-94512: Fix forced arg format in AC-processed overlapped (GH-94516)
Steve Dower [Thu, 28 Jul 2022 20:11:17 +0000 (21:11 +0100)]
gh-95359: Fix py.exe launcher handling of per-user py.ini and command names (GH-95399)
Ken Jin [Thu, 28 Jul 2022 16:22:24 +0000 (00:22 +0800)]
Update link to faster cpython benchmarks (GH-95391)
Kumar Aditya [Thu, 28 Jul 2022 15:47:54 +0000 (21:17 +0530)]
GH-95097: fix `asyncio.run` for tasks without `uncancel` method (#95211)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Irit Katriel [Thu, 28 Jul 2022 10:38:46 +0000 (11:38 +0100)]
gh-95369: add missing decref in error case of exception group's split (GH-95370)
Honglin Zhu [Thu, 28 Jul 2022 10:00:34 +0000 (18:00 +0800)]
gh-95355: Check tokens[0] after allocating memory (GH-95356)
#95355
Automerge-Triggered-By: GH:pablogsal