]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
David Gilbertson [Mon, 2 May 2022 20:26:35 +0000 (06:26 +1000)]
importlib docs: Update importlib.abc hierarchy (#31113)
Fixed some inconsistencies in the text about relationships
themylogin [Mon, 2 May 2022 20:24:39 +0000 (22:24 +0200)]
bpo-46787: Fix `ProcessPoolExecutor exception` memory leak (GH-31408) (#31408)
Do not store `ProcessPoolExecutor` work item exception traceback that prevents
exception frame locals from being garbage collected.
larryhastings [Mon, 2 May 2022 20:08:22 +0000 (13:08 -0700)]
Fix the closure argument to PyEval_EvalCodeEx. (GH-92175)
Benjamin Peterson [Mon, 2 May 2022 19:43:52 +0000 (13:43 -0600)]
Fix duplicate word. (GH-92182)
Jelle Zijlstra [Mon, 2 May 2022 19:21:59 +0000 (13:21 -0600)]
gh-87390: Add __unpacked__ attribute to types.GenericAlias (#92059)
Hugo van Kemenade [Mon, 2 May 2022 17:22:26 +0000 (20:22 +0300)]
gh-90765: configparser test: Catch deprecation warning (#91480)
Mark Dickinson [Mon, 2 May 2022 17:19:03 +0000 (18:19 +0100)]
gh-90213: Speed up right shifts of negative integers (GH-30277)
Sam Ezeh [Mon, 2 May 2022 17:15:04 +0000 (18:15 +0100)]
gh-91783: Document security considerations for shutil.unpack_archive (#91844)
Pieter Eendebak [Mon, 2 May 2022 17:09:35 +0000 (19:09 +0200)]
suggestions.c: Improve efficiency of levenshtein_distance method (#91835)
Hugo van Kemenade [Mon, 2 May 2022 16:57:00 +0000 (19:57 +0300)]
Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)
Eric V. Smith [Mon, 2 May 2022 16:36:39 +0000 (10:36 -0600)]
Add weakref_slot to dataclass decorator, to allow instances with slots to be weakref-able. (#92160)
Thaddeus1499 [Mon, 2 May 2022 16:20:30 +0000 (12:20 -0400)]
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
Signed-off-by: prwatson <prwatson@redhat.com>
Irit Katriel [Mon, 2 May 2022 15:51:17 +0000 (09:51 -0600)]
gh-91276: revert the increase of dis output width (GH-92126)
slateny [Mon, 2 May 2022 15:11:05 +0000 (08:11 -0700)]
gh-88546: glob.glob docs: Make new paragraph for emphasis and reordered sentence (#91614)
Alex Waygood [Mon, 2 May 2022 15:10:02 +0000 (16:10 +0100)]
gh-92128: Add `__class_getitem__` to `logging.LoggerAdapter` and `logging.StreamHandler` (#92129)
Closes #92128
Victor Stinner [Mon, 2 May 2022 15:07:00 +0000 (17:07 +0200)]
gh-92135: Fix _Py_reinterpret_cast() for const (#92138)
Fix C++ compiler warnings on cast macros, like _PyObject_CAST(), when
casting a constant expression to a non constant type: use
const_cast<> in C++.
* In C++, Py_SAFE_DOWNCAST() now uses static_cast<> rather than
reinterpret_cast<>.
* Add tests to the _testcppext C++ extension.
* test_cppext no longer captures stdout in verbose mode.
Yiannis Hadjicharalambous [Mon, 2 May 2022 15:05:26 +0000 (16:05 +0100)]
concurrent.futures: Fix typo in docstring (#92121)
Mariusz Felisiak [Mon, 2 May 2022 15:02:54 +0000 (17:02 +0200)]
bpo-46907: Update Windows installer to SQLite 3.38.3. (GH-91995)
Harsh [Mon, 2 May 2022 15:01:52 +0000 (20:31 +0530)]
asyncio.subprocess: Fix a typo in doc (#92030)
Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance
Matt Harding [Mon, 2 May 2022 15:01:03 +0000 (16:01 +0100)]
Fix typo in Programming FAQ (#92083)
I believe the word "with" was missing here.
slateny [Mon, 2 May 2022 14:43:32 +0000 (07:43 -0700)]
gh-85133: os docs: Add that getenv uses os.environ (#91874)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
slateny [Mon, 2 May 2022 14:31:55 +0000 (07:31 -0700)]
gh-84714: Add behavior if dst file exists (#91867)
Erlend Egeberg Aasland [Mon, 2 May 2022 14:14:35 +0000 (08:14 -0600)]
gh-89301: Fix regression with bound values in traced SQLite statements (#92053)
Victor Stinner [Mon, 2 May 2022 13:29:22 +0000 (15:29 +0200)]
gh-88097: doc: fix link to Py_Version (#92141)
Victor Stinner [Mon, 2 May 2022 12:09:22 +0000 (14:09 +0200)]
gh-91321: Add _testcppext C++ extension (#32175)
Build a basic C++ test extension to check that the Python C API is
compatible with C++ and does not emit C++ compiler warnings.
* Add Modules/_testcppext.cpp: C++ extension
* Add Lib/test/test_cppext.py: test building the C++ extension.
Serhiy Storchaka [Mon, 2 May 2022 09:37:48 +0000 (12:37 +0300)]
bpo-36819: Fix crashes in built-in encoders with weird error handlers (GH-28593)
If the error handler returns position less or equal than the starting
position of non-encodable characters, most of built-in encoders didn't
properly re-size the output buffer. This led to out-of-bounds writes,
and segfaults.
Inada Naoki [Mon, 2 May 2022 08:25:05 +0000 (17:25 +0900)]
gh-85679: Recommend `encoding="utf-8"` in tutorial (GH-91778)
Ganesh Kathiresan [Mon, 2 May 2022 08:23:28 +0000 (13:53 +0530)]
gh-90822: Make `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` constant expression (GH-92071)
Serhiy Storchaka [Mon, 2 May 2022 05:29:49 +0000 (08:29 +0300)]
gh-92114: Improve error message for types with __class_getitem__ = None (GH-92115)
vainaijr [Mon, 2 May 2022 01:24:41 +0000 (06:54 +0530)]
gh-91998: 'WebAssemby' to 'WebAssembly' (#92040)
dependabot[bot] [Sun, 1 May 2022 20:53:15 +0000 (14:53 -0600)]
build(deps): bump actions/stale from 4 to 5 (#92108)
Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sun, 1 May 2022 20:52:21 +0000 (14:52 -0600)]
build(deps): bump actions/github-script from 5 to 6 (#92109)
Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sun, 1 May 2022 20:39:53 +0000 (14:39 -0600)]
build(deps): bump actions/setup-node from 2 to 3 (#92110)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sun, 1 May 2022 20:37:52 +0000 (14:37 -0600)]
build(deps): bump actions/cache from 3.0.1 to 3.0.2 (#92111)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2)
---
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>
Antony Lee [Sun, 1 May 2022 06:04:50 +0000 (08:04 +0200)]
bpo-39716: Raise on conflicting subparser names. (GH-18605)
Raise an ArgumentError when the same subparser name is added twice to an
ArgumentParser. This is consistent with the (default) behavior when the
same option string is added twice to an ArgumentParser.
(Support for `conflict_handler="resolve"` could be considered as a
followup feature, although real use cases seem even rarer than
"resolve"ing option-strings.)
Automerge-Triggered-By: GH:rhettinger
Sam Bull [Sun, 1 May 2022 04:40:27 +0000 (05:40 +0100)]
typing docs: Add example for async functions (#20386)
Fixes python/typing#424
slateny [Sun, 1 May 2022 04:05:20 +0000 (21:05 -0700)]
gh-81488: Add recursive wording for issubclass docs (#92087)
Inada Naoki [Sun, 1 May 2022 01:44:14 +0000 (10:44 +0900)]
gh-91952: Make TextIOWrapper.reconfigure() supports "locale" encoding (GH-91982)
Dennis Sweeney [Sun, 1 May 2022 00:38:19 +0000 (20:38 -0400)]
gh-91954: Use shell=True in test_subprocess.test_encoding_warning (GH-92090)
Antonio Andrade [Sat, 30 Apr 2022 22:20:10 +0000 (02:20 +0400)]
Improving readability of argparse.rst (GH-91751)
Fixed few typos and enhanced few paragraphs for your review and consideration.
Trivial contribution towards continuous improvement, so no issue was raised.
Automerge-Triggered-By: GH:rhettinger
slateny [Sat, 30 Apr 2022 22:14:38 +0000 (15:14 -0700)]
gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)
#89253
[`pairwise()`](https://docs.python.org/3/library/itertools.html#itertools.pairwise) already has the 'new in python3.10'
Automerge-Triggered-By: GH:rhettinger
slateny [Sat, 30 Apr 2022 22:12:33 +0000 (15:12 -0700)]
gh-85757: Change wording from nested to inner (GH-91811)
#85757
https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions
I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant
Automerge-Triggered-By: GH:rhettinger
Yurii Karabas [Sat, 30 Apr 2022 22:09:48 +0000 (01:09 +0300)]
Fix typo in asyncio-extending.rst (#91609)
Motoki Naruse [Sat, 30 Apr 2022 21:52:13 +0000 (06:52 +0900)]
gh-91611: Use example.com for documentation, not mydomain.com (#91613)
example.com is reserved by the IANA as special-use domain name for documentation
purposes. The domain names are used widely in books, tutorials, sample network
configurations, and generally as examples for the use of domain name.
On the other hand, mydomain.com is real Domain Name Registration service.
slateny [Sat, 30 Apr 2022 21:32:00 +0000 (14:32 -0700)]
gh-87801: Add run() to subprocess.CalledProcessError description (#91628)
slateny [Sat, 30 Apr 2022 21:24:01 +0000 (14:24 -0700)]
gh-87192: Update wording for fcntl 'Changed in' (#91658)
Dennis Sweeney [Sat, 30 Apr 2022 19:53:59 +0000 (15:53 -0400)]
Convert :issue: to :gh: in whatsnew (GH-92089)
Dennis Sweeney [Sat, 30 Apr 2022 18:35:33 +0000 (14:35 -0400)]
gh-92063: Enforce types in specialized PRECALL opcodes (GH-92068)
* Check the types of PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS
* fix PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS as well
* fix PRECALL_NO_KW_METHOD_DESCRIPTOR_O
* fix PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST
slateny [Sat, 30 Apr 2022 15:22:33 +0000 (08:22 -0700)]
gh-85864: io docs: Add missing position-only parameters (#91950)
Erlend Egeberg Aasland [Sat, 30 Apr 2022 15:01:37 +0000 (09:01 -0600)]
gh-92019: Make sqlite3.Blob indexing conform with the norm (#92020)
- get index now returns an int
- set index now requires an int in range(0, 256)
Resolves #92019
Serhiy Storchaka [Sat, 30 Apr 2022 10:17:23 +0000 (13:17 +0300)]
bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)
It was raised if the charset itself contains characters not encodable
in UTF-8 (in particular \udcxx characters representing non-decodable
bytes in the source).
Serhiy Storchaka [Sat, 30 Apr 2022 10:16:27 +0000 (13:16 +0300)]
gh-81548: Deprecate octal escape sequences with value larger than 0o377 (GH-91668)
Serhiy Storchaka [Sat, 30 Apr 2022 10:15:02 +0000 (13:15 +0300)]
gh-91583: AC: Fix regression for functions with defining_class (GH-91739)
Argument Clinic now generates the same efficient code as before
adding the defining_class parameter.
Serhiy Storchaka [Sat, 30 Apr 2022 10:13:46 +0000 (13:13 +0300)]
gh-91760: Deprecate group names and numbers which will be invalid in future (GH-91794)
Only sequence of ASCII digits will be accepted as a numerical reference.
The group name in bytes patterns and replacement strings could only
contain ASCII letters and digits and underscore.
Serhiy Storchaka [Sat, 30 Apr 2022 10:03:23 +0000 (13:03 +0300)]
gh-92049: Forbid pickling constants re._constants.SUCCESS etc (GH-92070)
Previously, pickling did not fail, but the result could not be unpickled.
Inada Naoki [Sat, 30 Apr 2022 06:53:29 +0000 (15:53 +0900)]
gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977)
locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning
David Hewitt [Sat, 30 Apr 2022 05:23:54 +0000 (06:23 +0100)]
gh-91880 - fix typo (GH-92069)
https://github.com/python/cpython/issues/91880#issuecomment-
1113914241 - With thanks to @MojoVampire for spotting this.
Automerge-Triggered-By: GH:gvanrossum
Serhiy Storchaka [Sat, 30 Apr 2022 05:22:46 +0000 (08:22 +0300)]
bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-31828)
Co-authored-by: Matthew Rahtz <mrahtz@gmail.com>
Dennis Sweeney [Sat, 30 Apr 2022 03:18:38 +0000 (23:18 -0400)]
gh-92064: Fix global variable name collision in test_typing (#92067)
Fixes #92064
Shantanu [Sat, 30 Apr 2022 03:13:21 +0000 (21:13 -0600)]
Rephrase typing.assert_never docs (#92061)
This change is similar to that in #32069
Shantanu [Sat, 30 Apr 2022 03:12:45 +0000 (21:12 -0600)]
gh-91491: Add several typing features to What's New (#92060)
This gets all the major items in #91491. However, I didn't get around to
adding what's new entries for the large clump of changes in the last
bullet point in the issue.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Brett Cannon [Sat, 30 Apr 2022 01:22:10 +0000 (18:22 -0700)]
gh-91217: deprecate xdrlib (GH-92066)
Automerge-Triggered-By: GH:brettcannon
Jelle Zijlstra [Fri, 29 Apr 2022 22:58:40 +0000 (16:58 -0600)]
Fix indentation for typing.Unpack docs (#92058)
https://docs.python.org/3.11/library/typing.html#typing.Unpack
slateny [Fri, 29 Apr 2022 22:08:07 +0000 (15:08 -0700)]
sorting howto: Add clarification on < using __lt__ (#92010)
Serhiy Storchaka [Fri, 29 Apr 2022 21:01:40 +0000 (00:01 +0300)]
bpo-44791: Accept ellipsis as the last argument of typing.Concatenate (#30969)
Matthew Rahtz [Fri, 29 Apr 2022 20:03:21 +0000 (14:03 -0600)]
gh-87390: Add tests demonstrating current type variable substitution behaviour (#32341)
Humbled Drugman [Fri, 29 Apr 2022 18:22:46 +0000 (19:22 +0100)]
bpo-26792: Improve docstrings of runpy module run_functions (#30729)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Petr Viktorin [Fri, 29 Apr 2022 14:18:08 +0000 (16:18 +0200)]
gh-91324: Convert the stable ABI manifest to TOML (GH-92026)
Hugo van Kemenade [Fri, 29 Apr 2022 13:47:26 +0000 (16:47 +0300)]
bpo-36329: Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview' (GH-32354)
Also updated `make -C htmlview` so it used a full path with `file://`, because the original didn't open the page (macOS).
For example:
```sh
cd Doc
# Doesn't open anything:
python3 -c "import webbrowser; webbrowser.open('build/html/index.html')"
# Opens the docs page e.g. file:///Users/hugo/github/cpython/Doc/build/html/index.html :
python3 -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
```
https://bugs.python.org/issue36329
Ken Jin [Fri, 29 Apr 2022 04:22:25 +0000 (11:22 +0700)]
gh-91873: Summarise deprecations in typing at the top level (GH-91864)
Eisuke Kawashima [Thu, 28 Apr 2022 19:45:03 +0000 (04:45 +0900)]
bpo-22276: Change pathlib.Path.glob not to ignore trailing path separator (GH-10349)
Now pathlib.Path.glob() **only** matches directories when the pattern ends in a path separator.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Yurii Karabas [Thu, 28 Apr 2022 15:24:19 +0000 (18:24 +0300)]
gh-91603: Speed up isinstance/issubclass on union types (GH-91631)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Abhigyan Bose [Thu, 28 Apr 2022 14:50:27 +0000 (20:20 +0530)]
gh-91832: Add 'required' attr to argparse.Action repr (GH-91841)
# Adding 'required' to names in Lib.argparse.Action
gh-91832:
Added 'required' to the list `names` in `Lib.argparse.Action`.
Changed constant strings that test the Action object.
Automerge-Triggered-By: GH:merwok
Petr Viktorin [Thu, 28 Apr 2022 14:30:28 +0000 (16:30 +0200)]
gh-91324: List feature macros in the stable ABI manifest, improve tests (GH-32415)
Ethan Smith [Thu, 28 Apr 2022 12:14:19 +0000 (05:14 -0700)]
gh-84461: Add HOSTRUNNER for program to run Python executable (GH-91931)
`HOSTRUNNER` is a program which can be used to run `BUILDPYTHON` for the host platform (for example, `python.js` requires `node`).
Also change depedencies from `build_all` to `all` so that targets which can't build everything (e.g. WASM) can still run `buildbottest` and `pythoninfo`.
cc @tiran
Victor Stinner [Thu, 28 Apr 2022 12:02:45 +0000 (14:02 +0200)]
gh-89479: Export _Py_GetSpecializationStats() internal function (#92011)
When Python is built with "./configure --enable-pystats" (if the
Py_STATS macro is defined), the _Py_GetSpecializationStats() function
must be exported, since it's used by the _opcode extension which is
built as a shared library.
Abhigyan Bose [Thu, 28 Apr 2022 11:29:24 +0000 (16:59 +0530)]
gh-91984: Fix trailing spaces in multiline test strings in test_argparse (GH-91986)
Serhiy Storchaka [Thu, 28 Apr 2022 10:25:33 +0000 (13:25 +0300)]
gh-91603: Speed up operator "|" for UnionType (GH-91955)
Reduce the complexity from O((M+N)^2) to O(M*N), where M and N are the length
of __args__ for both operands (1 for operand which is not a UnionType).
As a consequence, the complexity of parameter substitution in UnionType has
been reduced from O(N^3) to O(N^2).
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Dennis Sweeney [Thu, 28 Apr 2022 04:36:34 +0000 (00:36 -0400)]
gh-91869: Fix tracing of specialized instructions with extended args (GH-91945)
Brett Cannon [Thu, 28 Apr 2022 03:26:33 +0000 (20:26 -0700)]
gh-91217: deprecate uu (GH-92009)
Automerge-Triggered-By: GH:brettcannon
Ashwin Ramaswami [Wed, 27 Apr 2022 22:25:03 +0000 (18:25 -0400)]
Add note that headers added via urllib.request.add_header are added to redirected requests (#30708)
slateny [Wed, 27 Apr 2022 22:03:03 +0000 (15:03 -0700)]
gh-84459: Make wording more specific for Path.replace (GH-91853)
#84459
Simon de Vlieger [Wed, 27 Apr 2022 21:28:56 +0000 (23:28 +0200)]
Correct method name typo (#91970)
Serhiy Storchaka [Wed, 27 Apr 2022 17:15:14 +0000 (20:15 +0300)]
gh-87999: Change warning type for numeric literal followed by keyword (GH-91980)
The warning emitted by the Python parser for a numeric literal
immediately followed by keyword has been changed from deprecation
warning to syntax warning.
Serhiy Storchaka [Wed, 27 Apr 2022 16:16:20 +0000 (19:16 +0300)]
gh-91810: Expand ElementTree.write() tests to use non-ASCII data (GH-91989)
David CARLIER [Wed, 27 Apr 2022 12:47:17 +0000 (13:47 +0100)]
gh-91498: socket: Add TCP_CONNECTION_INFO on macOS (#69256)
Fixes GH-91498
Dennis Sweeney [Wed, 27 Apr 2022 10:45:40 +0000 (06:45 -0400)]
gh-91719: Mark pycore_opcode.h as generated in .gitattributes (#91976)
Victor Stinner [Wed, 27 Apr 2022 08:40:57 +0000 (10:40 +0200)]
gh-91320: Add _Py_reinterpret_cast() macro (#91959)
Fix C++ compiler warnings about "old-style cast"
(g++ -Wold-style-cast) in the Python C API. Use C++
reinterpret_cast<> and static_cast<> casts when the Python C API is
used in C++.
Example of fixed warning:
Include/object.h:107:43: error: use of old-style cast to
‘PyObject*’ {aka ‘struct _object*’} [-Werror=old-style-cast]
#define _PyObject_CAST(op) ((PyObject*)(op))
Add _Py_reinterpret_cast() and _Py_static_cast() macros.
Alexander Shadchin [Wed, 27 Apr 2022 06:30:54 +0000 (09:30 +0300)]
Fix missing `f` prefix on f-strings (GH-91910)
Victor Stinner [Tue, 26 Apr 2022 20:43:50 +0000 (22:43 +0200)]
gh-68966: Deprecate the mailcap module (#91951)
slateny [Tue, 26 Apr 2022 19:12:02 +0000 (12:12 -0700)]
bpo-21761: Clarify __file__/__cached__ in import reference (GH-31565)
Automerge-Triggered-By: GH:brettcannon
Serhiy Storchaka [Tue, 26 Apr 2022 18:07:25 +0000 (21:07 +0300)]
gh-91870: Remove unsupported SRE opcode CALL (GH-91872)
It was initially added to support atomic groups, but that
support was never fully implemented, and CALL was only left
in the compiler, but not interpreter and parser.
ATOMIC_GROUP is now used to support atomic groups.
Brett Cannon [Tue, 26 Apr 2022 17:45:08 +0000 (10:45 -0700)]
gh-91217: deprecate telnetlib (GH-91958)
Serhiy Storchaka [Tue, 26 Apr 2022 05:01:33 +0000 (08:01 +0300)]
gh-91917: Fix test_zipfile on non-UTF-8 locale (GH-91921)
Skip the extraction test if file names are not encodable.
Serhiy Storchaka [Tue, 26 Apr 2022 05:00:47 +0000 (08:00 +0300)]
gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)
If use a non-builtin codec, partially implemented in Python
(e.g. ISO-8859-15), a new RecursionError (with empty error message)
can be raised while handle a RecursionError.
Testing for error message was needed to distinguish
a recursion error from arbitrary RuntimeError. After introducing
RecursionError, it became unnecessary.
Serhiy Storchaka [Tue, 26 Apr 2022 04:59:56 +0000 (07:59 +0300)]
gh-91914: Fix test_curses on non-UTF-8 locale (GH-91919)
Serhiy Storchaka [Tue, 26 Apr 2022 04:58:41 +0000 (07:58 +0300)]
gh-91915: Fix test_netrc on non-UTF-8 locale (GH-91918)
Jelle Zijlstra [Tue, 26 Apr 2022 03:30:25 +0000 (20:30 -0700)]
gh-91860: Add typing.dataclass_transform (PEP 681) (#91861)
Copied from typing-extensions (python/typing#1054, python/typing#1120).
Documentation is intentionally omitted, so we can focus on getting the
runtime part in before the feature freeze.
Brett Cannon [Mon, 25 Apr 2022 23:26:43 +0000 (16:26 -0700)]
gh-91217: deprecate sunau (GH-91866)
Gregory P. Smith [Mon, 25 Apr 2022 23:19:39 +0000 (16:19 -0700)]
gh-91401: Add a failsafe way to disable vfork. (#91490)
Just in case there is ever an issue with _posixsubprocess's use of
vfork() due to the complexity of using it properly and potential
directions that Linux platforms where it defaults to on could take, this
adds a failsafe so that users can disable its use entirely by setting
a global flag.
No known reason to disable it exists. But it'd be a shame to encounter
one and not be able to use CPython without patching and rebuilding it.
See the linked issue for some discussion on reasoning.
Also documents the existing way to disable posix_spawn.