@@ -9,8 +9,8 @@ msgstr ""
99"Project-Id-Version : Python 3.6\n "
1010"Report-Msgid-Bugs-To : \n "
1111"POT-Creation-Date : 2017-04-02 22:11+0200\n "
12- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE \n "
13- "Last-Translator : FULL NAME <EMAIL@ADDRESS >\n "
12+ "PO-Revision-Date : 2017-11-07 22:52+0100 \n "
13+ "Last-Translator : Julien Palard <julien@palard.fr >\n "
1414"Language-Team : LANGUAGE <LL@li.org>\n "
1515"Language : fr\n "
1616"MIME-Version : 1.0\n "
@@ -19,14 +19,18 @@ msgstr ""
1919
2020#: ../Doc/library/__main__.rst:3
2121msgid ":mod:`__main__` --- Top-level script environment"
22- msgstr ":mod:`__main__` --- Environnement premier du script "
22+ msgstr ":mod:`__main__` --- Point d'entrée des scripts "
2323
2424#: ../Doc/library/__main__.rst:10
2525msgid ""
2626"``'__main__'`` is the name of the scope in which top-level code executes. A "
2727"module's __name__ is set equal to ``'__main__'`` when read from standard "
2828"input, a script, or from an interactive prompt."
2929msgstr ""
30+ "``'__main__'`` est le nom du *scope* dans lequel le code s'exécute en "
31+ "premier. Le nom d'un module (son *__name__*) vaut ``'__main__'`` lorsqu'il "
32+ "est lu de l'entrée standard, lorsque c'est un script, ou une invite "
33+ "interactive."
3034
3135#: ../Doc/library/__main__.rst:14
3236msgid ""
@@ -35,10 +39,16 @@ msgid ""
3539"executing code in a module when it is run as a script or with ``python -m`` "
3640"but not when it is imported::"
3741msgstr ""
42+ "Un module peut découvrir s'il est exécuté dans le *scope* principal en "
43+ "vérifiant son ``__name__``, ce qui permet typiquement d'exécuter du code "
44+ "lorsque le module est exécuté avec ``python -m`` mais pas lorsqu'il est "
45+ "importé."
3846
3947#: ../Doc/library/__main__.rst:23
4048msgid ""
4149"For a package, the same effect can be achieved by including a ``__main__."
4250"py`` module, the contents of which will be executed when the module is run "
4351"with ``-m``."
4452msgstr ""
53+ "Pour un paquet, le même effet peut être obtenu en utilisant un module "
54+ "``__main__.py``, son contenu sera exécuté si le paquet est lancé via ``-m``."
0 commit comments