diff --git a/c-api/long.po b/c-api/long.po index 0028094e86..78450299df 100644 --- a/c-api/long.po +++ b/c-api/long.po @@ -6,28 +6,32 @@ # Check https://github.com/PyCampES/python-docs-es/blob/3.8/TRANSLATORS to # get the list of volunteers # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-05 12:54+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2020-05-21 22:18+0200\n" "Language-Team: python-doc-es\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.8.0\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Last-Translator: Cristián Maureira-Fredes \n" +"Language: es\n" +"X-Generator: Poedit 2.3\n" #: ../Doc/c-api/long.rst:6 msgid "Integer Objects" -msgstr "" +msgstr "Objetos Enteros" #: ../Doc/c-api/long.rst:11 msgid "" "All integers are implemented as \"long\" integer objects of arbitrary size." msgstr "" +"Todos los enteros se implementan como objetos enteros \"largos\" (*long*) de " +"tamaño arbitrario." #: ../Doc/c-api/long.rst:13 msgid "" @@ -35,33 +39,45 @@ msgid "" "be distinguished from a number. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" +"En caso de error, la mayoría de las API ``PyLong_As*`` retornan ``(tipo de " +"retorno) -1`` que no se puede distinguir de un número. Use :c:func:" +"`PyErr_Occurred` para desambiguar." #: ../Doc/c-api/long.rst:18 msgid "This subtype of :c:type:`PyObject` represents a Python integer object." msgstr "" +"Este subtipo de :c:type:`PyObject` representa un objeto entero de Python." #: ../Doc/c-api/long.rst:23 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python integer type. " "This is the same object as :class:`int` in the Python layer." msgstr "" +"Esta instancia de :c:type:`PyTypeObject` representa el tipo entero de " +"Python. Este es el mismo objeto que :class:`int` en la capa de Python." #: ../Doc/c-api/long.rst:29 msgid "" "Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:" "type:`PyLongObject`." msgstr "" +"Retorna verdadero si su argumento es un :c:type:`PyLongObject` o un subtipo " +"de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:35 msgid "" "Return true if its argument is a :c:type:`PyLongObject`, but not a subtype " "of :c:type:`PyLongObject`." msgstr "" +"Retorna verdadero si su argumento es un :c:type:`PyLongObject`, pero no un " +"subtipo de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:41 msgid "" "Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde *v*, o ``NULL`` en caso " +"de error." #: ../Doc/c-api/long.rst:43 msgid "" @@ -71,42 +87,59 @@ msgid "" "be possible to change the value of ``1``. I suspect the behaviour of Python " "in this case is undefined. :-)" msgstr "" +"La implementación actual mantiene un arreglo de objetos enteros para todos " +"los enteros entre ``-5`` y ``256``, cuando crea un *int* en ese rango, en " +"realidad solo obtiene una referencia al objeto existente. Por lo tanto, " +"debería ser posible cambiar el valor de ``1``. Sospecho que el " +"comportamiento de Python en este caso no está definido. :-)" #: ../Doc/c-api/long.rst:52 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, " "or ``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde un C :c:type:`unsigned " +"long`, o ``NULL`` en caso de error." #: ../Doc/c-api/long.rst:58 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or " "``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde un C :c:type:" +"`Py_ssize_t`, o ``NULL`` en caso de error." #: ../Doc/c-api/long.rst:64 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or " "``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde un C :c:type:`size_t`, " +"o ``NULL`` en caso de error." #: ../Doc/c-api/long.rst:70 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or " "``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde un C :c:type:`long " +"long`, o ``NULL`` en caso de error." #: ../Doc/c-api/long.rst:76 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long " "long`, or ``NULL`` on failure." msgstr "" +"Retorna un objeto :c:type:`PyLongObject` nuevo desde un C :c:type:`unsigned " +"long long`, o ``NULL`` en caso de error." #: ../Doc/c-api/long.rst:82 msgid "" "Return a new :c:type:`PyLongObject` object from the integer part of *v*, or " "``NULL`` on failure." msgstr "" +"Retorna un nuevo objeto :c:type:`PyLongObject` de la parte entera de *v*, o " +"``NULL`` en caso de error." #: ../Doc/c-api/long.rst:88 msgid "" @@ -120,6 +153,16 @@ msgid "" "underscores after a base specifier and between digits are ignored. If there " "are no digits, :exc:`ValueError` will be raised." msgstr "" +"Retorna un nuevo :c:type:`PyLongObject` basado en el valor de cadena de " +"caracteres en *str*, que se interpreta de acuerdo con la raíz en *base*. Si " +"*pend* no es ``NULL``, *\\* pend* apuntará al primer carácter en *str* que " +"sigue a la representación del número. Si *base* es ``0``, *str* se " +"interpreta utilizando la definición :ref:`integers`; en este caso, los ceros " +"a la izquierda en un número decimal distinto de cero lanzan un :exc:" +"`ValueError`. Si *base* no es ``0``, debe estar entre ``2`` y ``36``, " +"inclusive. Se ignoran los espacios iniciales y los guiones bajos " +"individuales después de un especificador base y entre dígitos. Si no hay " +"dígitos, se lanzará :exc:`ValueError`." #: ../Doc/c-api/long.rst:101 msgid "" @@ -128,12 +171,18 @@ msgid "" "`PyUnicode_EncodeDecimal` and then converted using :c:func:" "`PyLong_FromString`." msgstr "" +"Convierte una secuencia de dígitos Unicode en un valor entero de Python. La " +"cadena de caracteres Unicode se codifica primero en una cadena de bytes " +"usando :c:func:`PyUnicode_EncodeDecimal` y luego se convierte usando :c:func:" +"`PyLong_FromString`." #: ../Doc/c-api/long.rst:107 msgid "" "Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using :c:" "func:`PyLong_FromUnicodeObject`." msgstr "" +"Parte de la API de viejo estilo :c:type:`Py_UNICODE`; por favor migrar para " +"usar :c:func:`PyLong_FromUnicodeObject`." #: ../Doc/c-api/long.rst:112 msgid "" @@ -142,12 +191,18 @@ msgid "" "`PyUnicode_EncodeDecimal` and then converted using :c:func:" "`PyLong_FromString`." msgstr "" +"Convierte una secuencia de dígitos Unicode en la cadena de caracteres *u* a " +"un valor entero de Python. La cadena de caracteres Unicode se codifica " +"primero en una cadena de bytes usando :c:func:`PyUnicode_EncodeDecimal` y " +"luego se convierte usando :c:func:`PyLong_FromString`." #: ../Doc/c-api/long.rst:122 msgid "" "Create a Python integer from the pointer *p*. The pointer value can be " "retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`." msgstr "" +"Crea un entero de Python desde el puntero *p*. El valor del puntero se puede " +"recuperar del valor resultante usando :c:func:`PyLong_AsVoidPtr`." #: ../Doc/c-api/long.rst:133 ../Doc/c-api/long.rst:152 msgid "" @@ -155,30 +210,38 @@ msgid "" "instance of :c:type:`PyLongObject`, first call its :meth:`__index__` or :" "meth:`__int__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`long` de *obj*. Si *obj* no es una " +"instancia de :c:type:`PyLongObject`, primero llama a su método :meth:" +"`__index__` o :meth:`__int__` (si está presente) para convertirlo en un :c:" +"type:`PyLongObject`." #: ../Doc/c-api/long.rst:138 msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "type:`long`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *obj* está fuera de rango para un :" +"c:type:`long`." #: ../Doc/c-api/long.rst:141 ../Doc/c-api/long.rst:162 #: ../Doc/c-api/long.rst:184 ../Doc/c-api/long.rst:205 #: ../Doc/c-api/long.rst:228 msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" +"Retorna ``-1`` en caso de error. Use :c:func:`PyErr_Occurred` para " +"desambiguar." #: ../Doc/c-api/long.rst:143 ../Doc/c-api/long.rst:164 #: ../Doc/c-api/long.rst:186 ../Doc/c-api/long.rst:209 #: ../Doc/c-api/long.rst:294 ../Doc/c-api/long.rst:314 msgid "Use :meth:`__index__` if available." -msgstr "" +msgstr "Use :meth:`__index__` si está disponible." #: ../Doc/c-api/long.rst:146 ../Doc/c-api/long.rst:167 #: ../Doc/c-api/long.rst:189 ../Doc/c-api/long.rst:212 #: ../Doc/c-api/long.rst:297 ../Doc/c-api/long.rst:317 msgid "Using :meth:`__int__` is deprecated." -msgstr "" +msgstr "Usar :meth:`__int__` está deprecado." #: ../Doc/c-api/long.rst:157 msgid "" @@ -187,6 +250,11 @@ msgid "" "``-1``; otherwise, set *\\*overflow* to ``0``. If any other exception " "occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" +"Si el valor de *obj* es mayor que :const:`LONG_MAX` o menor que :const:" +"`LONG_MIN`, establece *\\*overflow * en ``1`` o ``-1``, respectivamente, y " +"retorna ``-1``; de lo contrario, establece *\\*overflow* en ``0``. Si se " +"produce alguna otra excepción, configura *\\*overflow* en ``0`` y retorna " +"``-1`` como de costumbre." #: ../Doc/c-api/long.rst:176 ../Doc/c-api/long.rst:195 msgid "" @@ -194,12 +262,18 @@ msgid "" "instance of :c:type:`PyLongObject`, first call its :meth:`__index__` or :" "meth:`__int__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`long long` de *obj*. Si *obj* no es " +"una instancia de :c:type:`PyLongObject`, primero llama a su método :meth:" +"`__index__` o :meth:`__int__` (si está presente) para convertirlo en un :c:" +"type:`PyLongObject`." #: ../Doc/c-api/long.rst:181 msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "type:`long long`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *obj* está fuera de rango para un :" +"c:type:`long long`." #: ../Doc/c-api/long.rst:200 msgid "" @@ -208,77 +282,106 @@ msgid "" "and return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other " "exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" +"Si el valor de *obj* es mayor que :const:`PY_LLONG_MAX` o menor que :const:" +"`PY_LLONG_MIN`, establece *\\*overflow* en ``1`` o ``-1``, respectivamente, " +"y retorna ``-1``; de lo contrario, establece *\\*overflow* en ``0``. Si se " +"produce alguna otra excepción, configura *\\*overflow* en ``0`` y retorna " +"``-1`` como de costumbre." #: ../Doc/c-api/long.rst:222 msgid "" "Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must " "be an instance of :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`Py_ssize_t` de *pylong*. *pylong* " +"debe ser una instancia de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:225 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`Py_ssize_t`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " +"un :c:type:`Py_ssize_t`." #: ../Doc/c-api/long.rst:237 msgid "" "Return a C :c:type:`unsigned long` representation of *pylong*. *pylong* " "must be an instance of :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`unsigned long` de *pylong*. " +"*pylong* debe ser una instancia de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:240 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`unsigned long`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " +"un :c:type:`unsigned long`." #: ../Doc/c-api/long.rst:243 msgid "" "Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" +"Retorna ``(unsigned long)-1`` en caso de error. Use :c:func:`PyErr_Occurred` " +"para desambiguar." #: ../Doc/c-api/long.rst:253 msgid "" "Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an " "instance of :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`size_t` de *pylong*. *pylong* debe " +"ser una instancia de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:256 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`size_t`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " +"un :c:type:`size_t`." #: ../Doc/c-api/long.rst:259 msgid "" "Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" +"Retorna ``(size_t) -1`` en caso de error. Use :c:func:`PyErr_Occurred` para " +"desambiguar." #: ../Doc/c-api/long.rst:268 msgid "" "Return a C :c:type:`unsigned long long` representation of *pylong*. " "*pylong* must be an instance of :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`unsigned long long` de *pylong*. " +"*pylong* debe ser una instancia de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:271 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :" "c:type:`unsigned long long`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " +"un :c:type:`unsigned long long`." #: ../Doc/c-api/long.rst:274 msgid "" "Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" +"Retorna ``(unsigned long long) -1`` en caso de error. Use :c:func:" +"`PyErr_Occurred` para desambiguar." #: ../Doc/c-api/long.rst:277 msgid "" "A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`." msgstr "" +"Ahora un *pylong* negativo lanza un :exc:`OverflowError`, no :exc:" +"`TypeError`." #: ../Doc/c-api/long.rst:283 msgid "" @@ -286,18 +389,26 @@ msgid "" "an instance of :c:type:`PyLongObject`, first call its :meth:`__index__` or :" "meth:`__int__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`unsigned long` de *obj*. Si *obj* " +"no es una instancia de :c:type:`PyLongObject`, primero llama a su método :" +"meth:`__index__` o :meth:`__int__` (si está presente) para convertirlo en " +"un :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:288 msgid "" "If the value of *obj* is out of range for an :c:type:`unsigned long`, return " "the reduction of that value modulo ``ULONG_MAX + 1``." msgstr "" +"Si el valor de *obj* está fuera del rango para :c:type:`unsigned long`, " +"retorna la reducción de ese valor módulo ``ULONG_MAX + 1``." #: ../Doc/c-api/long.rst:291 msgid "" "Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" +"Retorna ``(unsigned long)-1`` en caso de error. Use :c:func:`PyErr_Occurred` " +"para desambiguar." #: ../Doc/c-api/long.rst:303 msgid "" @@ -306,35 +417,49 @@ msgid "" "`__index__` or :meth:`__int__` method (if present) to convert it to a :c:" "type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`unsigned long long` de *obj*. Si " +"*obj* no es una instancia de :c:type:`PyLongObject`, primero llama a su " +"método :meth:`__index__` o :meth:`__int__` (si está presente) para " +"convertirlo en un :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:308 msgid "" "If the value of *obj* is out of range for an :c:type:`unsigned long long`, " "return the reduction of that value modulo ``PY_ULLONG_MAX + 1``." msgstr "" +"Si el valor de *obj* está fuera del rango para :c:type:`unsigned long long`, " +"retorna la reducción de ese valor módulo ``PY_ULLONG_MAX + 1``." #: ../Doc/c-api/long.rst:311 msgid "" "Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` " "to disambiguate." msgstr "" +"Retorna ``(unsigned long long) -1`` por error. Use :c:func:`PyErr_Occurred` " +"para desambiguar." #: ../Doc/c-api/long.rst:323 msgid "" "Return a C :c:type:`double` representation of *pylong*. *pylong* must be an " "instance of :c:type:`PyLongObject`." msgstr "" +"Retorna una representación de C :c:type:`double` de *pylong*. *pylong* debe " +"ser una instancia de :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:326 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`double`." msgstr "" +"Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " +"un :c:type:`double`." #: ../Doc/c-api/long.rst:329 msgid "" "Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" +"Retorna ``-1.0`` en caso de error. Use :c:func:`PyErr_Occurred` para " +"desambiguar." #: ../Doc/c-api/long.rst:334 msgid "" @@ -343,8 +468,14 @@ msgid "" "assured to produce a usable :c:type:`void` pointer for values created with :" "c:func:`PyLong_FromVoidPtr`." msgstr "" +"Convierte un entero Python *pylong* en un puntero C :c:type:`void`. Si " +"*pylong* no se puede convertir, se generará un :exc:`OverflowError`. Esto " +"solo se garantiza para producir un puntero utilizable :c:type:`void` para " +"valores creados con :c:func:`PyLong_FromVoidPtr`." #: ../Doc/c-api/long.rst:339 msgid "" "Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" +"Retorna ``NULL`` en caso de error. Use :c:func:`PyErr_Occurred` para " +"desambiguar."