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.
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.
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.
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.
In the Jupyter window, click the New button and select Python 2 or Python 3 to create a new Python notebook.
En la ventana de Jupyter, haz clic en el botón Nuevo y selecciona Python 2 o Python 3 para crear un notebook nuevo de Python.
Note that many projects still use Python 2, although migrating to Python 3 is getting easier.
Tenga en cuenta que muchos proyectos siguen utilizando Python 2, aunque la migración a Python 3 es cada vez más sencilla.
Therefore, if the Virtualenv is installed with Python 2, python will refer to Python 2.
The source code has been provided for both Python 2 and Python 3 wherever possible.
El código fuente se ha proporcionado para Python 2 y Python 3 siempre que sea posible.
Many projects' build scripts assume python to be Python 2, and that would eventually result in an error - typically complaining that print 'foo' is invalid syntax.
Muchos scripts de compilación de proyectos dan por hecho que python será Python 2, y esto podría provocar un error (normalmente indicando que print 'foo' es una sintaxis inválida.
Long ago, I wrote an entrance related to how to install Python 2 and Python 3 on the same Windows machine.
En una entrada ya antigua, se describió cómo disponer en la misma máquina de Python 2.7 y Python 3.3.
What causes the failure is a code transition issue between Python 2 and Python 3.
Lo que provoca el error es un problema de transición de código entre Python 2 y Python 3.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.