@@ -14,7 +14,7 @@ msgid ""
14
14
msgstr ""
15
15
"Project-Id-Version : Python 3.12\n "
16
16
"Report-Msgid-Bugs-To : \n "
17
- "POT-Creation-Date : 2023-08-18 14:13 +0000\n "
17
+ "POT-Creation-Date : 2023-08-25 20:17 +0000\n "
18
18
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
19
19
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2023\n "
20
20
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -108,14 +108,10 @@ msgstr ""
108
108
#: ../../c-api/dict.rst:75
109
109
msgid ""
110
110
"Insert *val* into the dictionary *p* using *key* as a key. *key* should be "
111
- "a :c:expr:`const char*`. The key object is created using "
112
- "``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on "
113
- "failure. This function *does not* steal a reference to *val*."
111
+ "a :c:expr:`const char*` UTF-8 encoded bytes string . The key object is "
112
+ "created using ``PyUnicode_FromString(key)``. Return ``0`` on success or "
113
+ "``-1`` on failure. This function *does not* steal a reference to *val*."
114
114
msgstr ""
115
- "Insere *val* no dicionário *p* usando *key* como uma chave. *key* deve ser "
116
- "a :c:expr:`const char*`. O objeto chave é criado usando "
117
- "``PyUnicode_FromString(key)``. Retorna ``0`` em caso de sucesso ou ``-1`` em "
118
- "caso de falha. Esta função *não* rouba uma referência a *val*."
119
115
120
116
#: ../../c-api/dict.rst:83
121
117
msgid ""
@@ -131,15 +127,12 @@ msgstr ""
131
127
132
128
#: ../../c-api/dict.rst:91
133
129
msgid ""
134
- "Remove the entry in dictionary *p* which has a key specified by the string "
135
- "*key*. If *key* is not in the dictionary, :exc:`KeyError` is raised. Return "
136
- "``0`` on success or ``-1`` on failure."
130
+ "Remove the entry in dictionary *p* which has a key specified by the UTF-8 "
131
+ "encoded bytes string *key*. If *key* is not in the dictionary, :exc:"
132
+ "`KeyError` is raised. Return ` `0`` on success or ``-1`` on failure."
137
133
msgstr ""
138
- "Remove a entrada no dicionário *p* que tem uma chave especificada pela "
139
- "string *key*. Se *key* não estiver no dicionário, :exc:`KeyError` é "
140
- "levantada. Retorna ``0`` em caso de sucesso ou ``-1`` em caso de falha."
141
134
142
- #: ../../c-api/dict.rst:98
135
+ #: ../../c-api/dict.rst:99
143
136
msgid ""
144
137
"Return the object from dictionary *p* which has a key *key*. Return "
145
138
"``NULL`` if the key *key* is not present, but *without* setting an exception."
@@ -148,7 +141,7 @@ msgstr ""
148
141
"``NULL`` se a chave *key* não estiver presente, mas *sem* definir uma "
149
142
"exceção."
150
143
151
- #: ../../c-api/dict.rst:103
144
+ #: ../../c-api/dict.rst:104
152
145
msgid ""
153
146
"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
154
147
"`~object.__eq__` methods are silently ignored. Prefer the :c:func:"
@@ -158,15 +151,15 @@ msgstr ""
158
151
"`~object.__eq__` são ignoradas silenciosamente. Ao invés disso, use a "
159
152
"função :c:func:`PyDict_GetItemWithError`."
160
153
161
- #: ../../c-api/dict.rst:107
154
+ #: ../../c-api/dict.rst:108
162
155
msgid ""
163
156
"Calling this API without :term:`GIL` held had been allowed for historical "
164
157
"reason. It is no longer allowed."
165
158
msgstr ""
166
159
"Chamar esta API sem :term:`GIL` retido foi permitido por motivos históricos. "
167
160
"Não é mais permitido."
168
161
169
- #: ../../c-api/dict.rst:114
162
+ #: ../../c-api/dict.rst:115
170
163
msgid ""
171
164
"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
172
165
"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -176,15 +169,14 @@ msgstr ""
176
169
"``NULL`` **com** uma exceção definida se uma exceção ocorreu. Retorna "
177
170
"``NULL`` ** sem ** uma exceção definida se a chave não estiver presente."
178
171
179
- #: ../../c-api/dict.rst:122
172
+ #: ../../c-api/dict.rst:123
180
173
msgid ""
181
174
"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
182
- "expr:`const char*`, rather than a :c:expr:`PyObject*`."
175
+ "expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
176
+ "`PyObject*`."
183
177
msgstr ""
184
- "É o mesmo que :c:func:`PyDict_GetItem`, mas *key* é especificada como um :c:"
185
- "expr:`const char*`, em vez de um :c:expr:`PyObject*`."
186
178
187
- #: ../../c-api/dict.rst:127
179
+ #: ../../c-api/dict.rst:129
188
180
msgid ""
189
181
"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
190
182
"`~object.__eq__` methods or while creating the temporary :class:`str` object "
@@ -197,7 +189,7 @@ msgstr ""
197
189
"`PyDict_GetItemWithError` com sua própria *key* de :c:func:"
198
190
"`PyUnicode_FromString`."
199
191
200
- #: ../../c-api/dict.rst:136
192
+ #: ../../c-api/dict.rst:138
201
193
msgid ""
202
194
"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
203
195
"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -212,35 +204,35 @@ msgstr ""
212
204
"será retornado. Esta função avalia a função hash de *key* apenas uma vez, em "
213
205
"vez de avaliá-la independentemente para a pesquisa e a inserção."
214
206
215
- #: ../../c-api/dict.rst:146
207
+ #: ../../c-api/dict.rst:148
216
208
msgid ""
217
209
"Return a :c:type:`PyListObject` containing all the items from the dictionary."
218
210
msgstr ""
219
211
"Retorna um :c:type:`PyListObject` contendo todos os itens do dicionário."
220
212
221
- #: ../../c-api/dict.rst:151
213
+ #: ../../c-api/dict.rst:153
222
214
msgid ""
223
215
"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
224
216
msgstr ""
225
217
"Retorna um :c:type:`PyListObject` contendo todas as chaves do dicionário."
226
218
227
- #: ../../c-api/dict.rst:156
219
+ #: ../../c-api/dict.rst:158
228
220
msgid ""
229
221
"Return a :c:type:`PyListObject` containing all the values from the "
230
222
"dictionary *p*."
231
223
msgstr ""
232
224
"Retorna um :c:type:`PyListObject` contendo todos os valores do dicionário "
233
225
"*p*."
234
226
235
- #: ../../c-api/dict.rst:164
227
+ #: ../../c-api/dict.rst:166
236
228
msgid ""
237
229
"Return the number of items in the dictionary. This is equivalent to "
238
230
"``len(p)`` on a dictionary."
239
231
msgstr ""
240
232
"Retorna o número de itens no dicionário. Isso é equivalente a ``len(p)`` em "
241
233
"um dicionário."
242
234
243
- #: ../../c-api/dict.rst:170
235
+ #: ../../c-api/dict.rst:172
244
236
msgid ""
245
237
"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
246
238
"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -264,11 +256,11 @@ msgstr ""
264
256
"Seu valor representa deslocamentos dentro da estrutura do dicionário interno "
265
257
"e, como a estrutura é esparsa, os deslocamentos não são consecutivos."
266
258
267
- #: ../../c-api/dict.rst:181
259
+ #: ../../c-api/dict.rst:183
268
260
msgid "For example::"
269
261
msgstr "Por exemplo::"
270
262
271
- #: ../../c-api/dict.rst:191
263
+ #: ../../c-api/dict.rst:193
272
264
msgid ""
273
265
"The dictionary *p* should not be mutated during iteration. It is safe to "
274
266
"modify the values of the keys as you iterate over the dictionary, but only "
@@ -278,7 +270,7 @@ msgstr ""
278
270
"modificar os valores das chaves à medida que você itera no dicionário, mas "
279
271
"apenas enquanto o conjunto de chaves não mudar. Por exemplo::"
280
272
281
- #: ../../c-api/dict.rst:216
273
+ #: ../../c-api/dict.rst:218
282
274
msgid ""
283
275
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
284
276
"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -295,7 +287,7 @@ msgstr ""
295
287
"adicionados apenas se não houver uma chave correspondente em *a*. Retorna "
296
288
"``0`` em caso de sucesso ou ``-1`` se uma exceção foi levantada."
297
289
298
- #: ../../c-api/dict.rst:226
290
+ #: ../../c-api/dict.rst:228
299
291
msgid ""
300
292
"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
301
293
"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -309,7 +301,7 @@ msgstr ""
309
301
"argumento não tiver o atributo \" keys\" . Retorna ``0`` em caso de sucesso ou "
310
302
"``-1`` se uma exceção foi levantada."
311
303
312
- #: ../../c-api/dict.rst:235
304
+ #: ../../c-api/dict.rst:237
313
305
msgid ""
314
306
"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
315
307
"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -324,49 +316,49 @@ msgstr ""
324
316
"vence. Retorne ``0`` em caso de sucesso ou ``-1`` se uma exceção foi "
325
317
"levantada. Python equivalente (exceto para o valor de retorno)::"
326
318
327
- #: ../../c-api/dict.rst:249
319
+ #: ../../c-api/dict.rst:251
328
320
msgid ""
329
321
"Register *callback* as a dictionary watcher. Return a non-negative integer "
330
322
"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
331
323
"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
332
324
"exception."
333
325
msgstr ""
334
326
335
- #: ../../c-api/dict.rst:258
327
+ #: ../../c-api/dict.rst:260
336
328
msgid ""
337
329
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
338
330
"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
339
331
"given *watcher_id* was never registered.)"
340
332
msgstr ""
341
333
342
- #: ../../c-api/dict.rst:266
334
+ #: ../../c-api/dict.rst:268
343
335
msgid ""
344
336
"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
345
337
"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
346
338
"deallocated. Return ``0`` on success or ``-1`` on error."
347
339
msgstr ""
348
340
349
- #: ../../c-api/dict.rst:274
341
+ #: ../../c-api/dict.rst:276
350
342
msgid ""
351
343
"Mark dictionary *dict* as no longer watched. The callback granted "
352
344
"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
353
345
"*dict* is modified or deallocated. The dict must previously have been "
354
346
"watched by this watcher. Return ``0`` on success or ``-1`` on error."
355
347
msgstr ""
356
348
357
- #: ../../c-api/dict.rst:283
349
+ #: ../../c-api/dict.rst:285
358
350
msgid ""
359
351
"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
360
352
"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
361
353
"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
362
354
"``PyDict_EVENT_DEALLOCATED``."
363
355
msgstr ""
364
356
365
- #: ../../c-api/dict.rst:291
357
+ #: ../../c-api/dict.rst:293
366
358
msgid "Type of a dict watcher callback function."
367
359
msgstr ""
368
360
369
- #: ../../c-api/dict.rst:293
361
+ #: ../../c-api/dict.rst:295
370
362
msgid ""
371
363
"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
372
364
"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -375,22 +367,22 @@ msgid ""
375
367
"dictionary and *new_value* will be ``NULL``."
376
368
msgstr ""
377
369
378
- #: ../../c-api/dict.rst:299
370
+ #: ../../c-api/dict.rst:301
379
371
msgid ""
380
372
"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
381
373
"dict is merged into it. To maintain efficiency of this operation, per-key "
382
374
"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
383
375
"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
384
376
msgstr ""
385
377
386
- #: ../../c-api/dict.rst:305
378
+ #: ../../c-api/dict.rst:307
387
379
msgid ""
388
380
"The callback may inspect but must not modify *dict*; doing so could have "
389
381
"unpredictable effects, including infinite recursion. Do not trigger Python "
390
382
"code execution in the callback, as it could modify the dict as a side effect."
391
383
msgstr ""
392
384
393
- #: ../../c-api/dict.rst:309
385
+ #: ../../c-api/dict.rst:311
394
386
msgid ""
395
387
"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
396
388
"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -399,20 +391,20 @@ msgid ""
399
391
"again."
400
392
msgstr ""
401
393
402
- #: ../../c-api/dict.rst:315
394
+ #: ../../c-api/dict.rst:317
403
395
msgid ""
404
396
"Callbacks occur before the notified modification to *dict* takes place, so "
405
397
"the prior state of *dict* can be inspected."
406
398
msgstr ""
407
399
408
- #: ../../c-api/dict.rst:318
400
+ #: ../../c-api/dict.rst:320
409
401
msgid ""
410
402
"If the callback sets an exception, it must return ``-1``; this exception "
411
403
"will be printed as an unraisable exception using :c:func:"
412
404
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
413
405
msgstr ""
414
406
415
- #: ../../c-api/dict.rst:322
407
+ #: ../../c-api/dict.rst:324
416
408
msgid ""
417
409
"There may already be a pending exception set on entry to the callback. In "
418
410
"this case, the callback should return ``0`` with the same exception still "
@@ -433,10 +425,10 @@ msgstr "dicionário"
433
425
msgid "PyUnicode_FromString()"
434
426
msgstr ""
435
427
436
- #: ../../c-api/dict.rst:162
428
+ #: ../../c-api/dict.rst:164
437
429
msgid "built-in function"
438
430
msgstr "função embutida"
439
431
440
- #: ../../c-api/dict.rst:162
432
+ #: ../../c-api/dict.rst:164
441
433
msgid "len"
442
434
msgstr "len"
0 commit comments