c-api/code: Done.

This commit is contained in:
Julien Palard 2017-11-27 09:09:52 +01:00
parent 3cf6ea016c
commit eba48b219b

View File

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: Python 3.6\n" "Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 22:11+0200\n" "POT-Creation-Date: 2017-04-02 22:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-11-27 11:44+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: fr\n" "Language: fr\n"
@ -27,7 +27,7 @@ msgid ""
"represents a chunk of executable code that hasn't yet been bound into a " "represents a chunk of executable code that hasn't yet been bound into a "
"function." "function."
msgstr "" msgstr ""
"Les objets Code sont un détail bas-niveau de l'implémentation CPython. " "Les objets *Code* sont spécifiques à l'implémentation bas niveau de CPython. "
"Chacun d'eux représente une partie de code exécutable, qui n'a pas encore " "Chacun d'eux représente une partie de code exécutable, qui n'a pas encore "
"été lié dans une fonction." "été lié dans une fonction."
@ -36,20 +36,24 @@ msgid ""
"The C structure of the objects used to describe code objects. The fields of " "The C structure of the objects used to describe code objects. The fields of "
"this type are subject to change at any time." "this type are subject to change at any time."
msgstr "" msgstr ""
"La structure C utilisée pour décrire les objets *Code*. Les attributs de "
"cette structure sont sujets à changer à tout moment."
#: ../Doc/c-api/code.rst:24 #: ../Doc/c-api/code.rst:24
msgid "" msgid ""
"This is an instance of :c:type:`PyTypeObject` representing the Python :class:" "This is an instance of :c:type:`PyTypeObject` representing the Python :class:"
"`code` type." "`code` type."
msgstr "" msgstr ""
"C'est une instance de :c:type:`PyTypeObject` représentant le type Python :"
"class:`code`."
#: ../Doc/c-api/code.rst:30 #: ../Doc/c-api/code.rst:30
msgid "Return true if *co* is a :class:`code` object." msgid "Return true if *co* is a :class:`code` object."
msgstr "" msgstr "Renvoie vrai si *co* est un objet :class:`code`."
#: ../Doc/c-api/code.rst:34 #: ../Doc/c-api/code.rst:34
msgid "Return the number of free variables in *co*." msgid "Return the number of free variables in *co*."
msgstr "" msgstr "Renvoie le nombre de variables libres dans *co*."
#: ../Doc/c-api/code.rst:38 #: ../Doc/c-api/code.rst:38
msgid "" msgid ""
@ -58,6 +62,10 @@ msgid ""
"directly can bind you to a precise Python version since the definition of " "directly can bind you to a precise Python version since the definition of "
"the bytecode changes often." "the bytecode changes often."
msgstr "" msgstr ""
"Renvoie un nouvel objet *code*. Si vous avez besoin d'un objet code factice "
"pour créer une *frame*, utilisez plutôt :c:func:`PyCode_NewEmpty`. Appeler :"
"c:func:`PyCode_New` peut vous lier directement à une version spécifique de "
"Python, le *bytecode* étant sujet à modifications."
#: ../Doc/c-api/code.rst:46 #: ../Doc/c-api/code.rst:46
msgid "" msgid ""
@ -65,3 +73,6 @@ msgid ""
"and first line number. It is illegal to :func:`exec` or :func:`eval` the " "and first line number. It is illegal to :func:`exec` or :func:`eval` the "
"resulting code object." "resulting code object."
msgstr "" msgstr ""
"Renvoie un nouvel objet *code* avec le nom de fichier, le nom de fonction, "
"et le numéro de première ligne donnés. Il n'est pas permis d'utiliser :func:"
"`exec` ou :func:`eval` sur l'objet renvoyé."