Skip to content

Commit 0f8ecf3

Browse files
sofidesofidennercmaureir
authored
Translate c-api/code (#2121)
Closes #2066 Co-authored-by: Sofia Denner <sofia.denner@mercadolibre.com> Co-authored-by: Cristián Maureira-Fredes <cmaureir@users.noreply.github.com>
1 parent af1f860 commit 0f8ecf3

File tree

1 file changed

+45
-20
lines changed

1 file changed

+45
-20
lines changed

c-api/code.po

+45-20
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
14-
"PO-Revision-Date: 2021-08-16 13:04+0200\n"
15-
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
16-
"Language: es\n"
14+
"PO-Revision-Date: 2022-10-30 17:20-0300\n"
15+
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
1716
"Language-Team: python-doc-es\n"
18-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
1918
"MIME-Version: 1.0\n"
2019
"Content-Type: text/plain; charset=utf-8\n"
2120
"Content-Transfer-Encoding: 8bit\n"
21+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2222
"Generated-By: Babel 2.10.3\n"
23+
"X-Generator: Poedit 3.2\n"
2324

2425
#: ../Doc/c-api/code.rst:8
2526
msgid "Code Objects"
@@ -64,7 +65,6 @@ msgid "Return the number of free variables in *co*."
6465
msgstr "Retorna el número de variables libres en *co*."
6566

6667
#: ../Doc/c-api/code.rst:38
67-
#, fuzzy
6868
msgid ""
6969
"Return a new code object. If you need a dummy code object to create a "
7070
"frame, use :c:func:`PyCode_NewEmpty` instead. Calling :c:func:`PyCode_New` "
@@ -74,36 +74,38 @@ msgid ""
7474
"to result in incorrect execution or VM crashes. Use this function only with "
7575
"extreme care."
7676
msgstr ""
77-
"Retorna un nuevo objeto de código. Si necesita un objeto de código ficticio "
78-
"para crear un marco (*frame*), use :c:func:`PyCode_NewEmpty` en su lugar. "
79-
"Llamando :c:func:`PyCode_New` directamente puede enlazarlo a una versión "
80-
"precisa de Python ya que la definición del código de bytes cambia a menudo."
77+
"Retorna un nuevo objeto de código. Si se necesita un objeto de código "
78+
"ficticio para crear un marco (*frame*), usar :c:func:`PyCode_NewEmpty` en su "
79+
"lugar. Llamando :c:func:`PyCode_New` directamente puede enlazarlo a una "
80+
"versión precisa de Python ya que la definición del código de bytes cambia a "
81+
"menudo. Muchos de los argumentos de esta función están relacionados "
82+
"mutuamente de formas complejas, lo cual significa que cambios sutiles en "
83+
"estos valores probablemente resulten en ejecuciones incorrectas o fallas en "
84+
"la VM."
8185

8286
#: ../Doc/c-api/code.rst:45 ../Doc/c-api/code.rst:55
8387
msgid "Added ``exceptiontable`` parameter."
84-
msgstr ""
88+
msgstr "Se agregó el parámetro ``exceptiontable``."
8589

8690
#: ../Doc/c-api/code.rst:50
87-
#, fuzzy
8891
msgid ""
8992
"Similar to :c:func:`PyCode_New`, but with an extra \"posonlyargcount\" for "
9093
"positional-only arguments. The same caveats that apply to ``PyCode_New`` "
9194
"also apply to this function."
9295
msgstr ""
9396
"Similar a :c:func:`PyCode_New`, pero con un \"*posonlyargcount*\" adicional "
94-
"para argumentos solo posicionales."
97+
"para argumentos solo posicionales. Las mismas advertencias que aplican a "
98+
"``PyCode_New`` también aplican a esta función."
9599

96100
#: ../Doc/c-api/code.rst:60
97-
#, fuzzy
98101
msgid ""
99102
"Return a new empty code object with the specified filename, function name, "
100103
"and first line number. The resulting code object will raise an ``Exception`` "
101104
"if executed."
102105
msgstr ""
103106
"Retorna un nuevo objeto de código vacío con el nombre de archivo "
104-
"especificado, el nombre de la función y el número de la primera línea. Es "
105-
"ilegal utilizar :func:`exec` o :func:`eval` en el objeto de código "
106-
"resultante."
107+
"especificado, el nombre de la función y el número de la primera línea. Si el "
108+
"objeto código resultante es ejecutado, lanzará una ``Exception``."
107109

108110
#: ../Doc/c-api/code.rst:66
109111
msgid ""
@@ -116,47 +118,62 @@ msgstr ""
116118
"un marco, use :c:func:`PyFrame_GetLineNumber` en su lugar."
117119

118120
#: ../Doc/c-api/code.rst:69
119-
#, fuzzy
120121
msgid ""
121122
"For efficiently iterating over the line numbers in a code object, use `the "
122123
"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-"
123124
"debuggers-and-profilers>`_."
124125
msgstr ""
125126
"Para iterar de manera eficiente sobre los números de línea en un objeto de "
126-
"código, use `la API descrita en PEP 626 <https://www.python.org/dev/peps/"
127-
"pep-0626/#out-of-process-debuggers-and-profilers>`_."
127+
"código, use `la API descrita en PEP 626 <https://peps.python.org/pep-0626/"
128+
"#out-of-process-debuggers-and-profilers>`_."
128129

129130
#: ../Doc/c-api/code.rst:74
130131
msgid ""
131132
"Sets the passed ``int`` pointers to the source code line and column numbers "
132133
"for the instruction at ``byte_offset``. Sets the value to ``0`` when "
133134
"information is not available for any particular element."
134135
msgstr ""
136+
"Establece los punteros ``int`` pasados en los números de línea y columna del "
137+
"código fuente para las instrucciones en ``byte_offset``. Establece el valor "
138+
"en ``0`` cuando la información no está disponible para algún elemento en "
139+
"particular."
135140

136141
#: ../Doc/c-api/code.rst:78
137142
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
138-
msgstr ""
143+
msgstr "Retorna ``1`` si la función fue exitosa y ``0`` de lo contrario."
139144

140145
#: ../Doc/c-api/code.rst:82
141146
msgid ""
142147
"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
143148
"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
144149
"object. On error, ``NULL`` is returned and an exception is raised."
145150
msgstr ""
151+
"Equivalente al código Python ``getattr(co, 'co_code')``. Retorna una "
152+
"referencia fuerte a un :c:type:`PyBytesObject` representando el bytecode en "
153+
"un objecto código. En caso de error se retorna ``NULL`` y se lanza una "
154+
"excepción."
146155

147156
#: ../Doc/c-api/code.rst:87
148157
msgid ""
149158
"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
150159
"not necessarily represent the bytecode actually executed by CPython. The "
151160
"primary use case for this function is debuggers and profilers."
152161
msgstr ""
162+
"Este ``PyBytesObject`` puede ser creado a pedido del intérprete y no "
163+
"necesariamente representa el bytecode que es realmente ejecutado por "
164+
"CPython. Los casos de uso principales para esta función son depuradores y "
165+
"perfiladores."
153166

154167
#: ../Doc/c-api/code.rst:95
155168
msgid ""
156169
"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
157170
"reference to a :c:type:`PyTupleObject` containing the names of the local "
158171
"variables. On error, ``NULL`` is returned and an exception is raised."
159172
msgstr ""
173+
"Equivalente al código Python ``getattr(co, 'co_varnames')``. Retorna una "
174+
"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de "
175+
"las variables locales. En caso de error, retorna ``NULL`` y lanza una "
176+
"excepción."
160177

161178
#: ../Doc/c-api/code.rst:104
162179
msgid ""
@@ -165,10 +182,18 @@ msgid ""
165182
"variables that are referenced by nested functions. On error, ``NULL`` is "
166183
"returned and an exception is raised."
167184
msgstr ""
185+
"Equivalente al código Python ``getattr(co, 'co_cellvars')``. Retorna una "
186+
"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de "
187+
"las variables locales referenciadas por funciones anidadas. En caso de "
188+
"error, retorna ``NULL`` y lanza una excepción."
168189

169190
#: ../Doc/c-api/code.rst:113
170191
msgid ""
171192
"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
172193
"reference to a :c:type:`PyTupleObject` containing the names of the free "
173194
"variables. On error, ``NULL`` is returned and an exception is raised."
174195
msgstr ""
196+
"Equivalente al código Python ``getattr(co, 'co_freevars')``. Retorna una "
197+
"nueva referencia a un :c:type:`PyTupleObject` que contiene los nombres de "
198+
"las variables libres. En caso de error, retorna ``NULL`` y lanza una "
199+
"excepción."

0 commit comments

Comments
 (0)