2018-07-04 09:06:45 +00:00
|
|
|
|
# Copyright (C) 2001-2018, Python Software Foundation
|
2018-07-04 09:08:42 +00:00
|
|
|
|
# For licence information, see README file.
|
2016-10-30 09:46:26 +00:00
|
|
|
|
#
|
|
|
|
|
msgid ""
|
|
|
|
|
msgstr ""
|
|
|
|
|
"Project-Id-Version: Python 3.6\n"
|
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2017-04-02 20:14:06 +00:00
|
|
|
|
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
|
2017-10-31 16:49:39 +00:00
|
|
|
|
"PO-Revision-Date: 2017-11-07 22:52+0100\n"
|
|
|
|
|
"Last-Translator: Julien Palard <julien@palard.fr>\n"
|
2018-07-04 09:14:25 +00:00
|
|
|
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
2017-05-23 22:40:56 +00:00
|
|
|
|
"Language: fr\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
"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"
|
2017-10-31 16:49:39 +00:00
|
|
|
|
msgstr ":mod:`__main__` --- Point d'entrée des scripts"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../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 ""
|
2017-10-31 16:49:39 +00:00
|
|
|
|
"``'__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."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../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 ""
|
2017-10-31 16:49:39 +00:00
|
|
|
|
"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 "
|
2018-03-20 22:55:56 +00:00
|
|
|
|
"importé ::"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
|
|
#: ../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 ""
|
2017-10-31 16:49:39 +00:00
|
|
|
|
"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``."
|