@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.12\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2023-05-26 14:12 +0000\n "
17+ "POT-Creation-Date : 2023-06-30 14:13 +0000\n "
1818"PO-Revision-Date : 2021-06-28 00:48+0000\n "
1919"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n "
2020"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -148,25 +148,22 @@ msgstr ""
148148"``NULL`` se a chave *key* não estiver presente, mas *sem* definir uma "
149149"exceção."
150150
151- #: ../../c-api/dict.rst:101
151+ #: ../../c-api/dict.rst:103
152152msgid ""
153- "Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
154- "`__eq__` methods will get suppressed. To get error reporting use :c:func:"
155- "`PyDict_GetItemWithError()` instead."
153+ "Exceptions that occur while this calls :meth:`~object. __hash__` and :meth:"
154+ "`~object. __eq__` methods are silently ignored. Prefer the :c:func:"
155+ "`PyDict_GetItemWithError` function instead."
156156msgstr ""
157- "Observe que as exceções que ocorrem ao chamar os métodos :meth:`__hash__` e :"
158- "meth:`__eq__` serão suprimidas. Para obter o relatório de erros, use :c:func:"
159- "`PyDict_GetItemWithError()`."
160157
161- #: ../../c-api/dict.rst:105
158+ #: ../../c-api/dict.rst:107
162159msgid ""
163160"Calling this API without :term:`GIL` held had been allowed for historical "
164161"reason. It is no longer allowed."
165162msgstr ""
166163"Chamar esta API sem :term:`GIL` retido foi permitido por motivos históricos. "
167164"Não é mais permitido."
168165
169- #: ../../c-api/dict.rst:112
166+ #: ../../c-api/dict.rst:114
170167msgid ""
171168"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
172169"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -176,25 +173,23 @@ msgstr ""
176173"``NULL`` **com** uma exceção definida se uma exceção ocorreu. Retorna "
177174"``NULL`` ** sem ** uma exceção definida se a chave não estiver presente."
178175
179- #: ../../c-api/dict.rst:120
176+ #: ../../c-api/dict.rst:122
180177msgid ""
181178"This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:"
182179"expr:`const char*`, rather than a :c:expr:`PyObject*`."
183180msgstr ""
184181"É o mesmo que :c:func:`PyDict_GetItem`, mas *key* é especificada como um :c:"
185182"expr:`const char*`, em vez de um :c:expr:`PyObject*`."
186183
187- #: ../../c-api/dict.rst:123
184+ #: ../../c-api/dict.rst:127
188185msgid ""
189- "Note that exceptions which occur while calling :meth:`__hash__` and :meth:"
190- "`__eq__` methods and creating a temporary string object will get suppressed. "
191- "To get error reporting use :c:func:`PyDict_GetItemWithError()` instead."
186+ "Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
187+ "`~object.__eq__` methods or while creating the temporary :class:`str` object "
188+ "are silently ignored. Prefer using the :c:func:`PyDict_GetItemWithError` "
189+ "function with your own :c:func:`PyUnicode_FromString` *key* instead."
192190msgstr ""
193- "Observe que as exceções que ocorrem ao chamar os métodos :meth:`__hash__` e :"
194- "meth:`__eq__` e criar um objeto string temporário serão suprimidas. Para "
195- "obter o relatório de erros, use :c:func:`PyDict_GetItemWithError()`."
196191
197- #: ../../c-api/dict.rst:131
192+ #: ../../c-api/dict.rst:136
198193msgid ""
199194"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
200195"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -209,35 +204,35 @@ msgstr ""
209204"será retornado. Esta função avalia a função hash de *key* apenas uma vez, em "
210205"vez de avaliá-la independentemente para a pesquisa e a inserção."
211206
212- #: ../../c-api/dict.rst:141
207+ #: ../../c-api/dict.rst:146
213208msgid ""
214209"Return a :c:type:`PyListObject` containing all the items from the dictionary."
215210msgstr ""
216211"Retorna um :c:type:`PyListObject` contendo todos os itens do dicionário."
217212
218- #: ../../c-api/dict.rst:146
213+ #: ../../c-api/dict.rst:151
219214msgid ""
220215"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
221216msgstr ""
222217"Retorna um :c:type:`PyListObject` contendo todas as chaves do dicionário."
223218
224- #: ../../c-api/dict.rst:151
219+ #: ../../c-api/dict.rst:156
225220msgid ""
226221"Return a :c:type:`PyListObject` containing all the values from the "
227222"dictionary *p*."
228223msgstr ""
229224"Retorna um :c:type:`PyListObject` contendo todos os valores do dicionário "
230225"*p*."
231226
232- #: ../../c-api/dict.rst:159
227+ #: ../../c-api/dict.rst:164
233228msgid ""
234229"Return the number of items in the dictionary. This is equivalent to "
235230"``len(p)`` on a dictionary."
236231msgstr ""
237232"Retorna o número de itens no dicionário. Isso é equivalente a ``len(p)`` em "
238233"um dicionário."
239234
240- #: ../../c-api/dict.rst:165
235+ #: ../../c-api/dict.rst:170
241236msgid ""
242237"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
243238"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -261,11 +256,11 @@ msgstr ""
261256"Seu valor representa deslocamentos dentro da estrutura do dicionário interno "
262257"e, como a estrutura é esparsa, os deslocamentos não são consecutivos."
263258
264- #: ../../c-api/dict.rst:176
259+ #: ../../c-api/dict.rst:181
265260msgid "For example::"
266261msgstr "Por exemplo::"
267262
268- #: ../../c-api/dict.rst:186
263+ #: ../../c-api/dict.rst:191
269264msgid ""
270265"The dictionary *p* should not be mutated during iteration. It is safe to "
271266"modify the values of the keys as you iterate over the dictionary, but only "
@@ -275,7 +270,7 @@ msgstr ""
275270"modificar os valores das chaves à medida que você itera no dicionário, mas "
276271"apenas enquanto o conjunto de chaves não mudar. Por exemplo::"
277272
278- #: ../../c-api/dict.rst:211
273+ #: ../../c-api/dict.rst:216
279274msgid ""
280275"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
281276"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -292,7 +287,7 @@ msgstr ""
292287"adicionados apenas se não houver uma chave correspondente em *a*. Retorna "
293288"``0`` em caso de sucesso ou ``-1`` se uma exceção foi levantada."
294289
295- #: ../../c-api/dict.rst:221
290+ #: ../../c-api/dict.rst:226
296291msgid ""
297292"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
298293"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -306,7 +301,7 @@ msgstr ""
306301"argumento não tiver o atributo \" keys\" . Retorna ``0`` em caso de sucesso ou "
307302"``-1`` se uma exceção foi levantada."
308303
309- #: ../../c-api/dict.rst:230
304+ #: ../../c-api/dict.rst:235
310305msgid ""
311306"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
312307"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -321,49 +316,49 @@ msgstr ""
321316"vence. Retorne ``0`` em caso de sucesso ou ``-1`` se uma exceção foi "
322317"levantada. Python equivalente (exceto para o valor de retorno)::"
323318
324- #: ../../c-api/dict.rst:244
319+ #: ../../c-api/dict.rst:249
325320msgid ""
326321"Register *callback* as a dictionary watcher. Return a non-negative integer "
327322"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
328323"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
329324"exception."
330325msgstr ""
331326
332- #: ../../c-api/dict.rst:253
327+ #: ../../c-api/dict.rst:258
333328msgid ""
334329"Clear watcher identified by *watcher_id* previously returned from :c:func:"
335330"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
336331"given *watcher_id* was never registered.)"
337332msgstr ""
338333
339- #: ../../c-api/dict.rst:261
334+ #: ../../c-api/dict.rst:266
340335msgid ""
341336"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
342337"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
343338"deallocated. Return ``0`` on success or ``-1`` on error."
344339msgstr ""
345340
346- #: ../../c-api/dict.rst:269
341+ #: ../../c-api/dict.rst:274
347342msgid ""
348343"Mark dictionary *dict* as no longer watched. The callback granted "
349344"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
350345"*dict* is modified or deallocated. The dict must previously have been "
351346"watched by this watcher. Return ``0`` on success or ``-1`` on error."
352347msgstr ""
353348
354- #: ../../c-api/dict.rst:278
349+ #: ../../c-api/dict.rst:283
355350msgid ""
356351"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
357352"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
358353"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
359354"``PyDict_EVENT_DEALLOCATED``."
360355msgstr ""
361356
362- #: ../../c-api/dict.rst:286
357+ #: ../../c-api/dict.rst:291
363358msgid "Type of a dict watcher callback function."
364359msgstr ""
365360
366- #: ../../c-api/dict.rst:288
361+ #: ../../c-api/dict.rst:293
367362msgid ""
368363"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
369364"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -372,22 +367,22 @@ msgid ""
372367"dictionary and *new_value* will be ``NULL``."
373368msgstr ""
374369
375- #: ../../c-api/dict.rst:294
370+ #: ../../c-api/dict.rst:299
376371msgid ""
377372"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
378373"dict is merged into it. To maintain efficiency of this operation, per-key "
379374"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
380375"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
381376msgstr ""
382377
383- #: ../../c-api/dict.rst:300
378+ #: ../../c-api/dict.rst:305
384379msgid ""
385380"The callback may inspect but must not modify *dict*; doing so could have "
386381"unpredictable effects, including infinite recursion. Do not trigger Python "
387382"code execution in the callback, as it could modify the dict as a side effect."
388383msgstr ""
389384
390- #: ../../c-api/dict.rst:304
385+ #: ../../c-api/dict.rst:309
391386msgid ""
392387"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
393388"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -396,20 +391,20 @@ msgid ""
396391"again."
397392msgstr ""
398393
399- #: ../../c-api/dict.rst:310
394+ #: ../../c-api/dict.rst:315
400395msgid ""
401396"Callbacks occur before the notified modification to *dict* takes place, so "
402397"the prior state of *dict* can be inspected."
403398msgstr ""
404399
405- #: ../../c-api/dict.rst:313
400+ #: ../../c-api/dict.rst:318
406401msgid ""
407402"If the callback sets an exception, it must return ``-1``; this exception "
408403"will be printed as an unraisable exception using :c:func:"
409404"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
410405msgstr ""
411406
412- #: ../../c-api/dict.rst:317
407+ #: ../../c-api/dict.rst:322
413408msgid ""
414409"There may already be a pending exception set on entry to the callback. In "
415410"this case, the callback should return ``0`` with the same exception still "
@@ -430,10 +425,10 @@ msgstr "dicionário"
430425msgid "PyUnicode_FromString()"
431426msgstr ""
432427
433- #: ../../c-api/dict.rst:157
428+ #: ../../c-api/dict.rst:162
434429msgid "built-in function"
435430msgstr "função embutida"
436431
437- #: ../../c-api/dict.rst:157
432+ #: ../../c-api/dict.rst:162
438433msgid "len"
439434msgstr ""
0 commit comments