Documentation for a newer release is available. View Latest

Python

Python 3.7

Fedora 29 introduce Python 3.7, que añade numerosas funciones nuevas y optimizaciones en comparación de la versión 3.6, que era la pila Python 3 predeterminada en Fedora 28. Los cambios más notables incluyen:

  • async y await son ahora palabras clave resservadas.

  • El módulo asyncio ha recibido nuevas funciones y una mejoras significativas de usabilidad y rendmimiento.

  • El módulo time ha ganado soporte para funciones con resolución de nanosegundos.

Para más información, consulte Lo nievo en Python 3.7 y Características para 3.7. Si tienes tus propias apps de Python, consulta el Porte a Python 3.7 para información acerca de los cambios de ruptura con la compatibilidad y como solucionar tu aplicación.

/usr/bin/python ahora muestran un paquete separado

El comando python sin versionar de /usr/bin/python se ha movido a un paquete independiente python-unversioned-command. Lo recibirá por defecto al instalar el paquete python2, pero puede desinstalarlo.

Utilice la instrucción python3 si necesitas a Python 3, y la instrucción python2 si necesitas Python 2. La instrucción python continúa para significar Python 2, pero no está garantizando que esté presente.

See the Change page for detailed information and justification for this change.

/usr/bin/virtualenv is now in the python3-virtualenv package

The virtualenv command now comes from the python3-virtualenv package, as opposed to earlier releases where the command was in the python2-virtualenv. This effectively switches the command to Python 3; if you run virtualenv without any additional options, it will create Python 3 environments. Use virtualenv -p python2.7 to get the previously default behavior.

Ansible ahora utiliza por defecto Python3

The ansible package in Fedora is switching to use Python 3 by default, instead of Python 2. See Automation for details.

No more automagic Python bytecompilation

The current way of automatic Python byte-compiling of files outside Python-specific directories is too magical and error-prone. It is built on heuristics that are increasingly wrong. This change provides a way to opt out of it, and adjusts the guidelines to prefer explicit bytecompilation of such files. Later, the old behavior will either become opt-in only, or cease to exist.

Note that bytecompilation in Python-specific directories (e.g. /usr/lib/python3.6/) is not affected.

See the Fedora Wiki change page for detailed documentation.

Actualiza grupos comps para usar Python 3

Multiple package groups have been updated to use python3 by default instead of python2. See Distribution-wide Changes for more information.