@@ -20,32 +20,39 @@ msgstr "Objets fonctions"
20
20
21
21
#: c-api/function.rst:10
22
22
msgid "There are a few functions specific to Python functions."
23
- msgstr ""
23
+ msgstr "Certaines fonctions sont spécifiques aux fonctions Python. "
24
24
25
25
#: c-api/function.rst:15
26
26
msgid "The C structure used for functions."
27
- msgstr ""
27
+ msgstr "La structure C utilisée pour les fonctions. "
28
28
29
29
#: c-api/function.rst:22
30
30
msgid ""
31
31
"This is an instance of :c:type:`PyTypeObject` and represents the Python "
32
32
"function type. It is exposed to Python programmers as ``types."
33
33
"FunctionType``."
34
34
msgstr ""
35
+ "C'est une instance de :c:type:`PyTypeObject` et représente le type fonction "
36
+ "en Python. Il est exposé aux développeurs comme ``types.FunctionType``."
35
37
36
38
#: c-api/function.rst:28
37
39
msgid ""
38
40
"Return true if *o* is a function object (has type :c:data:"
39
41
"`PyFunction_Type`). The parameter must not be ``NULL``. This function "
40
42
"always succeeds."
41
43
msgstr ""
44
+ "Renvoie vrai si *o* est un objet de type fonction (a comme type :c:data:"
45
+ "`PyFunction_Type`). Le paramètre ne doit pas être ``NULL``. Cette fonction "
46
+ "réussit toujours."
42
47
43
48
#: c-api/function.rst:34
44
49
msgid ""
45
50
"Return a new function object associated with the code object *code*. "
46
51
"*globals* must be a dictionary with the global variables accessible to the "
47
52
"function."
48
53
msgstr ""
54
+ "Renvoie une nouvelle fonction associée avec l'objet *code*. *globals* doit "
55
+ "être un dictionnaire avec les variables globales accessibles à la fonction."
49
56
50
57
#: c-api/function.rst:37
51
58
msgid ""
@@ -65,60 +72,77 @@ msgstr ""
65
72
66
73
#: c-api/function.rst:54
67
74
msgid "Return the code object associated with the function object *op*."
68
- msgstr ""
75
+ msgstr "Renvoie l'objet code associé avec l'objet de la fonction *op*. "
69
76
70
77
#: c-api/function.rst:59
71
78
msgid "Return the globals dictionary associated with the function object *op*."
72
79
msgstr ""
80
+ "Renvoie le dictionnaire global associé avec l'objet de la fonction *op*."
73
81
74
82
#: c-api/function.rst:64
75
83
msgid ""
76
84
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
77
85
"function object *op*. It can be *NULL*."
78
86
msgstr ""
87
+ "Renvoie un :term:`borrowed reference` à l'attribut ``__module__`` de l'objet "
88
+ "fonction *op*. Il peut être *NULL*."
79
89
80
90
#: c-api/function.rst:67
81
91
msgid ""
82
92
"This is normally a string containing the module name, but can be set to any "
83
93
"other object by Python code."
84
94
msgstr ""
95
+ "C'est typiquement une chaîne de caractère contenant le nom du module, mais "
96
+ "il peut être changé par du code Python pour n'importe quel autre objet."
85
97
86
98
#: c-api/function.rst:73
87
99
msgid ""
88
100
"Return the argument default values of the function object *op*. This can be "
89
101
"a tuple of arguments or ``NULL``."
90
102
msgstr ""
103
+ "Renvoie les valeurs par défaut de l'argument de l'objet de la fonction *op*. "
104
+ "Cela peut être un tuple d'arguments ou ``NULL``."
91
105
92
106
#: c-api/function.rst:79
93
107
msgid ""
94
108
"Set the argument default values for the function object *op*. *defaults* "
95
109
"must be ``Py_None`` or a tuple."
96
110
msgstr ""
111
+ "Définir les valeurs par défaut de l'argument pour l'objet de la fonction "
112
+ "*op*. *defaults* doit être ``Py_None`` ou un tuple."
97
113
98
114
#: c-api/function.rst:96 c-api/function.rst:110
99
115
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
100
- msgstr ""
116
+ msgstr "Lève :exc:`SystemError` et renvoie ``-1`` en cas de d'échec. "
101
117
102
118
#: c-api/function.rst:87
103
119
msgid ""
104
120
"Return the closure associated with the function object *op*. This can be "
105
121
"``NULL`` or a tuple of cell objects."
106
122
msgstr ""
123
+ "Renvoie la fermeture associée avec l'objet de la fonction *op*. Cela peut "
124
+ "être ``NULL`` ou un tuple d'objets cellule."
107
125
108
126
#: c-api/function.rst:93
109
127
msgid ""
110
128
"Set the closure associated with the function object *op*. *closure* must be "
111
129
"``Py_None`` or a tuple of cell objects."
112
130
msgstr ""
131
+ "Définir la fermeture associée avec l'objet de la fonction *op*. *closure* "
132
+ "doit être ``Py_None`` ou un tuple d'objets cellule."
113
133
114
134
#: c-api/function.rst:101
115
135
msgid ""
116
136
"Return the annotations of the function object *op*. This can be a mutable "
117
137
"dictionary or ``NULL``."
118
138
msgstr ""
139
+ "Renvoie les annotations de l'objet de la fonction *op*. Cela peut être un "
140
+ "dictionnaire mutable ou ``NULL``."
119
141
120
142
#: c-api/function.rst:107
121
143
msgid ""
122
144
"Set the annotations for the function object *op*. *annotations* must be a "
123
145
"dictionary or ``Py_None``."
124
146
msgstr ""
147
+ "Définir les annotations pour l'objet de la fonction *op*. *annotations* doit "
148
+ "être un dictionnaire ou ``Py_None``."
0 commit comments