@@ -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-08-18 14:13 +0000\n "
17+ "POT-Creation-Date : 2023-08-25 20:17 +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/ "
@@ -108,14 +108,10 @@ msgstr ""
108108#: ../../c-api/dict.rst:75
109109msgid ""
110110"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*."
114114msgstr ""
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*."
119115
120116#: ../../c-api/dict.rst:83
121117msgid ""
@@ -131,15 +127,12 @@ msgstr ""
131127
132128#: ../../c-api/dict.rst:91
133129msgid ""
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."
137133msgstr ""
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."
141134
142- #: ../../c-api/dict.rst:98
135+ #: ../../c-api/dict.rst:99
143136msgid ""
144137"Return the object from dictionary *p* which has a key *key*. Return "
145138"``NULL`` if the key *key* is not present, but *without* setting an exception."
@@ -148,7 +141,7 @@ msgstr ""
148141"``NULL`` se a chave *key* não estiver presente, mas *sem* definir uma "
149142"exceção."
150143
151- #: ../../c-api/dict.rst:103
144+ #: ../../c-api/dict.rst:104
152145msgid ""
153146"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
154147"`~object.__eq__` methods are silently ignored. Prefer the :c:func:"
@@ -158,15 +151,15 @@ msgstr ""
158151"`~object.__eq__` são ignoradas silenciosamente. Ao invés disso, use a "
159152"função :c:func:`PyDict_GetItemWithError`."
160153
161- #: ../../c-api/dict.rst:107
154+ #: ../../c-api/dict.rst:108
162155msgid ""
163156"Calling this API without :term:`GIL` held had been allowed for historical "
164157"reason. It is no longer allowed."
165158msgstr ""
166159"Chamar esta API sem :term:`GIL` retido foi permitido por motivos históricos. "
167160"Não é mais permitido."
168161
169- #: ../../c-api/dict.rst:114
162+ #: ../../c-api/dict.rst:115
170163msgid ""
171164"Variant of :c:func:`PyDict_GetItem` that does not suppress exceptions. "
172165"Return ``NULL`` **with** an exception set if an exception occurred. Return "
@@ -176,15 +169,14 @@ msgstr ""
176169"``NULL`` **com** uma exceção definida se uma exceção ocorreu. Retorna "
177170"``NULL`` ** sem ** uma exceção definida se a chave não estiver presente."
178171
179- #: ../../c-api/dict.rst:122
172+ #: ../../c-api/dict.rst:123
180173msgid ""
181174"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*`."
183177msgstr ""
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*`."
186178
187- #: ../../c-api/dict.rst:127
179+ #: ../../c-api/dict.rst:129
188180msgid ""
189181"Exceptions that occur while this calls :meth:`~object.__hash__` and :meth:"
190182"`~object.__eq__` methods or while creating the temporary :class:`str` object "
@@ -197,7 +189,7 @@ msgstr ""
197189"`PyDict_GetItemWithError` com sua própria *key* de :c:func:"
198190"`PyUnicode_FromString`."
199191
200- #: ../../c-api/dict.rst:136
192+ #: ../../c-api/dict.rst:138
201193msgid ""
202194"This is the same as the Python-level :meth:`dict.setdefault`. If present, "
203195"it returns the value corresponding to *key* from the dictionary *p*. If the "
@@ -212,35 +204,35 @@ msgstr ""
212204"será retornado. Esta função avalia a função hash de *key* apenas uma vez, em "
213205"vez de avaliá-la independentemente para a pesquisa e a inserção."
214206
215- #: ../../c-api/dict.rst:146
207+ #: ../../c-api/dict.rst:148
216208msgid ""
217209"Return a :c:type:`PyListObject` containing all the items from the dictionary."
218210msgstr ""
219211"Retorna um :c:type:`PyListObject` contendo todos os itens do dicionário."
220212
221- #: ../../c-api/dict.rst:151
213+ #: ../../c-api/dict.rst:153
222214msgid ""
223215"Return a :c:type:`PyListObject` containing all the keys from the dictionary."
224216msgstr ""
225217"Retorna um :c:type:`PyListObject` contendo todas as chaves do dicionário."
226218
227- #: ../../c-api/dict.rst:156
219+ #: ../../c-api/dict.rst:158
228220msgid ""
229221"Return a :c:type:`PyListObject` containing all the values from the "
230222"dictionary *p*."
231223msgstr ""
232224"Retorna um :c:type:`PyListObject` contendo todos os valores do dicionário "
233225"*p*."
234226
235- #: ../../c-api/dict.rst:164
227+ #: ../../c-api/dict.rst:166
236228msgid ""
237229"Return the number of items in the dictionary. This is equivalent to "
238230"``len(p)`` on a dictionary."
239231msgstr ""
240232"Retorna o número de itens no dicionário. Isso é equivalente a ``len(p)`` em "
241233"um dicionário."
242234
243- #: ../../c-api/dict.rst:170
235+ #: ../../c-api/dict.rst:172
244236msgid ""
245237"Iterate over all key-value pairs in the dictionary *p*. The :c:type:"
246238"`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the "
@@ -264,11 +256,11 @@ msgstr ""
264256"Seu valor representa deslocamentos dentro da estrutura do dicionário interno "
265257"e, como a estrutura é esparsa, os deslocamentos não são consecutivos."
266258
267- #: ../../c-api/dict.rst:181
259+ #: ../../c-api/dict.rst:183
268260msgid "For example::"
269261msgstr "Por exemplo::"
270262
271- #: ../../c-api/dict.rst:191
263+ #: ../../c-api/dict.rst:193
272264msgid ""
273265"The dictionary *p* should not be mutated during iteration. It is safe to "
274266"modify the values of the keys as you iterate over the dictionary, but only "
@@ -278,7 +270,7 @@ msgstr ""
278270"modificar os valores das chaves à medida que você itera no dicionário, mas "
279271"apenas enquanto o conjunto de chaves não mudar. Por exemplo::"
280272
281- #: ../../c-api/dict.rst:216
273+ #: ../../c-api/dict.rst:218
282274msgid ""
283275"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
284276"*b* may be a dictionary, or any object supporting :c:func:`PyMapping_Keys` "
@@ -295,7 +287,7 @@ msgstr ""
295287"adicionados apenas se não houver uma chave correspondente em *a*. Retorna "
296288"``0`` em caso de sucesso ou ``-1`` se uma exceção foi levantada."
297289
298- #: ../../c-api/dict.rst:226
290+ #: ../../c-api/dict.rst:228
299291msgid ""
300292"This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to ``a."
301293"update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall back "
@@ -309,7 +301,7 @@ msgstr ""
309301"argumento não tiver o atributo \" keys\" . Retorna ``0`` em caso de sucesso ou "
310302"``-1`` se uma exceção foi levantada."
311303
312- #: ../../c-api/dict.rst:235
304+ #: ../../c-api/dict.rst:237
313305msgid ""
314306"Update or merge into dictionary *a*, from the key-value pairs in *seq2*. "
315307"*seq2* must be an iterable object producing iterable objects of length 2, "
@@ -324,49 +316,49 @@ msgstr ""
324316"vence. Retorne ``0`` em caso de sucesso ou ``-1`` se uma exceção foi "
325317"levantada. Python equivalente (exceto para o valor de retorno)::"
326318
327- #: ../../c-api/dict.rst:249
319+ #: ../../c-api/dict.rst:251
328320msgid ""
329321"Register *callback* as a dictionary watcher. Return a non-negative integer "
330322"id which must be passed to future calls to :c:func:`PyDict_Watch`. In case "
331323"of error (e.g. no more watcher IDs available), return ``-1`` and set an "
332324"exception."
333325msgstr ""
334326
335- #: ../../c-api/dict.rst:258
327+ #: ../../c-api/dict.rst:260
336328msgid ""
337329"Clear watcher identified by *watcher_id* previously returned from :c:func:"
338330"`PyDict_AddWatcher`. Return ``0`` on success, ``-1`` on error (e.g. if the "
339331"given *watcher_id* was never registered.)"
340332msgstr ""
341333
342- #: ../../c-api/dict.rst:266
334+ #: ../../c-api/dict.rst:268
343335msgid ""
344336"Mark dictionary *dict* as watched. The callback granted *watcher_id* by :c:"
345337"func:`PyDict_AddWatcher` will be called when *dict* is modified or "
346338"deallocated. Return ``0`` on success or ``-1`` on error."
347339msgstr ""
348340
349- #: ../../c-api/dict.rst:274
341+ #: ../../c-api/dict.rst:276
350342msgid ""
351343"Mark dictionary *dict* as no longer watched. The callback granted "
352344"*watcher_id* by :c:func:`PyDict_AddWatcher` will no longer be called when "
353345"*dict* is modified or deallocated. The dict must previously have been "
354346"watched by this watcher. Return ``0`` on success or ``-1`` on error."
355347msgstr ""
356348
357- #: ../../c-api/dict.rst:283
349+ #: ../../c-api/dict.rst:285
358350msgid ""
359351"Enumeration of possible dictionary watcher events: ``PyDict_EVENT_ADDED``, "
360352"``PyDict_EVENT_MODIFIED``, ``PyDict_EVENT_DELETED``, "
361353"``PyDict_EVENT_CLONED``, ``PyDict_EVENT_CLEARED``, or "
362354"``PyDict_EVENT_DEALLOCATED``."
363355msgstr ""
364356
365- #: ../../c-api/dict.rst:291
357+ #: ../../c-api/dict.rst:293
366358msgid "Type of a dict watcher callback function."
367359msgstr ""
368360
369- #: ../../c-api/dict.rst:293
361+ #: ../../c-api/dict.rst:295
370362msgid ""
371363"If *event* is ``PyDict_EVENT_CLEARED`` or ``PyDict_EVENT_DEALLOCATED``, both "
372364"*key* and *new_value* will be ``NULL``. If *event* is ``PyDict_EVENT_ADDED`` "
@@ -375,22 +367,22 @@ msgid ""
375367"dictionary and *new_value* will be ``NULL``."
376368msgstr ""
377369
378- #: ../../c-api/dict.rst:299
370+ #: ../../c-api/dict.rst:301
379371msgid ""
380372"``PyDict_EVENT_CLONED`` occurs when *dict* was previously empty and another "
381373"dict is merged into it. To maintain efficiency of this operation, per-key "
382374"``PyDict_EVENT_ADDED`` events are not issued in this case; instead a single "
383375"``PyDict_EVENT_CLONED`` is issued, and *key* will be the source dictionary."
384376msgstr ""
385377
386- #: ../../c-api/dict.rst:305
378+ #: ../../c-api/dict.rst:307
387379msgid ""
388380"The callback may inspect but must not modify *dict*; doing so could have "
389381"unpredictable effects, including infinite recursion. Do not trigger Python "
390382"code execution in the callback, as it could modify the dict as a side effect."
391383msgstr ""
392384
393- #: ../../c-api/dict.rst:309
385+ #: ../../c-api/dict.rst:311
394386msgid ""
395387"If *event* is ``PyDict_EVENT_DEALLOCATED``, taking a new reference in the "
396388"callback to the about-to-be-destroyed dictionary will resurrect it and "
@@ -399,20 +391,20 @@ msgid ""
399391"again."
400392msgstr ""
401393
402- #: ../../c-api/dict.rst:315
394+ #: ../../c-api/dict.rst:317
403395msgid ""
404396"Callbacks occur before the notified modification to *dict* takes place, so "
405397"the prior state of *dict* can be inspected."
406398msgstr ""
407399
408- #: ../../c-api/dict.rst:318
400+ #: ../../c-api/dict.rst:320
409401msgid ""
410402"If the callback sets an exception, it must return ``-1``; this exception "
411403"will be printed as an unraisable exception using :c:func:"
412404"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
413405msgstr ""
414406
415- #: ../../c-api/dict.rst:322
407+ #: ../../c-api/dict.rst:324
416408msgid ""
417409"There may already be a pending exception set on entry to the callback. In "
418410"this case, the callback should return ``0`` with the same exception still "
@@ -433,10 +425,10 @@ msgstr "dicionário"
433425msgid "PyUnicode_FromString()"
434426msgstr ""
435427
436- #: ../../c-api/dict.rst:162
428+ #: ../../c-api/dict.rst:164
437429msgid "built-in function"
438430msgstr "função embutida"
439431
440- #: ../../c-api/dict.rst:162
432+ #: ../../c-api/dict.rst:164
441433msgid "len"
442434msgstr "len"
0 commit comments