Moving on, in this article we will assemble some basic commands into a simple test inside a Python file so they can all be run as a single entity.
Pour continuer, dans cet article, nous allons assembler quelques commandes de base dans un test simple, à l'intérieur d'un fichier Python, afin qu'ils puissent tous être gérés comme une seule entité.
For example, if an instructor uploads a Python file (.py) as a lecture, the file will not be available on the app.
Par exemple, si un formateur télécharge un fichier Python (.py) pour créer une session, le fichier ne sera pas disponible sur l'application.
In Part 3, we'll compile this script into a Python file which we can reuse each time we want to run the test.
Dans la partie 3, nous allons compiler ce script dans un fichier Python que nous pourrons réutiliser à chaque fois que l'on voudra exécuter un test.
On Windows, when you want to edit a Python file, you open the context menu of the file (right click), then select Edit with IDLE.
Sous Windows, quand on souhaite éditer un fichier Python, on ouvre le menu contexte du fichier (clic droit), puis on sélectionne Edit with IDLE.
In debug mode, the server also reload automatically any modified Python file; Default: False
En mode debug, le serveur recharge aussi automatiquement tout fichier Python modifié. Défaut: False
Some subclasses of File, including ContentFile and FieldFile, may replace this attribute with an object other than a Python file object.
Certaines sous-classes de File, incluant ContentFile et FieldFile, peuvent remplacer cet attribut par un objet autre qu'un objet fichier Python.
In the dropdown menu beneath the name box, choose the Python file type.
If you're starting with a Python file object f, first do f.flush(), and then do os.fsync(f.fileno()), to ensure that all internal buffers associated with f are written to disk.
Si vous débutez avec un file object Python mis en tampon f, commencez par faire f.flush() et seulement ensuite os.fsync(f.fileno()) pour être sûr que tous les tampons internes associés à f soient écrits sur le disque.
The side code editor allows for easier entry of larger blocks of code with the ability to open and run any Python file in the QGIS session.
L'éditeur de code permet l'intégration de gros blocs de code par la possibilité d'ouvrir et de lancer des fichiers Python dans la session QGIS.
Even if Notepad++ is my favorite editor for many file formats, it does not satisfy me as much as the default Python file editor, IDLE, provided by the Python installer.
Si Notepad++ est mon éditeur pour de nombreux formats de fichier, il ne me satisfait pas autant que l'éditeur par défaut de Python, IDLE, fourni avec l'installeur.
The File class is a thin wrapper around a Python file object with some Django-specific additions.
La classe File est une enveloppe légère autour d'un objet fichier de Python, doté de quelques ajouts spécifiques à Django.
It is a pure Python file using the FFI (Foreign Function Interface) module ctypes.
C'est un fichier en pure Python qui utilise le module FFI (Foreign Function Interface) ctypes.
A word processor will leave unseen codes that will cause problems and may prevent a bash or python file from working.
Un traitement de texte ajoute des caractères invisibles qui causent des problèmes et empêchent les scripts bash ou Python de fonctionner.