5
5
msgstr ""
6
6
"Project-Id-Version : Python 3\n "
7
7
"Report-Msgid-Bugs-To : \n "
8
- "POT-Creation-Date : 2020-08-24 09:01 +0200\n "
8
+ "POT-Creation-Date : 2020-10-15 22:05 +0200\n "
9
9
"PO-Revision-Date : 2018-07-03 11:36+0200\n "
10
10
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
11
11
"
Language-Team :
FRENCH <[email protected] >\n "
@@ -92,50 +92,51 @@ msgstr ""
92
92
#: c-api/dict.rst:83
93
93
msgid ""
94
94
"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; "
95
- "if it isn't, :exc:`TypeError` is raised. Return ``0`` on success or ``-1`` "
96
- "on failure."
95
+ "if it isn't, :exc:`TypeError` is raised. If *key* is not in the dictionary, : "
96
+ "exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure."
97
97
msgstr ""
98
98
99
- #: c-api/dict.rst:90
99
+ #: c-api/dict.rst:91
100
100
msgid ""
101
101
"Remove the entry in dictionary *p* which has a key specified by the string "
102
- "*key*. Return ``0`` on success or ``-1`` on failure."
102
+ "*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
103
+ "``0`` on success or ``-1`` on failure."
103
104
msgstr ""
104
105
105
- #: c-api/dict.rst:96
106
+ #: c-api/dict.rst:98
106
107
msgid ""
107
108
"Return the object from dictionary *p* which has a key *key*. Return "
108
109
"``NULL`` if the key *key* is not present, but *without* setting an exception."
109
110
msgstr ""
110
111
111
- #: c-api/dict.rst:99
112
+ #: c-api/dict.rst:101
112
113
msgid ""
113
114
"Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
114
115
"`__eq__` methods will get suppressed. To get error reporting use :c:func:"
115
116
"`PyDict_GetItemWithError()` instead."
116
117
msgstr ""
117
118
118
- #: c-api/dict.rst:106
119
+ #: c-api/dict.rst:108
119
120
msgid ""
120
121
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
121
122
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
122
123
"``NULL`` **without** an exception set if the key wasn't present."
123
124
msgstr ""
124
125
125
- #: c-api/dict.rst:114
126
+ #: c-api/dict.rst:116
126
127
msgid ""
127
128
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
128
129
"type:`const char*`, rather than a :c:type:`PyObject*`."
129
130
msgstr ""
130
131
131
- #: c-api/dict.rst:117
132
+ #: c-api/dict.rst:119
132
133
msgid ""
133
134
"Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
134
135
"`__eq__` methods and creating a temporary string object will get suppressed. "
135
136
"To get error reporting use :c:func:`PyDict_GetItemWithError()` instead."
136
137
msgstr ""
137
138
138
- #: c-api/dict.rst:125
139
+ #: c-api/dict.rst:127
139
140
msgid ""
140
141
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
141
142
"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -145,29 +146,29 @@ msgid ""
145
146
"the insertion."
146
147
msgstr ""
147
148
148
- #: c-api/dict.rst:135
149
+ #: c-api/dict.rst:137
149
150
msgid ""
150
151
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
151
152
msgstr ""
152
153
153
- #: c-api/dict.rst:140
154
+ #: c-api/dict.rst:142
154
155
msgid ""
155
156
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
156
157
msgstr ""
157
158
158
- #: c-api/dict.rst:145
159
+ #: c-api/dict.rst:147
159
160
msgid ""
160
161
"Return a :c:type:`PyListObject` containing all the values from the "
161
162
"dictionary *p*."
162
163
msgstr ""
163
164
164
- #: c-api/dict.rst:153
165
+ #: c-api/dict.rst:155
165
166
msgid ""
166
167
"Return the number of items in the dictionary. This is equivalent to "
167
168
"``len(p)`` on a dictionary."
168
169
msgstr ""
169
170
170
- #: c-api/dict.rst:159
171
+ #: c-api/dict.rst:161
171
172
msgid ""
172
173
"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
173
174
"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -181,18 +182,18 @@ msgid ""
181
182
"structure is sparse, the offsets are not consecutive."
182
183
msgstr ""
183
184
184
- #: c-api/dict.rst:170
185
+ #: c-api/dict.rst:172
185
186
msgid "For example::"
186
187
msgstr "Par exemple ::"
187
188
188
- #: c-api/dict.rst:180
189
+ #: c-api/dict.rst:182
189
190
msgid ""
190
191
"The dictionary *p* should not be mutated during iteration. It is safe to "
191
192
"modify the values of the keys as you iterate over the dictionary, but only "
192
193
"so long as the set of keys does not change. For example::"
193
194
msgstr ""
194
195
195
- #: c-api/dict.rst:205
196
+ #: c-api/dict.rst:207
196
197
msgid ""
197
198
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
198
199
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -202,7 +203,7 @@ msgid ""
202
203
"or ``-1`` if an exception was raised."
203
204
msgstr ""
204
205
205
- #: c-api/dict.rst:215
206
+ #: c-api/dict.rst:217
206
207
msgid ""
207
208
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
208
209
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -211,7 +212,7 @@ msgid ""
211
212
"exception was raised."
212
213
msgstr ""
213
214
214
- #: c-api/dict.rst:224
215
+ #: c-api/dict.rst:226
215
216
msgid ""
216
217
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
217
218
"*seq2* must be an iterable object producing iterable objects of length 2, "
0 commit comments