forked from AFPy/python-docs-fr
52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
# Copyright (C) 2001-2018, Python Software Foundation
|
||
# For licence information, see README file.
|
||
#
|
||
msgid ""
|
||
msgstr ""
|
||
"Project-Id-Version: Python 3.6\n"
|
||
"Report-Msgid-Bugs-To: \n"
|
||
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
|
||
"PO-Revision-Date: 2017-11-07 22:52+0100\n"
|
||
"Last-Translator: Julien Palard <julien@palard.fr>\n"
|
||
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
||
"Language: fr\n"
|
||
"MIME-Version: 1.0\n"
|
||
"Content-Type: text/plain; charset=UTF-8\n"
|
||
"Content-Transfer-Encoding: 8bit\n"
|
||
|
||
#: ../Doc/library/__main__.rst:3
|
||
msgid ":mod:`__main__` --- Top-level script environment"
|
||
msgstr ":mod:`__main__` — Point d'entrée des scripts"
|
||
|
||
#: ../Doc/library/__main__.rst:10
|
||
msgid ""
|
||
"``'__main__'`` is the name of the scope in which top-level code executes. A "
|
||
"module's __name__ is set equal to ``'__main__'`` when read from standard "
|
||
"input, a script, or from an interactive prompt."
|
||
msgstr ""
|
||
"``'__main__'`` est le nom du *scope* dans lequel le code s'exécute en "
|
||
"premier. Le nom d'un module (son *__name__*) vaut ``'__main__'`` lorsqu'il "
|
||
"est lu de l'entrée standard, lorsque c'est un script, ou une invite "
|
||
"interactive."
|
||
|
||
#: ../Doc/library/__main__.rst:14
|
||
msgid ""
|
||
"A module can discover whether or not it is running in the main scope by "
|
||
"checking its own ``__name__``, which allows a common idiom for conditionally "
|
||
"executing code in a module when it is run as a script or with ``python -m`` "
|
||
"but not when it is imported::"
|
||
msgstr ""
|
||
"Un module peut découvrir s'il est exécuté dans le *scope* principal en "
|
||
"vérifiant son ``__name__``, ce qui permet typiquement d'exécuter du code "
|
||
"lorsque le module est exécuté avec ``python -m`` mais pas lorsqu'il est "
|
||
"importé ::"
|
||
|
||
#: ../Doc/library/__main__.rst:23
|
||
msgid ""
|
||
"For a package, the same effect can be achieved by including a ``__main__."
|
||
"py`` module, the contents of which will be executed when the module is run "
|
||
"with ``-m``."
|
||
msgstr ""
|
||
"Pour un paquet, le même effet peut être obtenu en utilisant un module "
|
||
"``__main__.py``, son contenu sera exécuté si le paquet est lancé via ``-m``."
|