El tipado dinámico de Python combinado con los planes para cambiar la semántica de ciertos métodos de los diccionarios, por ejemplo, hacen que convertir perfectamente de Python 2.x a Python 3.0 sea muy difícil de manera automática.
Python's dynamic typing combined with the plans to change the semantics of certain methods of dictionaries, for example, made perfect mechanical translation from Python 2.x to Python 3.0 very difficult.
Un cambio en el comando print «hola» de Python 2.x frente a print(«Hola») de Python 3.x da una idea de dicha incompatibilidad.
A change in the print statement print "hola" from Python 2.x is noew print("Hola") in Python 3.x. as a matter of fact, there is some incompatibilities.
Python 2.x es la versión heredada, aunque sigue teniendo un uso generalizado.
Python 2.x is the legacy version though it still sees widespread use.
Nota: Necesitará Python 2.x con el módulo Jinja2 para crear los archivos.
You need Python 2.x with Jinja2 module to create builds.
Python 2.x incluye varias funciones que toman funciones anónimas como argumento.
Python 3 includes several functions that take anonymous functions as an argument.
El código en las siguientes secciones está escrito en Python 2.x. Clasificación[editar]
The following examples are written in Python 3. Sorting[edit]
Hay una gran variedad de fuentes en línea, pero la mayoría está enfocada en Python 2.X.
There are a variety of sources available online, but many are still geared towards Python 2.X.
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