]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Nikita Sobolev [Sun, 2 Jan 2022 23:30:54 +0000 (02:30 +0300)]
bpo-46229: remove `CODE_OF_CONDUCT.md` to use org default (GH-30342)
Automerge-Triggered-By: GH:Mariatta
Irit Katriel [Sun, 2 Jan 2022 23:22:42 +0000 (23:22 +0000)]
bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. (GH-30289)
Jade Lovelace [Sun, 2 Jan 2022 20:16:25 +0000 (12:16 -0800)]
argparse docs: prog default is the basename of argv[0] (GH-30298)
Benjamin Peterson [Sun, 2 Jan 2022 20:08:48 +0000 (14:08 -0600)]
Update copyright year to 2022. (GH-30335)
Automerge-Triggered-By: GH:benjaminp
Tim Peters [Sun, 2 Jan 2022 19:18:20 +0000 (13:18 -0600)]
bpo-46218: Change long_pow() to sliding window algorithm (GH-30319)
* bpo-46218: Change long_pow() to sliding window algorithm
The primary motivation is to eliminate long_pow's reliance on that the number of bits in a long "digit" is a multiple of 5. Now it no longer cares how many bits are in a digit.
But the sliding window approach also allows cutting the precomputed table of small powers in half, which reduces initialization overhead enough that the approach pays off for smaller exponents too. Depending on exponent bit patterns, a sliding window may also be able to save some bigint multiplies (sometimes when at least 5 consecutive exponent bits are 0, regardless of their starting bit position modulo 5).
Note: boosting the window width to 6 didn't work well overall. It give marginal speed improvements for huge exponents, but the increased overhead (the small-power table needs twice as many entries) made it a loss for smaller exponents.
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Nikita Sobolev [Sun, 2 Jan 2022 18:33:20 +0000 (21:33 +0300)]
bpo-46196: document method cmd.Cmd.columnize (#30303)
The method is already written and tested, now it's officially public.
Hugo van Kemenade [Sun, 2 Jan 2022 16:51:56 +0000 (18:51 +0200)]
bpo-45903: Fix typo in What's New: Signature.from_builtin is removed (GH-29813)
Irit Katriel [Sun, 2 Jan 2022 09:34:03 +0000 (09:34 +0000)]
bpo-45615: Add missing test for printing traceback for non-exception. Fix traceback.py (GH-30091)
Raymond Hettinger [Sat, 1 Jan 2022 18:37:26 +0000 (10:37 -0800)]
bpo-46095: Improve SeqIter documentation. (GH-30316)
Raymond Hettinger [Sat, 1 Jan 2022 17:49:55 +0000 (09:49 -0800)]
bpo-46079: Replace external link that is down for maintenance. (GH-30315)
Mark Dickinson [Fri, 31 Dec 2021 19:52:27 +0000 (19:52 +0000)]
bpo-37295: More direct computation of power-of-two factor in math.comb (GH-30313)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sebastian Pipping [Fri, 31 Dec 2021 09:57:00 +0000 (10:57 +0100)]
bpo-45321: Add missing error codes to module `xml.parsers.expat.errors` (GH-30188)
The idea is to ensure that module `xml.parsers.expat.errors`
contains all known error codes and messages,
even when CPython is compiled or run with an outdated version of libexpat.
https://bugs.python.org/issue45321
Jason R. Coombs [Fri, 31 Dec 2021 03:39:24 +0000 (22:39 -0500)]
bpo-46118: Make sure importlib.resources is included. (GH-30311)
Jason R. Coombs [Fri, 31 Dec 2021 02:17:05 +0000 (21:17 -0500)]
bpo-46109: Separate out files relating to importlib.resources (GH-30160)
* Separate out files relating to importlib.resources
* Update Introduction to direct readers to the submodule documentation.
* Create separate file for abcs relating to resources.
* Move abc docs back to where they were.
Jason R. Coombs [Fri, 31 Dec 2021 02:00:48 +0000 (21:00 -0500)]
bpo-46118: Move importlib.resources to its own package. (#30176)
* bpo-46118: Move importlib.resources to its own package.
* Expand compatibility shims with documentation and explicit imports.
Hugo van Kemenade [Fri, 31 Dec 2021 00:16:27 +0000 (02:16 +0200)]
bpo-46178: Remove/rename redundant Travis CI code (#30309)
Nikita Sobolev [Thu, 30 Dec 2021 21:26:01 +0000 (00:26 +0300)]
bpo-46178: remove unusued `.travis.yml` file (#30257)
* bpo-46178: remove unusued `.travis.yml` file
* Delete 2021-12-26-12-35-41.bpo-46178.Aw1TZg.rst
Nikita Sobolev [Thu, 30 Dec 2021 21:18:37 +0000 (00:18 +0300)]
bpo-46184: remove `netlify.toml` (#30272)
* bpo-46184: remove `netlify.toml`
* Delete runtime.txt
* Delete requirements.txt
* Revert "Delete requirements.txt"
This reverts commit
9aa4f0631f9d206ed7fddf37b43a24ec4e90fa7c .
Nikita Sobolev [Thu, 30 Dec 2021 20:24:46 +0000 (23:24 +0300)]
Delete `FUNDING.yml`, since there's an organisation default (#30294)
andrei kulakov [Thu, 30 Dec 2021 07:45:06 +0000 (02:45 -0500)]
bpo-45853: Fix misspelling and unused import in pathlib (GH-30292)
Dong-hee Na [Thu, 30 Dec 2021 03:35:45 +0000 (12:35 +0900)]
bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290)
Nikita Sobolev [Thu, 30 Dec 2021 01:30:13 +0000 (04:30 +0300)]
bpo-43424: Deprecate `webbrowser.MacOSXOSAScript._name` attribute (GH-30241)
Carlos Damazio [Wed, 29 Dec 2021 22:20:42 +0000 (19:20 -0300)]
closes docs: remove references to Py_USING_MEMORY_DEBUGGER (GH-30284)
Erlend Egeberg Aasland [Wed, 29 Dec 2021 19:39:49 +0000 (20:39 +0100)]
bpo-46185: Fix wrong version ref. in macOS installer ReadMe (GH-30278)
David CARLIER [Wed, 29 Dec 2021 13:52:29 +0000 (13:52 +0000)]
bpo-46176: mmap module adding MAP_STACK constant. (GH-30252)
Brandt Bucher [Tue, 28 Dec 2021 17:49:48 +0000 (09:49 -0800)]
bpo-46090: Allow PyThreadState.datastack_* members to be NULL (GH-30234)
Mark Dickinson [Tue, 28 Dec 2021 12:26:40 +0000 (12:26 +0000)]
bpo-37295: Speed up math.comb(n, k) for 0 <= k <= n <= 67 (GH-30275)
Dong-hee Na [Tue, 28 Dec 2021 02:05:50 +0000 (11:05 +0900)]
bpo-45189: Drop the "list_frozen" command from _test_embed. (GH-30273)
Xinhang Xu [Mon, 27 Dec 2021 18:36:55 +0000 (02:36 +0800)]
bpo-46055: Speed up binary shifting operators (GH-30044)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Mark Dickinson [Mon, 27 Dec 2021 18:04:36 +0000 (18:04 +0000)]
bpo-46055: Streamline inner loop for right shifts (#30243)
E-Paine [Sun, 26 Dec 2021 11:28:24 +0000 (11:28 +0000)]
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
Serhiy Storchaka [Sun, 26 Dec 2021 11:27:01 +0000 (13:27 +0200)]
bpo-43413: Revert changes in set.__init__ (GH-28403)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Serhiy Storchaka [Sun, 26 Dec 2021 11:22:44 +0000 (13:22 +0200)]
bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138)
Kumar Aditya [Sun, 26 Dec 2021 11:13:14 +0000 (16:43 +0530)]
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
David Gilbertson [Sun, 26 Dec 2021 11:11:08 +0000 (22:11 +1100)]
Fix typo in io.rst (GH-30218)
Joe [Sun, 26 Dec 2021 11:09:17 +0000 (19:09 +0800)]
doc: fix a typo in unittest.mock.rst (GH-30227)
Rafael Fontenelle [Sun, 26 Dec 2021 10:43:06 +0000 (07:43 -0300)]
docs: Fix typos and use anchor for internal link (GH-30236)
Serhiy Storchaka [Sun, 26 Dec 2021 10:38:19 +0000 (12:38 +0200)]
Remove a NEWS entry for bpo-45878 (GH-30259)
The docs linter complains about it, and in general news entries for such changes are not required.
Serhiy Storchaka [Sat, 25 Dec 2021 12:16:14 +0000 (14:16 +0200)]
bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050)
The registry() method of functools.singledispatch() functions checks now
the first argument or the first parameter annotation and raises a TypeError if it is
not supported. Previously unsupported "types" were ignored (e.g. typing.List[int])
or caused an error at calling time (e.g. list[int]).
Nikita Sobolev [Fri, 24 Dec 2021 21:36:09 +0000 (00:36 +0300)]
bpo-46120: State that `|` is preferred over `Union` (GH-30222)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Nikita Sobolev [Fri, 24 Dec 2021 08:07:50 +0000 (11:07 +0300)]
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
Ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser`
Gregory P. Smith [Fri, 24 Dec 2021 03:17:40 +0000 (19:17 -0800)]
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
Kumar Aditya [Thu, 23 Dec 2021 10:25:12 +0000 (15:55 +0530)]
typos (#30239)
Kumar Aditya [Thu, 23 Dec 2021 09:17:31 +0000 (14:47 +0530)]
bpo-46157: fix typo in docs (GH-30237)
David Hewitt [Wed, 22 Dec 2021 13:07:46 +0000 (13:07 +0000)]
bpo-46140: take more Py_buffer arguments as const * (GH-30217)
Kumar Aditya [Wed, 22 Dec 2021 02:20:16 +0000 (07:50 +0530)]
bpo-46106: Update OpenSSL to 1.1.1m (GH-30211)
Co-authored-by: Ned Deily <nad@python.org>
Irit Katriel [Tue, 21 Dec 2021 10:12:26 +0000 (10:12 +0000)]
bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159)
Mark Dickinson [Tue, 21 Dec 2021 09:00:53 +0000 (09:00 +0000)]
Update potentially confusing note for mean. (GH-30174)
Pablo Galindo Salgado [Mon, 20 Dec 2021 15:43:26 +0000 (15:43 +0000)]
bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Serhiy Storchaka [Mon, 20 Dec 2021 10:23:05 +0000 (12:23 +0200)]
bpo-23819: Get rid of assert statements in test_asyncio (GH-30212)
To keep checks even if run tests with optimized Python.
Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly.
Alex Waygood [Mon, 20 Dec 2021 04:48:35 +0000 (04:48 +0000)]
bpo-46104: Fix example broken by GH-30148 (GH-30203)
See discussion in GH-30179.
Raymond Hettinger [Sun, 19 Dec 2021 21:05:46 +0000 (15:05 -0600)]
Revert "bpo-46131: add fastpath for PyFloat_Check() (GH-30200)" (GH-30208)
This reverts commit
2ef06d412531d1163dbc72877c88aedf3ed82a25 .
Matti Picus [Sun, 19 Dec 2021 20:24:30 +0000 (22:24 +0200)]
bpo-46131: add fastpath for PyFloat_Check() (#30200)
Alex Waygood [Sun, 19 Dec 2021 20:20:07 +0000 (20:20 +0000)]
bpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH-30109)
neonene [Sun, 19 Dec 2021 14:55:13 +0000 (23:55 +0900)]
bpo-46123: Disable optimizations for _freeze_module.exe on MSVC for faster building (GH-30181)
Andrew Svetlov [Sun, 19 Dec 2021 14:35:56 +0000 (16:35 +0200)]
bpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Rafael Fontenelle [Sun, 19 Dec 2021 14:06:35 +0000 (11:06 -0300)]
bpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
This allows the title to be translated to other languages without linking problems.
Kumar Aditya [Sun, 19 Dec 2021 11:22:40 +0000 (16:52 +0530)]
bpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with builtin `TimeoutError` (GH-30197)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Jason R. Coombs [Sun, 19 Dec 2021 02:28:49 +0000 (21:28 -0500)]
bpo-46125: Refactor tests to test traversable API directly. Includes changes from importlib_resources 5.4.0. (GH-30189)
Matthias Bussonnier [Sat, 18 Dec 2021 21:19:07 +0000 (22:19 +0100)]
bpo-46044: Fix doc typo introduced in GH-30043 (GH-30171)
See https://github.com/python/cpython/pull/30043/files#r770944718
My bad I likely messed up by using a repeat command in my editor
Automerge-Triggered-By: GH:merwok
Christian Heimes [Sat, 18 Dec 2021 14:54:02 +0000 (16:54 +0200)]
bpo-40280: Add Tools/wasm with helpers for cross building (GH-29984)
Co-authored-by: Ethan Smith <ethan@ethanhs.me>
Co-authored-by: Brett Cannon <brett@python.org>
andrei kulakov [Sat, 18 Dec 2021 14:23:34 +0000 (09:23 -0500)]
bpo-37578: glob.glob -- added include_hidden parameter (GH-30153)
Automerge-Triggered-By: GH:asvetlov
Vivek Vashist [Sat, 18 Dec 2021 13:52:51 +0000 (00:22 +1030)]
bpo-46113: Minor fixes in stdtypes documentation (GH-30167)
* Fix#1 - isidentifier() function output
* Fix#2 Update the str.splitlines() function parameter
* Fix#3 Removed unwanted full stop for str and bytes types double quotes examples.
* Fix#4 Updated class dict from **kwarg to **kwargs
Jakub Kulík [Sat, 18 Dec 2021 13:26:24 +0000 (14:26 +0100)]
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Steve Dower [Sat, 18 Dec 2021 13:05:45 +0000 (13:05 +0000)]
bpo-46088: Automatically detect or install bootstrap Python runtime when building from Visual Studio (GH-30143)
neonene [Sat, 18 Dec 2021 13:03:43 +0000 (22:03 +0900)]
bpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER to Py_ssize_t (GH-30175)
Alex Waygood [Sat, 18 Dec 2021 10:23:51 +0000 (10:23 +0000)]
bpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Christian Heimes [Fri, 17 Dec 2021 15:17:56 +0000 (17:17 +0200)]
bpo-44035: Show git diff after autoreconf and regen (GH-30117)
Christian Heimes [Fri, 17 Dec 2021 15:17:32 +0000 (17:17 +0200)]
bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
Mark Shannon [Fri, 17 Dec 2021 14:48:01 +0000 (14:48 +0000)]
bpo-46072: Add top level stats struct (GH-30169)
Irit Katriel [Fri, 17 Dec 2021 14:46:22 +0000 (14:46 +0000)]
bpo-45711: Remove type and traceback from exc_info (GH-30122)
* Do not PUSH/POP traceback or type to the stack as part of exc_info
* Remove exc_traceback and exc_type from _PyErr_StackItem
* Add to what's new, because this change breaks things like Cython
Julien Palard [Fri, 17 Dec 2021 12:55:03 +0000 (13:55 +0100)]
Doc: some rst linting. (GH-30149)
Serhiy Storchaka [Fri, 17 Dec 2021 09:10:55 +0000 (11:10 +0200)]
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
Yilei "Dolee" Yang [Fri, 17 Dec 2021 05:08:18 +0000 (21:08 -0800)]
Fix a typo in the message from make_ssl_certs. (GH-30152)
The file is utils.py not util.py.
Automerge-Triggered-By: GH:gpshead
Irit Katriel [Thu, 16 Dec 2021 23:00:13 +0000 (23:00 +0000)]
bpo-45635: Do not suppress errors in functions called from _PyErr_Display (GH-30073)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Jason R. Coombs [Thu, 16 Dec 2021 20:49:42 +0000 (15:49 -0500)]
bpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150)
* bpo-44893: Implement EntryPoint as simple class and deprecate tuple access in favor of attribute access. Syncs with importlib_metadata 4.8.1.
* Apply refactorings found in importlib_metadata 4.8.2.
Jason R. Coombs [Thu, 16 Dec 2021 20:48:35 +0000 (15:48 -0500)]
bpo-46105: Honor spec when generating requirement specs with urls and extras. (GH-30151)
Matthias Bussonnier [Thu, 16 Dec 2021 19:57:39 +0000 (20:57 +0100)]
bpo-46044: Annotate deprecated sdists formats (GH-30043)
While this page have deprecated informations it is still heavily index
by Google.
Discussed on twitter: https://twitter.com/brettsky/status/
1469465729082662916
Mark Shannon [Thu, 16 Dec 2021 15:56:01 +0000 (15:56 +0000)]
Better randomization of stats filenames. (GH-30145)
Irit Katriel [Thu, 16 Dec 2021 15:31:08 +0000 (15:31 +0000)]
bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098)
Ken Jin [Thu, 16 Dec 2021 14:29:59 +0000 (22:29 +0800)]
bpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir()` (GH-29962)
Mark Shannon [Thu, 16 Dec 2021 13:40:54 +0000 (13:40 +0000)]
bpo-46072: Document --enable-stats option. (GH-30139)
Brandt Bucher [Thu, 16 Dec 2021 11:08:20 +0000 (03:08 -0800)]
bpo-45829: Check `__getitem__`'s version for overflow before specializing (GH-30129)
* Check __getitem__'s version for overflow.
* Use SPEC_FAIL_OUT_OF_VERSIONS instead
Vivek Vashist [Thu, 16 Dec 2021 10:40:12 +0000 (21:10 +1030)]
Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial (GH-30110)
Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
Irit Katriel [Thu, 16 Dec 2021 09:12:24 +0000 (09:12 +0000)]
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060)
AN Long [Wed, 15 Dec 2021 16:35:21 +0000 (00:35 +0800)]
Remove spaces in empty lines (GH-30121)
Mark Shannon [Wed, 15 Dec 2021 15:32:32 +0000 (15:32 +0000)]
bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats (GH-30116)
* Simplify specialization stats collection macros.
* Add --enable-pystats option to configure.
* Update specialization summary script to handle larger number of kinds
Mark Shannon [Wed, 15 Dec 2021 15:03:42 +0000 (15:03 +0000)]
bpo-44525: Specialize for calls to type and other builtin classes with 1 argument. (GH-29942)
Vivek Vashist [Wed, 15 Dec 2021 11:24:38 +0000 (21:54 +1030)]
Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.
Automerge-Triggered-By: GH:asvetlov
Mark Shannon [Wed, 15 Dec 2021 10:30:09 +0000 (10:30 +0000)]
bpo-46039: Split yield from in two (GH-30035)
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE.
* Remove YIELD_FROM opcode.
Irit Katriel [Wed, 15 Dec 2021 10:08:26 +0000 (10:08 +0000)]
bpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099)
Mark Shannon [Tue, 14 Dec 2021 23:40:44 +0000 (23:40 +0000)]
Document new call opcodes for 3.11 (GH-30107)
Mark Shannon [Tue, 14 Dec 2021 18:22:44 +0000 (18:22 +0000)]
bpo-44525: Split calls into PRECALL and CALL (GH-30011)
* Add 3 new opcodes for calls: PRECALL_METHOD, CALL_NO_KW, CALL_KW.
* Update specialization to handle new CALL opcodes.
* Specialize call to method descriptors.
* Remove old CALL opcodes: CALL_FUNCTION, CALL_METHOD, CALL_METHOD_KW, CALL_FUNCTION_KW.
Irit Katriel [Tue, 14 Dec 2021 16:48:15 +0000 (16:48 +0000)]
bpo-45292: [PEP-654] add except* (GH-29581)
Vinay Sajip [Tue, 14 Dec 2021 16:46:07 +0000 (16:46 +0000)]
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
Alex Waygood [Tue, 14 Dec 2021 15:04:29 +0000 (15:04 +0000)]
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Christian Heimes [Tue, 14 Dec 2021 14:42:46 +0000 (16:42 +0200)]
bpo-46023: Skip build if module is marked as DISABLED (GH-30100)
Kumar Aditya [Tue, 14 Dec 2021 13:01:13 +0000 (18:31 +0530)]
bpo-23469: Delete Wing IDE configuration files (GH-30067)
Dong-hee Na [Tue, 14 Dec 2021 01:31:41 +0000 (10:31 +0900)]
bpo-45919: Remove out of date comment (GH-30090)
Eric Snow [Tue, 14 Dec 2021 01:04:05 +0000 (18:04 -0700)]
bpo-45953: Statically initialize the small ints. (gh-30092)
The array of small PyLong objects has been statically declared. Here I also statically initialize them. Consequently they are no longer initialized dynamically during runtime init.
I've also moved them under a new sub-struct in _PyRuntimeState, in preparation for static allocation and initialization of other global objects.
https://bugs.python.org/issue45953