If "leak-references" is set to FALSE, the reference count of the Python object will not be incremented when referenced in a TreeIter.
Si "leak-references" se establece a FALSE entonces el contador de referencias del objeto de Python no se incrementará cuando se referencia en un TreeIter.
This means that your custom TreeModel must keep a reference to all Python objects used in TreeIters until the model is destroyed.
Esto implica que el TreeModel propio debe mantener una referencia a todos los objetos de Python utilizados en los TreeIters hasta que el modelo sea destruido.
Therefore, the Python object referenced in a TreeIter has by default its reference count incremented but it is not decremented when the TreeIter is destroyed.
Por lo tanto, el objeto de Python referenciado en un TreeIter incrementa por defecto su cuenta de referencias, pero no se decrementa cuando se destruye el TreeIter.
Since the TreeIter may be created and initialized in C code and live on the stack, it's not possible to know when the TreeIter has been destroyed and the Python object reference is no longer being used.
Puesto que se puede crear e inicializar un TreeIter en código en C y que permanezca en la pila, no es posible saber cuándo se ha destruido el TreeIter y ya no se usa la referencia al objeto de Python.
First, objects in Python do not have private or protected members.
Primero, en Python los objetos no tienen miembros privados o protegidos.
Values, on the other hand, can be any arbitrary Python object.
Valores, por otro lado, pueden ser cualquier objeto Python arbitrario.
An exception is a Python object that represents an error.
It is safe to stick to primitive Python objects and combinations of them.
Es seguro mantener los objetos en su formato de Python y sus combinaciones.
We stated earlier that Python is an object-oriented programming language.
Hemos dicho anteriormente que Python es un lenguaje de programación orientado a objetos.
In Python, the map function returns to you a map object.
En Python, la función "map" retorna un objeto mapeado.
Python is an interpreted, interactive, object-oriented programming language.
Python es un lenguaje de programación interpretado, interactivo y orientado a objetos.
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