]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agobpo-46140: take more Py_buffer arguments as const * (GH-30217)
David Hewitt [Wed, 22 Dec 2021 13:07:46 +0000 (13:07 +0000)] 
bpo-46140: take more Py_buffer arguments as const * (GH-30217)

3 years agobpo-46106: Update OpenSSL to 1.1.1m (GH-30211)
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>
3 years agobpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH...
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)

3 years agoUpdate potentially confusing note for mean. (GH-30174)
Mark Dickinson [Tue, 21 Dec 2021 09:00:53 +0000 (09:00 +0000)] 
Update potentially confusing note for mean. (GH-30174)

3 years agobpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)
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>
3 years agobpo-23819: Get rid of assert statements in test_asyncio (GH-30212)
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.

3 years agobpo-46104: Fix example broken by GH-30148 (GH-30203)
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.

3 years agoRevert "bpo-46131: add fastpath for PyFloat_Check() (GH-30200)" (GH-30208)
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.

3 years agobpo-46131: add fastpath for PyFloat_Check() (#30200)
Matti Picus [Sun, 19 Dec 2021 20:24:30 +0000 (22:24 +0200)] 
bpo-46131: add fastpath for PyFloat_Check() (#30200)

3 years agobpo-46076: Improve documentation for per-attribute docstrings with `__slots__` (GH...
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)

3 years agobpo-46123: Disable optimizations for _freeze_module.exe on MSVC for faster building...
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)

3 years agobpo-46129: Rewrite asyncio.locks tests with IsolatedAsyncioTestCase (GH-30198)
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>
3 years agobpo-46130: [docs] Add anchor for whatsnew/3.10 type hint section (GH-30199)
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.

3 years agobpo-42413: Replace `concurrent.futures.TimeoutError` and `asyncio.TimeoutError` with...
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>
3 years agobpo-46125: Refactor tests to test traversable API directly. Includes changes from...
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)

3 years agobpo-46044: Fix doc typo introduced in GH-30043 (GH-30171)
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
3 years agobpo-40280: Add Tools/wasm with helpers for cross building (GH-29984)
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>
3 years agobpo-37578: glob.glob -- added include_hidden parameter (GH-30153)
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
3 years agobpo-46113: Minor fixes in stdtypes documentation (GH-30167)
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

3 years agobpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
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>
3 years agobpo-46088: Automatically detect or install bootstrap Python runtime when building...
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)

3 years agobpo-40915: Avoid compiler warnings by fixing mmapmodule conversion from LARGE_INTEGER...
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)

3 years agobpo-46104: Reduce use of pre-PEP 526 syntax in typing docs (GH-30148)
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>
3 years agobpo-44035: Show git diff after autoreconf and regen (GH-30117)
Christian Heimes [Fri, 17 Dec 2021 15:17:56 +0000 (17:17 +0200)] 
bpo-44035: Show git diff after autoreconf and regen (GH-30117)

3 years agobpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)
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)

3 years agobpo-46072: Add top level stats struct (GH-30169)
Mark Shannon [Fri, 17 Dec 2021 14:48:01 +0000 (14:48 +0000)] 
bpo-46072:  Add top level stats struct (GH-30169)

3 years agobpo-45711: Remove type and traceback from exc_info (GH-30122)
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

3 years agoDoc: some rst linting. (GH-30149)
Julien Palard [Fri, 17 Dec 2021 12:55:03 +0000 (13:55 +0100)] 
Doc: some rst linting. (GH-30149)

3 years agobpo-46111: Fix unittest tests in optimized mode (GH-30163)
Serhiy Storchaka [Fri, 17 Dec 2021 09:10:55 +0000 (11:10 +0200)] 
bpo-46111: Fix unittest tests in optimized mode (GH-30163)

3 years agoFix a typo in the message from make_ssl_certs. (GH-30152)
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
3 years agobpo-45635: Do not suppress errors in functions called from _PyErr_Display (GH-30073)
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>
3 years agobpo-44893: Implement EntryPoint as simple class with attributes. (GH-30150)
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.

3 years agobpo-46105: Honor spec when generating requirement specs with urls and extras. (GH...
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)

3 years agobpo-46044: Annotate deprecated sdists formats (GH-30043)
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

3 years agoBetter randomization of stats filenames. (GH-30145)
Mark Shannon [Thu, 16 Dec 2021 15:56:01 +0000 (15:56 +0000)] 
Better randomization of stats filenames. (GH-30145)

3 years agobpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups...
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)

3 years agobpo-45755: [typing] Reveal class attributes of generic in generic aliases in `dir...
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)

3 years agobpo-46072: Document --enable-stats option. (GH-30139)
Mark Shannon [Thu, 16 Dec 2021 13:40:54 +0000 (13:40 +0000)] 
bpo-46072: Document --enable-stats option. (GH-30139)

3 years agobpo-45829: Check `__getitem__`'s version for overflow before specializing (GH-30129)
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

3 years agoFix the output of built-in iter() function example in Iterators (Section 9.8) of...
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>

3 years agobpo-28816: [doc] clarify that zipimport invokes importers only for python files ...
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)

3 years agoRemove spaces in empty lines (GH-30121)
AN Long [Wed, 15 Dec 2021 16:35:21 +0000 (00:35 +0800)] 
Remove spaces in empty lines (GH-30121)

3 years agobpo-46072: Add --with-pystats configure option to simplify gathering of VM stats...
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

3 years agobpo-44525: Specialize for calls to type and other builtin classes with 1 argument...
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)

3 years agoAdd Positional only arguments forward slash (/) to sorted() function in Built-in...
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
3 years agobpo-46039: Split yield from in two (GH-30035)
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.

3 years agobpo-26952: [argparse] clearer error when formatting an empty mutually… (GH-30099)
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)

3 years agoDocument new call opcodes for 3.11 (GH-30107)
Mark Shannon [Tue, 14 Dec 2021 23:40:44 +0000 (23:40 +0000)] 
Document new call opcodes for 3.11 (GH-30107)

3 years agobpo-44525: Split calls into PRECALL and CALL (GH-30011)
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.

3 years agobpo-45292: [PEP-654] add except* (GH-29581)
Irit Katriel [Tue, 14 Dec 2021 16:48:15 +0000 (16:48 +0000)] 
bpo-45292: [PEP-654] add except* (GH-29581)

3 years agobpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
Vinay Sajip [Tue, 14 Dec 2021 16:46:07 +0000 (16:46 +0000)] 
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)

3 years agobpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
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>
3 years agobpo-46023: Skip build if module is marked as DISABLED (GH-30100)
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)

3 years agobpo-23469: Delete Wing IDE configuration files (GH-30067)
Kumar Aditya [Tue, 14 Dec 2021 13:01:13 +0000 (18:31 +0530)] 
bpo-23469: Delete Wing IDE configuration files (GH-30067)

3 years agobpo-45919: Remove out of date comment (GH-30090)
Dong-hee Na [Tue, 14 Dec 2021 01:31:41 +0000 (10:31 +0900)] 
bpo-45919: Remove out of date comment (GH-30090)

3 years agobpo-45953: Statically initialize the small ints. (gh-30092)
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

3 years agobpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093)
Vinay Sajip [Tue, 14 Dec 2021 00:53:37 +0000 (00:53 +0000)] 
bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093)

3 years agobpo-45949: Pure Python freeze module for cross builds (GH-29899)
Christian Heimes [Mon, 13 Dec 2021 19:48:46 +0000 (21:48 +0200)] 
bpo-45949: Pure Python freeze module for cross builds (GH-29899)

3 years agobpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
Gareth Rees [Mon, 13 Dec 2021 17:22:43 +0000 (17:22 +0000)] 
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)

3 years agobpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082)
Dong-hee Na [Mon, 13 Dec 2021 12:57:59 +0000 (21:57 +0900)] 
bpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082)

3 years agoClarify new_event_loop return value. (GH-30078)
Paul Bryan [Mon, 13 Dec 2021 12:39:22 +0000 (04:39 -0800)] 
Clarify new_event_loop return value. (GH-30078)

3 years agobpo-16594: Add allow_reuse_port on socketserver (GH-30072)
AN Long [Mon, 13 Dec 2021 12:14:17 +0000 (12:14 +0000)] 
bpo-16594: Add allow_reuse_port on socketserver (GH-30072)

* bpo-16594: Add allow_reuse_port on socketserver

* 📜🤖 Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
3 years agobpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075)
Irit Katriel [Mon, 13 Dec 2021 10:04:34 +0000 (10:04 +0000)] 
bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions (GH-30075)

3 years agobpo-27718: Fix help for the signal module (GH-30063)
Serhiy Storchaka [Mon, 13 Dec 2021 09:21:55 +0000 (11:21 +0200)] 
bpo-27718: Fix help for the signal module (GH-30063)

Functions signal(), getsignal(), pthread_sigmask(), sigpending(),
sigwait() and valid_signals() were omitted.

If __all__ is not defined all non-builtin functions should have
correct __module__.

3 years agoRemove erroneous padding in dataclasses (GH-30076)
Andre Delfino [Sun, 12 Dec 2021 18:05:48 +0000 (15:05 -0300)] 
Remove erroneous padding in dataclasses (GH-30076)

Automerge-Triggered-By: GH:ericvsmith
3 years agobpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)
Pablo Galindo Salgado [Sun, 12 Dec 2021 16:53:00 +0000 (16:53 +0000)] 
bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)

3 years agobpo-45855: document that `no_block` has no use anymore in PyCapsule_Import (#29665)
Georg Brandl [Sun, 12 Dec 2021 09:49:50 +0000 (10:49 +0100)] 
bpo-45855: document that `no_block` has no use anymore in PyCapsule_Import (#29665)

3 years agoRe-add `reuse_address` parameter to `create_server` (GH-29733)
Jim Crist-Harif [Sun, 12 Dec 2021 09:47:01 +0000 (03:47 -0600)] 
Re-add `reuse_address` parameter to `create_server` (GH-29733)

This parameter was accidentally removed when fixing
https://bugs.python.org/issue45129, this reverts the unnecessary changes
there.

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
3 years agobpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportMod...
Kumar Aditya [Sun, 12 Dec 2021 08:45:20 +0000 (14:15 +0530)] 
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)

3 years agobpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716)
Christian Sattler [Sun, 12 Dec 2021 08:41:12 +0000 (09:41 +0100)] 
bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716)

3 years agobpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH...
Pablo Galindo Salgado [Sun, 12 Dec 2021 07:06:50 +0000 (07:06 +0000)] 
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068)

3 years agobpo-46042: Improve SyntaxError locations in the symbol table (GH-30059)
Pablo Galindo Salgado [Sat, 11 Dec 2021 21:28:24 +0000 (21:28 +0000)] 
bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059)

3 years agobpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__...
Eric V. Smith [Sat, 11 Dec 2021 21:12:17 +0000 (16:12 -0500)] 
bpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__ arguments. (GH-29867)

`@dataclass` in 3.10 prohibits using list, dict, or set as default values. It does this to avoid the mutable default problem. This test is both too strict, and not strict enough. Too strict, because some immutable subclasses should be safe, and not strict enough, because other mutable types should be prohibited. With this change applied, `@dataclass` now uses unhashability as a proxy for mutability: if objects aren't hashable, they're assumed to be mutable.

3 years agobpo-46049: Fixes ._pth support on non-Windows (GH-30051)
Steve Dower [Sat, 11 Dec 2021 15:06:17 +0000 (15:06 +0000)] 
bpo-46049: Fixes ._pth support on non-Windows (GH-30051)

3 years agobpo-46048: Fix parsing of single character lines in getpath readlines() (GH-30048)
Steve Dower [Sat, 11 Dec 2021 13:43:40 +0000 (13:43 +0000)] 
bpo-46048: Fix parsing of single character lines in getpath readlines() (GH-30048)

3 years agobpo-19737: Improved the documentation for globals (GH-29823)
180909 [Sat, 11 Dec 2021 00:04:21 +0000 (08:04 +0800)] 
bpo-19737: Improved the documentation for globals (GH-29823)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agobuild(deps): bump actions/cache from 2.1.6 to 2.1.7 (GH-29875)
dependabot[bot] [Fri, 10 Dec 2021 23:46:49 +0000 (00:46 +0100)] 
build(deps): bump actions/cache from 2.1.6 to 2.1.7 (GH-29875)

Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agobpo-37971: fix the position of decorator application (GH-30027)
Carl Friedrich Bolz-Tereick [Fri, 10 Dec 2021 23:45:02 +0000 (00:45 +0100)] 
bpo-37971: fix the position of decorator application (GH-30027)

The line numbers of actually calling the decorator functions of
functions and classes was wrong (as opposed to loading them, were they
have been correct previously too).

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agobpo-42918: Improve build-in function compile() in mode 'single' (GH-29934)
Weipeng Hong [Fri, 10 Dec 2021 23:44:26 +0000 (07:44 +0800)] 
bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agobpo-43795: Document stable_abi.txt format and contents (GH-29956)
Petr Viktorin [Fri, 10 Dec 2021 23:34:31 +0000 (00:34 +0100)] 
bpo-43795: Document stable_abi.txt format and contents (GH-29956)

Also mention that removals generally aren't allowed.

3 years agobpo-46014: Add ability to use typing.Union with singledispatch (GH-30017)
Yurii Karabas [Fri, 10 Dec 2021 23:27:55 +0000 (01:27 +0200)] 
bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017)

3 years agobpo-27062: add `__all__` to inspect module (GH-30003)
Kumar Aditya [Fri, 10 Dec 2021 23:05:23 +0000 (04:35 +0530)] 
bpo-27062: add `__all__` to inspect module (GH-30003)

3 years agobpo-45635: refactor print_exception_recursive into smaller functions to standardize...
Irit Katriel [Fri, 10 Dec 2021 23:02:10 +0000 (23:02 +0000)] 
bpo-45635: refactor print_exception_recursive into smaller functions to standardize error handling (GH-30015)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
Louis Sautier [Fri, 10 Dec 2021 23:00:02 +0000 (00:00 +0100)] 
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)

Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
3 years agobpo-45654: No need to freeze types (GH-30028)
Christian Heimes [Fri, 10 Dec 2021 18:09:09 +0000 (20:09 +0200)] 
bpo-45654: No need to freeze types (GH-30028)

3 years agobpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
neonene [Fri, 10 Dec 2021 17:13:55 +0000 (02:13 +0900)] 
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)

This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.

3 years agobpo-46023: Fix makesetup handling of disabled rule (GH-30001)
Christian Heimes [Fri, 10 Dec 2021 13:11:55 +0000 (15:11 +0200)] 
bpo-46023: Fix makesetup handling of disabled rule (GH-30001)

3 years agobpo-45723: Normalise configure user communication (GH-30024)
Erlend Egeberg Aasland [Fri, 10 Dec 2021 11:27:38 +0000 (12:27 +0100)] 
bpo-45723: Normalise configure user communication (GH-30024)

3 years agobpo-46000: Improve NetBSD curses compatibility (GH-29947)
Thomas Klausner [Fri, 10 Dec 2021 09:41:47 +0000 (10:41 +0100)] 
bpo-46000: Improve NetBSD curses compatibility (GH-29947)

3 years agobpo-42182: stdtypes doc - update and fix links to several dunder methods (GH-27384)
andrei kulakov [Fri, 10 Dec 2021 09:40:06 +0000 (04:40 -0500)] 
bpo-42182: stdtypes doc - update and fix links to several dunder methods  (GH-27384)

3 years agoMove error test to the function that needs it. Improve error message. (GH-30008)
Raymond Hettinger [Fri, 10 Dec 2021 02:24:50 +0000 (20:24 -0600)] 
Move error test to the function that needs it.  Improve error message. (GH-30008)

3 years agobpo-43931: Export Python version as API data (GH-25577)
Gabriele N. Tornetta [Fri, 10 Dec 2021 01:52:05 +0000 (01:52 +0000)] 
bpo-43931: Export Python version as API data (GH-25577)

When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...).

Automerge-Triggered-By: GH:pablogsal
3 years agobpo-46016: GHA Doc job now also runs "make check" (GH-30009)
Victor Stinner [Thu, 9 Dec 2021 23:02:20 +0000 (00:02 +0100)] 
bpo-46016: GHA Doc job now also runs "make check" (GH-30009)

The GitHub Action documentation job now also runs "make check" to
check the documentation.

3 years agobpo-46008: Make runtime-global object/type lifecycle functions and state consistent...
Eric Snow [Thu, 9 Dec 2021 19:59:26 +0000 (12:59 -0700)] 
bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998)

This change is strictly renames and moving code around.  It helps in the following ways:

* ensures type-related init functions focus strictly on one of the three aspects (state, objects, types)
* passes in PyInterpreterState * to all those functions, simplifying work on moving types/objects/state to the interpreter
* consistent naming conventions help make what's going on more clear
* keeping API related to a type in the corresponding header file makes it more obvious where to look for it

https://bugs.python.org/issue46008

3 years agoRemove an outdated comment. (GH-30010)
Serhiy Storchaka [Thu, 9 Dec 2021 18:44:36 +0000 (20:44 +0200)] 
Remove an outdated comment. (GH-30010)

3 years agobpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)
Steve Dower [Thu, 9 Dec 2021 18:31:54 +0000 (18:31 +0000)] 
bpo-46018: Ensure that math.expm1 does not raise on underflow (GH-29997)

3 years agobpo-45654: Freeze the runpy module and stuff it imports (GH-29903)
Kumar Aditya [Thu, 9 Dec 2021 16:51:09 +0000 (22:21 +0530)] 
bpo-45654: Freeze the runpy module and stuff it imports (GH-29903)

3 years agobpo-45635: continue refactor of print_exception() to standardize error handling ...
Irit Katriel [Thu, 9 Dec 2021 14:38:00 +0000 (14:38 +0000)] 
bpo-45635: continue refactor of print_exception() to standardize error handling (GH-29996)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years agobpo-46016: Fix rest syntax of GH-29993 (GH-30006)
Kumar Aditya [Thu, 9 Dec 2021 14:24:32 +0000 (19:54 +0530)] 
bpo-46016: Fix rest syntax of GH-29993 (GH-30006)

3 years agobpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH...
Pablo Galindo Salgado [Thu, 9 Dec 2021 13:53:44 +0000 (13:53 +0000)] 
bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002)