1
0
Fork 0
python-docs-fr/library/__main__.po

52 lines
2.0 KiB
Plaintext
Raw Normal View History

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 ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2020-09-11 07:11:46 +00:00
"POT-Creation-Date: 2020-08-24 09:01+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"
#: library/__main__.rst:3
2016-10-30 09:46:26 +00:00
msgid ":mod:`__main__` --- Top-level script environment"
msgstr ":mod:`__main__` — Point d'entrée des scripts"
2016-10-30 09:46:26 +00:00
#: library/__main__.rst:10
2016-10-30 09:46:26 +00:00
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
#: library/__main__.rst:14
2016-10-30 09:46:26 +00:00
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 "
"importé ::"
2016-10-30 09:46:26 +00:00
#: library/__main__.rst:23
2016-10-30 09:46:26 +00:00
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``."