@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2023-08-25 20:17 +0000\n "
14
+ "POT-Creation-Date : 2023-09-08 14:13 +0000\n "
15
15
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
16
16
"Last-Translator : Dmytro Kazanzhy, 2023\n "
17
17
"Language-Team : Ukrainian (https://app.transifex.com/python-doc/teams/5390/uk/)\n "
@@ -100,30 +100,29 @@ msgstr ""
100
100
"``0`` у разі успіху або ``-1`` у разі невдачі. Ця функція *не* викрадає "
101
101
"посилання на *val*."
102
102
103
- #: ../../c-api/dict.rst:75
103
+ #: ../../c-api/dict.rst:73
104
104
msgid ""
105
- "Insert *val* into the dictionary *p* using *key* as a key. *key* should be a"
106
- " :c:expr:`const char*` UTF-8 encoded bytes string. The key object is "
107
- "created using ``PyUnicode_FromString(key)``. Return ``0`` on success or "
108
- "``-1`` on failure. This function *does not* steal a reference to *val*."
105
+ "This is the same as :c:func:`PyDict_SetItem`, but *key* is specified as a "
106
+ ":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
107
+ ":c:expr:`PyObject*`."
109
108
msgstr ""
110
109
111
- #: ../../c-api/dict.rst:83
110
+ #: ../../c-api/dict.rst:80
112
111
msgid ""
113
112
"Remove the entry in dictionary *p* with key *key*. *key* must be "
114
113
":term:`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is not "
115
114
"in the dictionary, :exc:`KeyError` is raised. Return ``0`` on success or "
116
115
"``-1`` on failure."
117
116
msgstr ""
118
117
119
- #: ../../c-api/dict.rst:91
118
+ #: ../../c-api/dict.rst:88
120
119
msgid ""
121
- "Remove the entry in dictionary *p* which has a key specified by the UTF-8 "
122
- "encoded bytes string *key*. If *key* is not in the dictionary, "
123
- ":exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure ."
120
+ "This is the same as :c:func:`PyDict_DelItem`, but *key* is specified as a "
121
+ ":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
122
+ ":c:expr:`PyObject*` ."
124
123
msgstr ""
125
124
126
- #: ../../c-api/dict.rst:99
125
+ #: ../../c-api/dict.rst:95
127
126
msgid ""
128
127
"Return the object from dictionary *p* which has a key *key*. Return "
129
128
"``NULL`` if the key *key* is not present, but *without* setting an "
@@ -132,22 +131,22 @@ msgstr ""
132
131
"Повертає об’єкт зі словника *p*, який має ключ *key*. Повертає ``NULL``, "
133
132
"якщо ключ *key* відсутній, але *без* встановлення винятку."
134
133
135
- #: ../../c-api/dict.rst:104
134
+ #: ../../c-api/dict.rst:100
136
135
msgid ""
137
136
"Exceptions that occur while this calls :meth:`~object.__hash__` and "
138
137
":meth:`~object.__eq__` methods are silently ignored. Prefer the "
139
138
":c:func:`PyDict_GetItemWithError` function instead."
140
139
msgstr ""
141
140
142
- #: ../../c-api/dict.rst:108
141
+ #: ../../c-api/dict.rst:104
143
142
msgid ""
144
143
"Calling this API without :term:`GIL` held had been allowed for historical "
145
144
"reason. It is no longer allowed."
146
145
msgstr ""
147
146
"Виклик цього API без утримання :term:`GIL` був дозволений з історичних "
148
147
"причин. Це більше не дозволено."
149
148
150
- #: ../../c-api/dict.rst:115
149
+ #: ../../c-api/dict.rst:111
151
150
msgid ""
152
151
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
153
152
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -157,14 +156,14 @@ msgstr ""
157
156
"``NULL`` **з** встановленим винятком, якщо виняток стався. Повертає ``NULL``"
158
157
" **без** набору винятків, якщо ключ відсутній."
159
158
160
- #: ../../c-api/dict.rst:123
159
+ #: ../../c-api/dict.rst:119
161
160
msgid ""
162
161
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a "
163
162
":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
164
163
":c:expr:`PyObject*`."
165
164
msgstr ""
166
165
167
- #: ../../c-api/dict.rst:129
166
+ #: ../../c-api/dict.rst:125
168
167
msgid ""
169
168
"Exceptions that occur while this calls :meth:`~object.__hash__` and "
170
169
":meth:`~object.__eq__` methods or while creating the temporary :class:`str` "
@@ -173,7 +172,7 @@ msgid ""
173
172
":c:func:`PyUnicode_FromString` *key* instead."
174
173
msgstr ""
175
174
176
- #: ../../c-api/dict.rst:138
175
+ #: ../../c-api/dict.rst:134
177
176
msgid ""
178
177
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
179
178
"it returns the value corresponding to *key* from the dictionary *p*. If the"
@@ -188,33 +187,33 @@ msgstr ""
188
187
"*defaultobj*. Ця функція обчислює хеш-функцію *key* лише один раз, замість "
189
188
"того, щоб оцінювати її незалежно для пошуку та вставки."
190
189
191
- #: ../../c-api/dict.rst:148
190
+ #: ../../c-api/dict.rst:144
192
191
msgid ""
193
192
"Return a :c:type:`PyListObject` containing all the items from the "
194
193
"dictionary."
195
194
msgstr "Повертає :c:type:`PyListObject`, що містить усі елементи зі словника."
196
195
197
- #: ../../c-api/dict.rst:153
196
+ #: ../../c-api/dict.rst:149
198
197
msgid ""
199
198
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
200
199
msgstr "Повертає :c:type:`PyListObject`, що містить усі ключі зі словника."
201
200
202
- #: ../../c-api/dict.rst:158
201
+ #: ../../c-api/dict.rst:154
203
202
msgid ""
204
203
"Return a :c:type:`PyListObject` containing all the values from the "
205
204
"dictionary *p*."
206
205
msgstr ""
207
206
"Повертає :c:type:`PyListObject`, що містить усі значення зі словника *p*."
208
207
209
- #: ../../c-api/dict.rst:166
208
+ #: ../../c-api/dict.rst:162
210
209
msgid ""
211
210
"Return the number of items in the dictionary. This is equivalent to "
212
211
"``len(p)`` on a dictionary."
213
212
msgstr ""
214
213
"Повернути кількість елементів у словнику. Це еквівалентно ``len(p)`` у "
215
214
"словнику."
216
215
217
- #: ../../c-api/dict.rst:172
216
+ #: ../../c-api/dict.rst:168
218
217
msgid ""
219
218
"Iterate over all key-value pairs in the dictionary *p*. The "
220
219
":c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` "
@@ -228,11 +227,11 @@ msgid ""
228
227
"since the structure is sparse, the offsets are not consecutive."
229
228
msgstr ""
230
229
231
- #: ../../c-api/dict.rst:183
230
+ #: ../../c-api/dict.rst:179
232
231
msgid "For example::"
233
232
msgstr "Наприклад::"
234
233
235
- #: ../../c-api/dict.rst:193
234
+ #: ../../c-api/dict.rst:189
236
235
msgid ""
237
236
"The dictionary *p* should not be mutated during iteration. It is safe to "
238
237
"modify the values of the keys as you iterate over the dictionary, but only "
@@ -242,7 +241,7 @@ msgstr ""
242
241
"значення ключів під час перегляду словника, але лише до тих пір, поки набір "
243
242
"ключів не зміниться. Наприклад::"
244
243
245
- #: ../../c-api/dict.rst:218
244
+ #: ../../c-api/dict.rst:214
246
245
msgid ""
247
246
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
248
247
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -259,7 +258,7 @@ msgstr ""
259
258
"відповідного ключа. Повертає ``0`` у разі успіху або ``-1``, якщо було "
260
259
"викликано виключення."
261
260
262
- #: ../../c-api/dict.rst:228
261
+ #: ../../c-api/dict.rst:224
263
262
msgid ""
264
263
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to "
265
264
"``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall "
@@ -273,7 +272,7 @@ msgstr ""
273
272
"атрибута \" ключі\" . Повертає ``0`` у разі успіху або ``-1``, якщо було "
274
273
"викликано виключення."
275
274
276
- #: ../../c-api/dict.rst:237
275
+ #: ../../c-api/dict.rst:233
277
276
msgid ""
278
277
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
279
278
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -289,49 +288,49 @@ msgstr ""
289
288
"``0`` в разі успіху або ``-1``, якщо було викликано виключення. "
290
289
"Еквівалентний Python (за винятком значення, що повертається)::"
291
290
292
- #: ../../c-api/dict.rst:251
291
+ #: ../../c-api/dict.rst:247
293
292
msgid ""
294
293
"Register *callback* as a dictionary watcher. Return a non-negative integer "
295
294
"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
296
295
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
297
296
"exception."
298
297
msgstr ""
299
298
300
- #: ../../c-api/dict.rst:260
299
+ #: ../../c-api/dict.rst:256
301
300
msgid ""
302
301
"Clear watcher identified by *watcher_id* previously returned from "
303
302
":c:func:`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. "
304
303
"if the given *watcher_id* was never registered.)"
305
304
msgstr ""
306
305
307
- #: ../../c-api/dict.rst:268
306
+ #: ../../c-api/dict.rst:264
308
307
msgid ""
309
308
"Mark dictionary *dict* as watched. The callback granted *watcher_id* by "
310
309
":c:func:`PyDict_AddWatcher` will be called when *dict* is modified or "
311
310
"deallocated. Return ``0`` on success or ``-1`` on error."
312
311
msgstr ""
313
312
314
- #: ../../c-api/dict.rst:276
313
+ #: ../../c-api/dict.rst:272
315
314
msgid ""
316
315
"Mark dictionary *dict* as no longer watched. The callback granted "
317
316
"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
318
317
"*dict* is modified or deallocated. The dict must previously have been "
319
318
"watched by this watcher. Return ``0`` on success or ``-1`` on error."
320
319
msgstr ""
321
320
322
- #: ../../c-api/dict.rst:285
321
+ #: ../../c-api/dict.rst:281
323
322
msgid ""
324
323
"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
325
324
"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
326
325
"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
327
326
"``PyDict_EVENT_DEALLOCATED``."
328
327
msgstr ""
329
328
330
- #: ../../c-api/dict.rst:293
329
+ #: ../../c-api/dict.rst:289
331
330
msgid "Type of a dict watcher callback function."
332
331
msgstr ""
333
332
334
- #: ../../c-api/dict.rst:295
333
+ #: ../../c-api/dict.rst:291
335
334
msgid ""
336
335
"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both"
337
336
" *key* and *new_value* will be ``NULL``. If *event* is "
@@ -340,23 +339,23 @@ msgid ""
340
339
" deleted from the dictionary and *new_value* will be ``NULL``."
341
340
msgstr ""
342
341
343
- #: ../../c-api/dict.rst:301
342
+ #: ../../c-api/dict.rst:297
344
343
msgid ""
345
344
"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
346
345
"dict is merged into it. To maintain efficiency of this operation, per-key "
347
346
"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
348
347
"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
349
348
msgstr ""
350
349
351
- #: ../../c-api/dict.rst:307
350
+ #: ../../c-api/dict.rst:303
352
351
msgid ""
353
352
"The callback may inspect but must not modify *dict*; doing so could have "
354
353
"unpredictable effects, including infinite recursion. Do not trigger Python "
355
354
"code execution in the callback, as it could modify the dict as a side "
356
355
"effect."
357
356
msgstr ""
358
357
359
- #: ../../c-api/dict.rst:311
358
+ #: ../../c-api/dict.rst:307
360
359
msgid ""
361
360
"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
362
361
"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -365,20 +364,20 @@ msgid ""
365
364
"again."
366
365
msgstr ""
367
366
368
- #: ../../c-api/dict.rst:317
367
+ #: ../../c-api/dict.rst:313
369
368
msgid ""
370
369
"Callbacks occur before the notified modification to *dict* takes place, so "
371
370
"the prior state of *dict* can be inspected."
372
371
msgstr ""
373
372
374
- #: ../../c-api/dict.rst:320
373
+ #: ../../c-api/dict.rst:316
375
374
msgid ""
376
375
"If the callback sets an exception, it must return ``-1``; this exception "
377
376
"will be printed as an unraisable exception using "
378
377
":c:func:`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
379
378
msgstr ""
380
379
381
- #: ../../c-api/dict.rst:324
380
+ #: ../../c-api/dict.rst:320
382
381
msgid ""
383
382
"There may already be a pending exception set on entry to the callback. In "
384
383
"this case, the callback should return ``0`` with the same exception still "
@@ -395,14 +394,10 @@ msgstr "об'єкт"
395
394
msgid "dictionary"
396
395
msgstr "словник"
397
396
398
- #: ../../c-api/dict.rst:73
399
- msgid "PyUnicode_FromString()"
400
- msgstr ""
401
-
402
- #: ../../c-api/dict.rst:164
397
+ #: ../../c-api/dict.rst:160
403
398
msgid "built-in function"
404
399
msgstr ""
405
400
406
- #: ../../c-api/dict.rst:164
401
+ #: ../../c-api/dict.rst:160
407
402
msgid "len"
408
403
msgstr ""
0 commit comments