Bug 2127923
Summary: | RFE: Add python3.11 and a suite of ecosystem packages into RHEL 9 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Tomas Orsava <torsava> | |
Component: | python3.11 | Assignee: | Charalampos Stratakis <cstratak> | |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> | |
Severity: | unspecified | Docs Contact: | Lenka Špačková <lkuprova> | |
Priority: | unspecified | |||
Version: | 9.2 | CC: | cadams, cstratak, hhorak, jwboyer, maxwell, oliver, pasik, pviktori, python-maint, torsava | |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | python3.11-3.11.2-2.el9 | Doc Type: | Enhancement | |
Doc Text: |
.Python 3.11 available in RHEL 9
RHEL 9.2 introduces Python 3.11, provided by the new package `python3.11` and a suite of packages built for it, as well as the `ubi9/python-311` container image.
Notable enhancements compared to the previously released Python 3.9 include:
* Significantly improved performance.
* Structural Pattern Matching using the new `match` keyword (similar to `switch` in other languages).
* Improved error messages, for example, indicating unclosed parentheses or brackets.
* Exact line numbers for debugging and other use cases.
* Support for defining context managers across multiple lines by enclosing the definitions in parentheses.
* Various new features related to type hints and the `typing` module, such as the new `X | Y` type union operator, variadic generics, and the new `Self` type.
* Precise error locations in tracebacks pointing to the expression that caused the error.
* A new `tomllib` standard library module which supports parsing TOML.
* An ability to raise and handle multiple unrelated exceptions simultaneously using Exception Groups and the new `except*` syntax.
Python 3.11 and packages built for it can be installed in parallel with Python 3.9 on the same system.
To install packages from the `python3.11` stack, use, for example:
[literal]
----
# dnf install python3.11
# dnf install python3.11-pip
----
To run the interpreter, use, for example:
[literal]
----
$ python3.11
$ python3.11 -m pip --help
----
See link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_and_using_dynamic_programming_languages/assembly_installing-and-using-python_installing-and-using-dynamic-programming-languages[Installing and using Python] for more information.
Note that Python 3.11 will have a shorter life cycle than Python 3.9, which is the default Python implementation in RHEL 9; see link:https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle[Red Hat Enterprise Linux Application Streams Life Cycle].
|
Story Points: | --- | |
Clone Of: | ||||
: | 2137139 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-09 07:52:22 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 2164405, 2157620, 2157696, 2157701, 2157702, 2157703, 2157704, 2157705, 2157706, 2157707, 2157708, 2157709, 2157710, 2157711, 2157712, 2157713, 2157714, 2157715, 2157716, 2157717, 2157718, 2157719, 2157720, 2157721, 2157722, 2157723, 2157724, 2157725, 2157726, 2157727, 2157728, 2157729, 2164422, 2178327 | |||
Bug Blocks: |
Description
Tomas Orsava
2022-09-19 11:40:44 UTC
As a customer, what's the best way to advocate for this? The recent performance benchmarks have our developers keen on trying Python 3.11 and it would be nice to have a stable package repository available by then. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (python3.11 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2380 |