Realizar la migración puede automatizarse gracias a 2to3, pero no solo eso. También han creado la herramienta que permite migrar de Python 3 a Python 2, mediante 3to2.
You can automatize the migration thanks to 2to3, but also, there is a tool that allow to migrate code from Python 3 to Python 2, called 3to2.
El soporte de Python 3 (a través de python-ipykernel) se incluye al instalar jupyter-notebook. R
Muestra una lista de todas las características disponibles del lenguaje que se pueden convertir de Python 2 a Python 3
Display a list of all available language features that can be converted from Python 2 to Python 3
Nota: "print" es uno de los cambios más grandes de Python 2 a Python 3.
Note: "print" is one of the biggest changes from Python 2 to Python 3.
Puede encontrar más detalles sobre el plan de Fedora de migración de Python en cambio a Python 3 por defecto en Fedora 23
For more details of Fedora's Python migration plan, please visit: Python 3 default change in Fedora 23
Sin embargo, si se toma la decisión de cambiar, es posible filtrar los códigos y realizar los cambios necesarios para convertir los códigos Python 2 a Python 3 y viceversa.
However, if the decision is made to change, it is possible to sift through code and make the changes needed to convert Python 2 code to Python 3 and vice-versa.
Ahora está disponible un complemento GCC que integra Python 2 y Python 3, permitiendo a los desarrolladores enganchar el funcionamiento interior de GCC con más facilidad (por ejemplo, para añadir nuevas advertencias del compilador).
GCC plugins that embed Python 2 and Python 3 are now available, enabling developers to more easily hook into GCC's inner workings (e.g. to add new compiler warnings).
Convierte todas las funciones del lenguaje Python 2 excepto las especificadas a Python 3
Convert all Python 2 language features except the specified ones to Python 3
Convierte todos los archivos Python 2 en un directorio a Python 3
Convert all Python 2 files in a directory to Python 3
En los próximos años, las empresas que se han quedado con Python 2 harán el cambio a Python 3.
Over the next few years, once reluctant companies stuck on Python 2 will be making the switch to Python 3.
Tenga en cuenta que muchos proyectos siguen utilizando Python 2, aunque la migración a Python 3 es cada vez más sencilla.
Note that many projects still use Python 2, although migrating to Python 3 is getting easier.
Cuando lo instalas para usar con Python 3, se actualiza automáticamente a código Python 3.
When you install it for use with Python 3, it is automatically updated to Python 3 code.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple