@@ -12,7 +12,7 @@ msgid ""
12
12
msgstr ""
13
13
"Project-Id-Version : Python 3.12\n "
14
14
"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 "
16
16
"PO-Revision-Date : 2021-06-28 00:48+0000\n "
17
17
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n "
18
18
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -66,150 +66,148 @@ msgstr ""
66
66
67
67
#: ../../c-api/function.rst:37
68
68
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."
73
74
msgstr ""
74
75
75
- #: ../../c-api/function.rst:45
76
+ #: ../../c-api/function.rst:46
76
77
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."
81
82
msgstr ""
82
83
83
- #: ../../c-api/function.rst:55
84
+ #: ../../c-api/function.rst:57
84
85
msgid "Return the code object associated with the function object *op*."
85
86
msgstr "Retorna o objeto de código associado ao objeto função *op*."
86
87
87
- #: ../../c-api/function.rst:60
88
+ #: ../../c-api/function.rst:62
88
89
msgid "Return the globals dictionary associated with the function object *op*."
89
90
msgstr "Retorna o dicionário global associado ao objeto função *op*."
90
91
91
- #: ../../c-api/function.rst:65
92
+ #: ../../c-api/function.rst:67
92
93
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*."
95
97
msgstr ""
96
- "Retorna uma :term:`referência emprestada <borrowed reference>` para o "
97
- "atributo *__module__* do objeto função *op*. Pode ser *NULL*."
98
98
99
- #: ../../c-api/function.rst:68
99
+ #: ../../c-api/function.rst:71
100
100
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."
103
103
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."
106
104
107
- #: ../../c-api/function.rst:74
105
+ #: ../../c-api/function.rst:77
108
106
msgid ""
109
107
"Return the argument default values of the function object *op*. This can be "
110
108
"a tuple of arguments or ``NULL``."
111
109
msgstr ""
112
110
"Retorna o argumento os valores padrão do objeto função *op*. Isso pode ser "
113
111
"uma tupla de argumentos ou ``NULL``."
114
112
115
- #: ../../c-api/function.rst:80
113
+ #: ../../c-api/function.rst:83
116
114
msgid ""
117
115
"Set the argument default values for the function object *op*. *defaults* "
118
116
"must be ``Py_None`` or a tuple."
119
117
msgstr ""
120
118
"Define o argumento valores padrão para o objeto função *op*. *defaults* deve "
121
119
"ser ``Py_None`` ou uma tupla."
122
120
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
125
123
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
126
124
msgstr "Levanta :exc:`SystemError` e retorna ``-1`` em falha."
127
125
128
- #: ../../c-api/function.rst:88
126
+ #: ../../c-api/function.rst:91
129
127
msgid "Set the vectorcall field of a given function object *func*."
130
128
msgstr ""
131
129
132
- #: ../../c-api/function.rst:90
130
+ #: ../../c-api/function.rst:93
133
131
msgid ""
134
132
"Warning: extensions using this API must preserve the behavior of the "
135
133
"unaltered (default) vectorcall function!"
136
134
msgstr ""
137
135
138
- #: ../../c-api/function.rst:97
136
+ #: ../../c-api/function.rst:100
139
137
msgid ""
140
138
"Return the closure associated with the function object *op*. This can be "
141
139
"``NULL`` or a tuple of cell objects."
142
140
msgstr ""
143
141
"Retorna o fechamento associado ao objeto função *op*. Isso pode ser ``NULL`` "
144
142
"ou uma tupla de objetos de célula."
145
143
146
- #: ../../c-api/function.rst:103
144
+ #: ../../c-api/function.rst:106
147
145
msgid ""
148
146
"Set the closure associated with the function object *op*. *closure* must be "
149
147
"``Py_None`` or a tuple of cell objects."
150
148
msgstr ""
151
149
"Define o fechamento associado ao objeto função *op*. *closure* deve ser "
152
150
"``Py_None`` ou uma tupla de objetos de célula."
153
151
154
- #: ../../c-api/function.rst:111
152
+ #: ../../c-api/function.rst:114
155
153
msgid ""
156
154
"Return the annotations of the function object *op*. This can be a mutable "
157
155
"dictionary or ``NULL``."
158
156
msgstr ""
159
157
"Retorna as anotações do objeto função *op*. Este pode ser um dicionário "
160
158
"mutável ou ``NULL``."
161
159
162
- #: ../../c-api/function.rst:117
160
+ #: ../../c-api/function.rst:120
163
161
msgid ""
164
162
"Set the annotations for the function object *op*. *annotations* must be a "
165
163
"dictionary or ``Py_None``."
166
164
msgstr ""
167
165
"Define as anotações para o objeto função *op*. *annotations* deve ser um "
168
166
"dicionário ou ``Py_None``."
169
167
170
- #: ../../c-api/function.rst:125
168
+ #: ../../c-api/function.rst:128
171
169
msgid ""
172
170
"Register *callback* as a function watcher for the current interpreter. "
173
171
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
174
172
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
175
173
"exception."
176
174
msgstr ""
177
175
178
- #: ../../c-api/function.rst:135
176
+ #: ../../c-api/function.rst:138
179
177
msgid ""
180
178
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
181
179
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
182
180
"success, or ``-1`` and set an exception on error (e.g. if the given "
183
181
"*watcher_id* was never registered.)"
184
182
msgstr ""
185
183
186
- #: ../../c-api/function.rst:145
184
+ #: ../../c-api/function.rst:148
187
185
msgid ""
188
186
"Enumeration of possible function watcher events: - "
189
187
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
190
188
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
191
189
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
192
190
msgstr ""
193
191
194
- #: ../../c-api/function.rst:157
192
+ #: ../../c-api/function.rst:160
195
193
msgid "Type of a function watcher callback function."
196
194
msgstr ""
197
195
198
- #: ../../c-api/function.rst:159
196
+ #: ../../c-api/function.rst:162
199
197
msgid ""
200
198
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
201
199
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
202
200
"`borrowed reference` to the new value that is about to be stored in *func* "
203
201
"for the attribute that is being modified."
204
202
msgstr ""
205
203
206
- #: ../../c-api/function.rst:164
204
+ #: ../../c-api/function.rst:167
207
205
msgid ""
208
206
"The callback may inspect but must not modify *func*; doing so could have "
209
207
"unpredictable effects, including infinite recursion."
210
208
msgstr ""
211
209
212
- #: ../../c-api/function.rst:167
210
+ #: ../../c-api/function.rst:170
213
211
msgid ""
214
212
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
215
213
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -221,15 +219,15 @@ msgid ""
221
219
"semantics of the Python code being executed."
222
220
msgstr ""
223
221
224
- #: ../../c-api/function.rst:176
222
+ #: ../../c-api/function.rst:179
225
223
msgid ""
226
224
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
227
225
"callback to the about-to-be-destroyed function will resurrect it, preventing "
228
226
"it from being freed at this time. When the resurrected object is destroyed "
229
227
"later, any watcher callbacks active at that time will be called again."
230
228
msgstr ""
231
229
232
- #: ../../c-api/function.rst:181
230
+ #: ../../c-api/function.rst:184
233
231
msgid ""
234
232
"If the callback sets an exception, it must return ``-1``; this exception "
235
233
"will be printed as an unraisable exception using :c:func:"
@@ -239,7 +237,7 @@ msgstr ""
239
237
"exceção será impressa como uma exceção não reprovável usando :c:func:"
240
238
"`PyErr_WriteUnraisable`. Caso contrário, deverá retornar ``0``."
241
239
242
- #: ../../c-api/function.rst:185
240
+ #: ../../c-api/function.rst:188
243
241
msgid ""
244
242
"There may already be a pending exception set on entry to the callback. In "
245
243
"this case, the callback should return ``0`` with the same exception still "
0 commit comments