Creating objects To represent database-table data in Python objects, Django uses an intuitive system: A model class represents a database table, and an instance of that class represents a particular record in the database table.
Pour représenter dans Python les données d'une table de base de données, Django utilise un système intuitif : une classe de modèle représente une table de la base de données, et une instance de cette classe représente un des enregistrements de cette table.
Other results
In Python, an object's methods are always virtual methods.
En Python, les méthodes d'un objet sont toujours virtuelles.
Assignment statements in Python do not copy objects, they create bindings between a target and an object.
Les instructions d'affectation en Python ne copient pas les objets, elles créent des liens entre la cible et l'objet.
In addition to the dot notation, there is another way to get the value of attributes or methods that belong to an object in Python.
En plus de la notation pointée, il y a une autre façon d'obtenir la valeur d'un attribut ou d'une méthode qui appartient à un objet en Python.
ORMithorynque allows to save and reload Python object in a database, and to perform complex and optimized request on the database.
ORMithorynque permet d'enregistrer et de charger des objets Python dans une base de données, et d'effectuer des requêtes complexes et optimisées en SQL.
In theory, it's equivalent to "print" in Python on that object, but if the object is internally corrupt, if you run it, you'll merely get another crash.
Théoriquement, c'est l'équivalent d'un "print" en Python sur l'objet, mais si celui-ci est corrompu, vous n'aurez qu'un autre crash de plus.
Note that there is no specific slot for any of these methods in the type structure for Python objects in the Python/C API.
Notez qu'il n'y a pas d'emplacement spécifique pour ces méthodes dans la structure de type pour les objets Python dans l'API Python/C.
All of the range fields translate to psycopg2 Range objects in python, but also accept tuples as input if no bounds information is necessary.
Tous les champs d'intervalle produisent des objets Range psycopg2 en Python, mais acceptent aussi des tuples en entrée si aucune information de limite n'est nécessaire.
A Q() object, like an F object, encapsulates a SQL expression in a Python object that can be used in database-related operations.
Un objet Q(), comme un objet F, encapsule une expression SQL dans un objet Python qui peut ensuite être utilisé dans des opérations liées à la base de données.
The functions in this chapter are specific to certain Python object types.
Les fonctions de ce chapitre sont spécifiques à certains types d'objets Python.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.