# Copyright (C) 2001-2020, Python Software Foundation # This file is distributed under the same license as the Python package. # Maintained by the python-doc-es workteam. # docs-es@python.org / # https://mail.python.org/mailman3/lists/docs-es.python.org/ # Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to # get the list of volunteers # msgid "" 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-02 01:24+0200\n" "Last-Translator: Cristián Maureira-Fredes \n" "Language: es\n" "Language-Team: python-doc-es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.10.3\n" #: ../Doc/c-api/long.rst:6 msgid "Integer Objects" 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 "" "On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot " "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`. This function always succeeds." msgstr "" "Retorna verdadero si su argumento es un :c:type:`PyLongObject` o un subtipo " "de :c:type:`PyLongObject`. Esta función siempre finaliza con éxito." #: ../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`. This function always succeeds." msgstr "" "Retorna verdadero si su argumento es un :c:type:`PyLongObject`, pero no un " "subtipo de :c:type:`PyLongObject`. Esta función siempre finaliza con éxito." #: ../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 #, fuzzy msgid "" "The current implementation keeps an array of integer objects for all " "integers between ``-5`` and ``256``. When you create an int in that range " "you actually just get back a reference to the existing object." 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." #: ../Doc/c-api/long.rst:50 #, fuzzy msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`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:56 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:62 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:68 #, fuzzy msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`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:74 #, fuzzy msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`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:80 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:86 msgid "" "Return a new :c:type:`PyLongObject` based on the string value in *str*, " "which is interpreted according to the radix in *base*. If *pend* is non-" "``NULL``, *\\*pend* will point to the first character in *str* which follows " "the representation of the number. If *base* is ``0``, *str* is interpreted " "using the :ref:`integers` definition; in this case, leading zeros in a non-" "zero decimal number raises a :exc:`ValueError`. If *base* is not ``0``, it " "must be between ``2`` and ``36``, inclusive. Leading spaces and single " "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:99 msgid "" "Convert a sequence of Unicode digits in the string *u* to a Python integer " "value." msgstr "" "Convierte una secuencia de dígitos Unicode en la cadena de caracteres *u* en " "un valor entero de Python." #: ../Doc/c-api/long.rst:107 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:118 ../Doc/c-api/long.rst:136 #, fuzzy msgid "" "Return a C :c:expr:`long` representation of *obj*. If *obj* is not an " "instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method " "(if present) to convert it to a :c:type:`PyLongObject`." msgstr "" "Retorna una representación C :c:type:`long` de *obj*. Si *obj* no es una " "instancia de :c:type:`PyLongObject`, primero llama a su método :meth:" "`__index__` (si está presente) para convertirlo en un :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:122 #, fuzzy msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "expr:`long`." msgstr "" "Lanza :exc:`OverflowError` si el valor de *obj* está fuera de rango para un :" "c:type:`long`." #: ../Doc/c-api/long.rst:125 ../Doc/c-api/long.rst:145 #: ../Doc/c-api/long.rst:166 ../Doc/c-api/long.rst:186 #: ../Doc/c-api/long.rst:209 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:127 ../Doc/c-api/long.rst:147 #: ../Doc/c-api/long.rst:168 ../Doc/c-api/long.rst:190 #: ../Doc/c-api/long.rst:274 ../Doc/c-api/long.rst:294 msgid "Use :meth:`__index__` if available." msgstr "Use :meth:`__index__` si está disponible." #: ../Doc/c-api/long.rst:130 ../Doc/c-api/long.rst:150 #: ../Doc/c-api/long.rst:171 ../Doc/c-api/long.rst:193 #: ../Doc/c-api/long.rst:277 ../Doc/c-api/long.rst:297 msgid "This function will no longer use :meth:`__int__`." msgstr "Esta función no usará más :meth:`__int__`." #: ../Doc/c-api/long.rst:140 msgid "" "If the value of *obj* is greater than :const:`LONG_MAX` or less than :const:" "`LONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, 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:`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:159 ../Doc/c-api/long.rst:177 #, fuzzy msgid "" "Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an " "instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method " "(if present) to convert it to a :c:type:`PyLongObject`." msgstr "" "Retorna una representación C :c:type:`long long` de *obj*. Si *obj* no es " "una instancia de :c:type:`PyLongObject`, primero llame a su método :meth:" "`__index__` (si está presente) para convertirlo en un :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:163 #, fuzzy msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "expr:`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:181 msgid "" "If the value of *obj* is greater than :const:`LLONG_MAX` or less than :const:" "`LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, 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:`LLONG_MAX` o menor que :const:" "`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:203 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:206 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:218 #, fuzzy msgid "" "Return a C :c:expr:`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:221 #, fuzzy msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "expr:`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:224 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:234 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:237 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:240 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:249 #, fuzzy msgid "" "Return a C :c:expr:`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:252 #, fuzzy msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :" "c:expr:`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:255 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:258 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:264 #, fuzzy msgid "" "Return a C :c:expr:`unsigned long` representation of *obj*. If *obj* is not " "an instance of :c:type:`PyLongObject`, first call its :meth:`__index__` " "method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" "Retorna una representación C :c:type:`unsigned long` de *obj*. Si *obj* no " "es una instancia de :c:type:`PyLongObject`, primero llame a su método :meth:" "`__index__` (si está presente) para convertirlo en un :c:type:`PyLongObject`." #: ../Doc/c-api/long.rst:268 #, fuzzy msgid "" "If the value of *obj* is out of range for an :c:expr:`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:271 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:283 #, fuzzy msgid "" "Return a C :c:expr:`unsigned long long` representation of *obj*. If *obj* " "is not an instance of :c:type:`PyLongObject`, first call its :meth:" "`__index__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" "Retorna una representación C :c:type:`unsigned long long` de *obj*. Si *obj* " "no es una instancia de :c:type:`PyLongObject`, primero llame a su método :" "meth:`__index__` (si está presente) para convertirlo en un :c:type:" "`PyLongObject`." #: ../Doc/c-api/long.rst:288 #, fuzzy msgid "" "If the value of *obj* is out of range for an :c:expr:`unsigned long long`, " "return the reduction of that value modulo ``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 ``ULLONG_MAX + 1``." #: ../Doc/c-api/long.rst:291 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:303 #, fuzzy msgid "" "Return a C :c:expr:`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:306 #, fuzzy msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "expr:`double`." msgstr "" "Lanza :exc:`OverflowError` si el valor de *pylong* está fuera de rango para " "un :c:type:`double`." #: ../Doc/c-api/long.rst:309 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:314 #, fuzzy msgid "" "Convert a Python integer *pylong* to a C :c:expr:`void` pointer. If *pylong* " "cannot be converted, an :exc:`OverflowError` will be raised. This is only " "assured to produce a usable :c:expr:`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 lanzará 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:319 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."