8000 Translate c-api/code by sofide · Pull Request #2121 · python/python-docs-es · GitHub
[go: up one dir, main page]

Skip to content

Translate c-api/code #2121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 45 additions & 20 deletions c-api/code.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-25 19:47+0200\n"
"PO-Revision-Date: 2021-08-16 13:04+0200\n"
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gmail.com>\n"
"Language: es\n"
"PO-Revision-Date: 2022-10-30 17:20-0300\n"
"Last-Translator: Sofía Denner <sofi.denner@gmail.com>\n"
"Language-Team: python-doc-es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.10.3\n"
"X-Generator: Poedit 3.2\n"

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

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

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

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

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

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

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

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

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

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

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

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

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

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