#587 Fixes Issue #424
Merged 7 months ago by pbokoc. Opened 7 months ago by kborole.
fedora-docs/ kborole/release-notes iss424  into  f33

addressing interpreter changes
KhushbuB • 7 months ago  
Adding SME Reviews
KhushbuB • 7 months ago  
Fixes Issue #424
KhushbuB • 7 months ago  
@@ -0,0 +1,99 @@ 

+ = Update

+ 

+ == Updated Python package to latest version

+ 

+ The `python3` package is now updated to latest version 3.9 in Fedora 33. Previously, In Fedora 32 `python3` package version 3.8 was supported which is now updated.

+ 

+ This latest update of Python 3.9 will provide many enhancements. Some of the major highlights are:

+ 

+ * Added merge (`|`) and update (`|=`) union operators to `dict` class.

+ * Type hinting generics in standard collections.

+ * Supports more flexible function and variable annotations.

+ * Provides relaxing grammar restrictions by allowing decorators to be any valid expression.

+ * Support for the IANA time zone database in the `zoneinfo` module.

+ * `removeprefix` and `removesuffix` string methods will remove prefixes and suffixes from a string.

+ * CPython now uses a new parser based on parsing expression grammar (PEG).

+ 

+ == Notes on migrating user-installed pip packages

+ 

+ When you upgrade Fedora from versions 32 to Fedora 33, the main Python interpreter version changes from 3.8 to 3.9.

+ If you have any Python packages installed using `pip`, you must complete the following procedure to migrate them to the new version:

+ 

+ . Install previous version of `python3` package:

+ +

+ ----

+ sudo dnf install python3.8

+ ----

+ 

+ . Get `pip` for the previous Python version:

+ +

+ ----

+ python3.8 -m ensurepip --user

+ ----

+ 

+ . Observe the installed packages:

+ +

+ ----

+ python3.8 -m pip list

+ ----

+ 

+ . Save the list with specific versions:

+ +

+ ----

+ python3.8 -m pip freeze > installed.txt

+ ----

+ 

+ . Install the same packages for the *now* default version:

+ +

+ ----

+ python3 -m pip install --user -r installed.txt

+ ----

+ 

+ . Uninstall user-installed packages for Python 3.8; this ensures proper removal of files in `~/.local/bin`:

+ +

+ ----

+ python3.8 -m pip uninstall $(python3.8 -m pip list --user | cut -d" " -f1)

+ ----

+ 

+ . Optionally, clean up the now empty directory structure:

+ +

+ ----

+ rm -rf ~/.local/lib/python3.8/

+ ----

+ 

+ . Optionally, remove the unneeded Python version:

+ +

+ ----

+ sudo dnf remove python3.8

+ ----

+ 

+ Additionally, if you have any `pip` packages installed using `sudo`, run the following commands _before running the final step above which removes `python3.8`_, or install it again temporarily:

+ 

+ . Get `pip` for the previous Python version for `root` user:

+ +

+ ----

+ sudo python3.8 -m ensurepip

+ ----

+ 

+ . Observe the system-installed packages:

+ +

+ ----

+ sudo python3.8 -m pip list

+ ----

+ 

+ . Uninstall installed packages for 3.8; this ensures proper removal of files in `/usr/local/bin`:

+ +

+ ----

+ sudo python3.8 -m pip uninstall $(python3.8 -m pip list | cut -d" " -f1)

+ ----

+ 

+ . Optionally, clean up now empty directory structure:

+ +

+ ----

+ sudo rm -rf /usr/local/lib*/python3.8/

+ ----

+ 

+ [IMPORTANT]

+ ====

+ If you followed the first procedure, the packages are already installed for your user account, which is the preferred option. Avoid using `sudo pip` in the future, these instructions are only intended to recover users who already used `sudo pip` in the past.

+ ====

Python package updated to latest version in Fedora 33.
Fixes Issue #424

@churchyard @cstratak can you please check the technical accuracy for the content of this PR ?

The python package

The python3 package

Previously, Fedora 32 supported python version 3.8 which is now updated.

Previously, in Fedora 32, python3 was Python version 3.8.

  • Added merge (|) and update (|=) Union Operators To dict class.

Please mark the operators with appropriate asciidoc symbols (backticks).

The PEG link is probably not leading anywhere.

Also, please make sure to include an updated version of https://pagure.io/fedora-docs/release-notes/issue/503

1 new commit added

  • Adding SME Reviews
7 months ago

Thanks for the suggestions @churchyard

The PEG link is probably not leading anywhere.

I have mentioned the "full form (acronym)" writing style, though the syntax was wrong.
I have now corrected it.

Also, please make sure to include an updated version of https://pagure.io/fedora-docs/release-notes/issue/503

The instructions are to be followed when the python interpreter is changed from version 3.7 to 3.8 but no python interpreter version is changed in Fedora 33[Python 3.9 - Interpreter 3.8(same as Python 3.8)] but I have added the instructions for the users updating Fedora form version < 31 to Fedora 33.

Let me know if that needs any further changes.

The instructions are to be followed when the python interpreter is changed from version 3.7 to 3.8 but no python interpreter version is changed in Fedora 33...

Yes and this time, we upgraded from Python 3.8 to 3.9.

When you upgrade Fedora from previous versions to Fedora 32 or 33, the main Python interpreter version changes from 3.7 to 3.8.

This is incorrect. In fact, it is:

When you upgrade Fedora from 32 to 33, the main Python interpreter version changes from 3.8 to 3.9. When you upgrade Fedora from 31 to 33, the main Python interpreter version changes from 3.7 to 3.9.

@churchyard ok, as per what you are saying i understand is that Python Interpreter is changed from 3.8 to 3.9 with Python 3.8 to Python 3.9.

But as I am following the wiki page , It says in the User Experience Section that (I quote here) "...the Python 3 interpreter will be in version 3.8. "
Which means no python interpreter is changed while updating Python 3.8(Python Interpreter 3.8) to Python 3.9(Python Interpreter 3.8).

Can you please verify this and let me know ?

I've fixed a typo on the wiki page.

1 new commit added

  • addressing interpreter changes
7 months ago

Thanks for the clarification @churchyard

I have made the changes as per the Python Interpreter change.

rebased onto 5789d0b

7 months ago

Pull-Request has been merged by pbokoc

7 months ago
Metadata