8000 Update translations from Transifex · python/python-docs-pt-br@d0e0d3b · GitHub
[go: up one dir, main page]

Skip to content

Commit d0e0d3b

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent ea139bb commit d0e0d3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5499
-5503
lines changed

c-api/exceptions.po

Lines changed: 306 additions & 306 deletions
Large diffs are not rendered by default.

c-api/function.po

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
15+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1717
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1818
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -66,150 +66,148 @@ msgstr ""
6666

6767
#: ../../c-api/function.rst:37
6868
msgid ""
69-
"The function's docstring and name are retrieved from the code object. "
70-
"*__module__* is retrieved from *globals*. The argument defaults, annotations "
71-
"and closure are set to ``NULL``. *__qualname__* is set to the same value as "
72-
"the code object's :attr:`~codeobject.co_qualname` field."
69+
"The function's docstring and name are retrieved from the code object. :attr:"
70+
"`~function.__module__` is retrieved from *globals*. The argument defaults, "
71+
"annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
72+
"is set to the same value as the code object's :attr:`~codeobject."
73+
"co_qualname` field."
7374
msgstr ""
7475

75-
#: ../../c-api/function.rst:45
76+
#: ../../c-api/function.rst:46
7677
msgid ""
77-
"As :c:func:`PyFunction_New`, but also allows setting the function object's "
78-
"``__qualname__`` attribute. *qualname* should be a unicode object or "
79-
"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
80-
"value as the code object's :attr:`~codeobject.co_qualname` field."
78+
"As :c:func:`PyFunction_New`, but also allows setting the function object's :"
79+
"attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
80+
"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
81+
"to the same value as the code object's :attr:`~codeobject.co_qualname` field."
8182
msgstr ""
8283

83-
#: ../../c-api/function.rst:55
84+
#: ../../c-api/function.rst:57
8485
msgid "Return the code object associated with the function object *op*."
8586
msgstr "Retorna o objeto de código associado ao objeto função *op*."
8687

87-
#: ../../c-api/function.rst:60
88+
#: ../../c-api/function.rst:62
8889
msgid "Return the globals dictionary associated with the function object *op*."
8990
msgstr "Retorna o dicionário global associado ao objeto função *op*."
9091

91-
#: ../../c-api/function.rst:65
92+
#: ../../c-api/function.rst:67
9293
msgid ""
93-
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
94-
"function object *op*. It can be *NULL*."
94+
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
95+
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
96+
"*NULL*."
9597
msgstr ""
96-
"Retorna uma :term:`referência emprestada <borrowed reference>` para o "
97-
"atributo *__module__* do objeto função *op*. Pode ser *NULL*."
9898

99-
#: ../../c-api/function.rst:68
99+
#: ../../c-api/function.rst:71
100100
msgid ""
101-
"This is normally a string containing the module name, but can be set to any "
102-
"other object by Python code."
101+
"This is normally a :class:`string <str>` containing the module name, but can "
102+
"be set to any other object by Python code."
103103
msgstr ""
104-
"Esta é normalmente uma string contendo o nome do módulo, mas pode ser "
105-
"configurada para qualquer outro objeto pelo código Python."
106104

107-
#: ../../c-api/function.rst:74
105+
#: ../../c-api/function.rst:77
108106
msgid ""
109107
"Return the argument default values of the function object *op*. This can be "
110108
"a tuple of arguments or ``NULL``."
111109
msgstr ""
112110
"Retorna o argumento os valores padrão do objeto função *op*. Isso pode ser "
113111
"uma tupla de argumentos ou ``NULL``."
114112

115-
#: ../../c-api/function.rst:80
113+
#: ../../c-api/function.rst:83
116114
msgid ""
117115
"Set the argument default values for the function object *op*. *defaults* "
118116
"must be ``Py_None`` or a tuple."
119117
msgstr ""
120118
"Define o argumento valores padrão para o objeto função *op*. *defaults* deve "
121119
"ser ``Py_None`` ou uma tupla."
122120

123-
#: ../../c-api/function.rst:83 ../../c-api/function.rst:106
124-
#: ../../c-api/function.rst:120
121+
#: ../../c-api/function.rst:86 ../../c-api/function.rst:109
122+
#: ../../c-api/function.rst:123
125123
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
126124
msgstr "Levanta :exc:`SystemError` e retorna ``-1`` em falha."
127125

128-
#: ../../c-api/function.rst:88
126+
#: ../../c-api/function.rst:91
129127
msgid "Set the vectorcall field of a given function object *func*."
130128
msgstr ""
131129

132-
#: ../../c-api/function.rst:90
130+
#: ../../c-api/function.rst:93
133131
msgid ""
134132
"Warning: extensions using this API must preserve the behavior of the "
135133
"unaltered (default) vectorcall function!"
136134
msgstr ""
137135

138-
#: ../../c-api/function.rst:97
136+
#: ../../c-api/function.rst:100
139137
msgid ""
140138
"Return the closure associated with the function object *op*. This can be "
141139
"``NULL`` or a tuple of cell objects."
142140
msgstr ""
143141
"Retorna o fechamento associado ao objeto função *op*. Isso pode ser ``NULL`` "
144142
"ou uma tupla de objetos de célula."
145143

146-
#: ../../c-api/function.rst:103
144+
#: ../../c-api/function.rst:106
147145
msgid ""
148146
"Set the closure associated with the function object *op*. *closure* must be "
149147
"``Py_None`` or a tuple of cell objects."
150148
msgstr ""
151149
"Define o fechamento associado ao objeto função *op*. *closure* deve ser "
152150
"``Py_None`` ou uma tupla de objetos de célula."
153151

154-
#: ../../c-api/function.rst:111
152+
#: ../../c-api/function.rst:114
155153
msgid ""
156154
"Return the annotations of the function object *op*. This can be a mutable "
157155
"dictionary or ``NULL``."
158156
msgstr ""
159157
"Retorna as anotações do objeto função *op*. Este pode ser um dicionário "
160158
"mutável ou ``NULL``."
161159

162-
#: ../../c-api/function.rst:117
160+
#: ../../c-api/function.rst:120
163161
msgid ""
164162
"Set the annotations for the function object *op*. *annotations* must be a "
165163
"dictionary or ``Py_None``."
166164
msgstr ""
167165
"Define as anotações para o objeto função *op*. *annotations* deve ser um "
168166
"dicionário ou ``Py_None``."
169167

170-
#: ../../c-api/function.rst:125
168+
#: ../../c-api/function.rst:128
171169
msgid ""
172170
"Register *callback* as a function watcher for the current interpreter. "
173171
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
174172
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
175173
"exception."
176174
msgstr ""
177175

178-
#: ../../c-api/function.rst:135
176+
#: ../../c-api/function.rst:138
179177
msgid ""
180178
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
181179
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
182180
"success, or ``-1`` and set an exception on error (e.g. if the given "
183181
"*watcher_id* was never registered.)"
184182
msgstr ""
185183

186-
#: ../../c-api/function.rst:145
184+
#: ../../c-api/function.rst:148
187185
msgid ""
188186
"Enumeration of possible function watcher events: - "
189187
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
190188
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
191189
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
192190
msgstr ""
193191

194-
#: ../../c-api/function.rst:157
192+
#: ../../c-api/function.rst:160
195193
msgid "Type of a function watcher callback function."
196194
msgstr ""
197195

198-
#: ../../c-api/function.rst:159
196+
#: ../../c-api/function.rst:162
199197
msgid ""
200198
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
201199
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
202200
"`borrowed reference` to the new value that is about to be stored in *func* "
203201
"for the attribute that is being modified."
204202
msgstr ""
205203

206-
#: ../../c-api/function.rst:164
204+
#: ../../c-api/function.rst:167
207205
msgid ""
208206
"The callback may inspect but must not modify *func*; doing so could have "
209207
"unpredictable effects, including infinite recursion."
210208
msgstr ""
211209

212-
#: ../../c-api/function.rst:167
210+
#: ../../c-api/function.rst:170
213211
msgid ""
214212
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
215213
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -221,15 +219,15 @@ msgid ""
221219
"semantics of the Python code being executed."
222220
msgstr ""
223221

224-
#: ../../c-api/function.rst:176
222+
#: ../../c-api/function.rst:179
225223
msgid ""
226224
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
227225
"callback to the about-to-be-destroyed function will resurrect it, preventing "
228226
"it from being freed at this time. When the resurrected object is destroyed "
229227
"later, any watcher callbacks active at that time will be called again."
230228
msgstr ""
231229

232-
#: ../../c-api/function.rst:181
230+
#: ../../c-api/function.rst:184
233231
msgid ""
234232
"If the callback sets an exception, it must return ``-1``; this exception "
235233
"will be printed as an unraisable exception using :c:func:"
@@ -239,7 +237,7 @@ msgstr ""
239237
"exceção será impressa como uma exceção não reprovável usando :c:func:"
240238
"`PyErr_WriteUnraisable`. Caso contrário, deverá retornar ``0``."
241239

242-
#: ../../c-api/function.rst:185
240+
#: ../../c-api/function.rst:188
243241
msgid ""
244242
"There may already be a pending exception set on entry to the callback. In "
245243
"this case, the callback should return ``0`` with the same exception still "

c-api/structures.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.12\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
17+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
1919
"Last-Translator: Vitor Buxbaum Orlandi, 2023\n"
2020
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -452,13 +452,13 @@ msgstr ""
452452

453453
#: ../../c-api/structures.rst:424
454454
msgid ""
455-
"The offset in bytes that the member is located on the type’s object struct."
455+
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
456+
"possible values."
456457
msgstr ""
457458

458-
#: ../../c-api/structures.rst:428
459+
#: ../../c-api/structures.rst:429
459460
msgid ""
460-
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
461-
"possible values."
461+
"The offset in bytes that the member is located on the type’s object struct."
462462
msgstr ""
463463

464464
#: ../../c-api/structures.rst:433

howto/annotations.po

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.12\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2023-06-09 14:13+0000\n"
18+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
2020
"Last-Translator: Ruan Aragão <ruanaragao2@gmail.com>, 2023\n"
2121
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -245,11 +245,11 @@ msgstr ""
245245

246246
#: ../../howto/annotations.rst:155
247247
msgid ""
248-
"If ``o`` is a callable (but not a class), use ``o.__globals__`` as the "
249-
"globals when calling :func:`eval`."
248+
"If ``o`` is a callable (but not a class), use :attr:`o.__globals__ <function."
249+
"__globals__>` as the globals when calling :func:`eval`."
250250
msgstr ""
251251

252-
#: ../../howto/annotations.rst:158
252+
#: ../../howto/annotations.rst:159
253253
msgid ""
254254
"However, not all string values used as annotations can be successfully "
255255
"turned into Python values by :func:`eval`. String values could theoretically "
@@ -258,63 +258,63 @@ msgid ""
258258
"be evaluated. For example:"
259259
msgstr ""
260260

261-
#: ../../howto/annotations.rst:165
261+
#: ../../howto/annotations.rst:166
262262
msgid ""
263263
":pep:`604` union types using ``|``, before support for this was added to "
264264
"Python 3.10."
265265
msgstr ""
266266

267-
#: ../../howto/annotations.rst:167
267+
#: ../../howto/annotations.rst:168
268268
msgid ""
269269
"Definitions that aren't needed at runtime, only imported when :const:`typing."
270270
"TYPE_CHECKING` is true."
271271
msgstr ""
272272

273-
#: ../../howto/annotations.rst:170
273+
#: ../../howto/annotations.rst:171
274274
msgid ""
275275
"If :func:`eval` attempts to evaluate such values, it will fail and raise an "
276276
"exception. So, when designing a library API that works with annotations, "
277277
"it's recommended to only attempt to evaluate string values when explicitly "
278278
"requested to by the caller."
279279
msgstr ""
280280

281-
#: ../../howto/annotations.rst:178
10000
281+
#: ../../howto/annotations.rst:179
282282
msgid "Best Practices For ``__annotations__`` In Any Python Version"
283283
msgstr "Melhores Prática Para ``__annotations__`` Em Qualquer Versão Python"
284284

285-
#: ../../howto/annotations.rst:180
285+
#: ../../howto/annotations.rst:181
286286
msgid ""
287287
"You should avoid assigning to the ``__annotations__`` member of objects "
288288
"directly. Let Python manage setting ``__annotations__``."
289289
msgstr ""
290290

291-
#: ../../howto/annotations.rst:183
291+
#: ../../howto/annotations.rst:184
292292
msgid ""
293293
"If you do assign directly to the ``__annotations__`` member of an object, "
294294
"you should always set it to a ``dict`` object."
295295
msgstr ""
296296

297-
#: ../../howto/annotations.rst:186
297+
#: ../../howto/annotations.rst:187
298298
msgid ""
299299
"If you directly access the ``__annotations__`` member of an object, you "
300300
"should ensure that it's a dictionary before attempting to examine its "
301301
"contents."
302302
msgstr ""
303303

304-
#: ../../howto/annotations.rst:190
304+
#: ../../howto/annotations.rst:191
305305
msgid "You should avoid modifying ``__annotations__`` dicts."
306306
msgstr "Você deve evitar modificar ``__annotations__`` dicts."
307307

308-
#: ../../howto/annotations.rst:192
308+
#: ../../howto/annotations.rst:193
309309
msgid ""
310310
"You should avoid deleting the ``__annotations__`` attribute of an object."
311311
msgstr ""
312312

313-
#: ../../howto/annotations.rst:197
313+
#: ../../howto/annotations.rst:198
314314
msgid "``__annotations__`` Quirks"
315315
msgstr ""
316316

317-
#: ../../howto/annotations.rst:199
317+
#: ../../howto/annotations.rst:200
318318
msgid ""
319319
"In all versions of Python 3, function objects lazy-create an annotations "
320320
"dict if no annotations are defined on that object. You can delete the "
@@ -326,13 +326,13 @@ msgid ""
326326
"guaranteed to always throw an ``AttributeError``."
327327
msgstr ""
328328

329-
#: ../../howto/annotations.rst:209
329+
#: ../../howto/annotations.rst:210
330330
msgid ""
331331
"Everything in the above paragraph also applies to class and module objects "
332332
"in Python 3.10 and newer."
333333
msgstr ""
334334

335-
#: ../../howto/annotations.rst:212
335+
#: ../../howto/annotations.rst:213
336336
msgid ""
337337
"In all versions of Python 3, you can set ``__annotations__`` on a function "
338338
"object to ``None``. However, subsequently accessing the annotations on that "
@@ -343,15 +343,15 @@ msgid ""
343343
"set."
344344
msgstr ""
345345

346-
#: ../../howto/annotations.rst:220
346+
#: ../../howto/annotations.rst:221
347347
msgid ""
348348
"If Python stringizes your annotations for you (using ``from __future__ "
349349
"import annotations``), and you specify a string as an annotation, the string "
350350
"will itself be quoted. In effect the annotation is quoted *twice.* For "
351351
"example::"
352352
msgstr ""
353353

354-
#: ../../howto/annotations.rst:231
354+
#: ../../howto/annotations.rst:232
355355
msgid ""
356356
"This prints ``{'a': \"'str'\"}``. This shouldn't really be considered a "
357357
"\"quirk\"; it's mentioned here simply because it might be surprising."

0 commit comments

Comments
 (0)
0