Skip to content
Prev Previous commit
Next Next commit
Powrap
  • Loading branch information
xooseph committed Jan 28, 2025
commit f85a9f75af127e4eaeff2695a01aa71bbe50397d
59 changes: 30 additions & 29 deletions reference/datamodel.po
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ msgid ""
"representing the values ``False`` and ``True`` are the only Boolean objects. "
"The Boolean type is a subtype of the integer type, and Boolean values behave "
"like the values 0 and 1, respectively, in almost all contexts, the exception "
"being that when converted to a string, the strings ``\"False\"`` or ``\"True"
"\"`` are returned, respectively."
"being that when converted to a string, the strings ``\"False\"`` or "
"``\"True\"`` are returned, respectively."
msgstr ""
"Estos representan los valores de verdad Falso y Verdadero. Los dos objetos "
"que representan los valores ``False`` y ``True`` son los únicos objetos "
Expand Down Expand Up @@ -1369,9 +1369,10 @@ msgid ""
"namespace implemented by a :class:`dictionary <dict>` object (this is the "
"dictionary referenced by the :attr:`~function.__globals__` attribute of "
"functions defined in the module). Attribute references are translated to "
"lookups in this dictionary, e.g., ``m.x`` is equivalent to ``m.__dict__[\"x"
"\"]``. A module object does not contain the code object used to initialize "
"the module (since it isn't needed once the initialization is done)."
"lookups in this dictionary, e.g., ``m.x`` is equivalent to ``m."
"__dict__[\"x\"]``. A module object does not contain the code object used to "
"initialize the module (since it isn't needed once the initialization is "
"done)."
msgstr ""
"Los módulos son una unidad básica organizacional en código Python, y son "
"creados por el :ref:`sistema de importación <importsystem>` al ser invocados "
Expand Down Expand Up @@ -2213,8 +2214,8 @@ msgid ""
msgstr ""
"El :ref:`objeto de código <code-objects>` que se está ejecutando en este "
"marco. Al acceder a este atributo se lanza un :ref:`evento de auditoría "
"<auditing>` ``object.__getattr__`` con los argumentos ``obj`` y ``\"f_code"
"\"``."
"<auditing>` ``object.__getattr__`` con los argumentos ``obj`` y "
"``\"f_code\"``."

# Cómo puede quedar esta traducción, para que no quede como: "hace referencia a un :term:`optimized scope`"?
Comment thread
rtobar marked this conversation as resolved.
#: ../Doc/reference/datamodel.rst:1417
Expand Down Expand Up @@ -3139,10 +3140,10 @@ msgstr ""

#: ../Doc/reference/datamodel.rst:1971
msgid ""
"By default, the :meth:`__hash__` values of str and bytes objects are \"salted"
"\" with an unpredictable random value. Although they remain constant within "
"an individual Python process, they are not predictable between repeated "
"invocations of Python."
"By default, the :meth:`__hash__` values of str and bytes objects are "
"\"salted\" with an unpredictable random value. Although they remain "
"constant within an individual Python process, they are not predictable "
"between repeated invocations of Python."
msgstr ""
"Por defecto los valores de objetos str y bytes de :meth:`__hash__` son "
"“salados” con un valor aleatorio impredecible. Aunque se mantienen "
Expand Down Expand Up @@ -3461,9 +3462,9 @@ msgid ""
"The following methods only apply when an instance of the class containing "
"the method (a so-called *descriptor* class) appears in an *owner* class (the "
"descriptor must be in either the owner's class dictionary or in the class "
"dictionary for one of its parents). In the examples below, \"the attribute"
"\" refers to the attribute whose name is the key of the property in the "
"owner class' :attr:`~object.__dict__`."
"dictionary for one of its parents). In the examples below, \"the "
"attribute\" refers to the attribute whose name is the key of the property in "
"the owner class' :attr:`~object.__dict__`."
msgstr ""
"Los siguientes métodos solo aplican cuando una instancia de clase que "
"contiene el método (llamado clase *descriptora*) aparece en una clase "
Expand Down Expand Up @@ -5121,16 +5122,16 @@ msgstr ""

#: ../Doc/reference/datamodel.rst:3060
msgid ""
"These methods are called to implement the binary arithmetic operations (``"
"+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, "
"``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``). For instance, to evaluate the "
"expression ``x + y``, where *x* is an instance of a class that has an :meth:"
"`__add__` method, ``type(x).__add__(x, y)`` is called. The :meth:"
"`__divmod__` method should be the equivalent to using :meth:`__floordiv__` "
"and :meth:`__mod__`; it should not be related to :meth:`__truediv__`. Note "
"that :meth:`__pow__` should be defined to accept an optional third argument "
"if the ternary version of the built-in :func:`pow` function is to be "
"supported."
"These methods are called to implement the binary arithmetic operations "
"(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:"
"`pow`, ``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``). For instance, to "
"evaluate the expression ``x + y``, where *x* is an instance of a class that "
"has an :meth:`__add__` method, ``type(x).__add__(x, y)`` is called. The :"
"meth:`__divmod__` method should be the equivalent to using :meth:"
"`__floordiv__` and :meth:`__mod__`; it should not be related to :meth:"
"`__truediv__`. Note that :meth:`__pow__` should be defined to accept an "
"optional third argument if the ternary version of the built-in :func:`pow` "
"function is to be supported."
msgstr ""
"Estos métodos se llaman para implementar las operaciones aritméticas "
"binarias (``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :"
Expand All @@ -5153,9 +5154,9 @@ msgstr ""

#: ../Doc/reference/datamodel.rst:3094
msgid ""
"These methods are called to implement the binary arithmetic operations (``"
"+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:`pow`, "
"``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``) with reflected (swapped) "
"These methods are called to implement the binary arithmetic operations "
"(``+``, ``-``, ``*``, ``@``, ``/``, ``//``, ``%``, :func:`divmod`, :func:"
"`pow`, ``**``, ``<<``, ``>>``, ``&``, ``^``, ``|``) with reflected (swapped) "
"operands. These functions are only called if the left operand does not "
"support the corresponding operation [#]_ and the operands are of different "
"types. [#]_ For instance, to evaluate the expression ``x - y``, where *y* is "
Expand Down Expand Up @@ -5233,8 +5234,8 @@ msgid ""
"Called to implement the unary arithmetic operations (``-``, ``+``, :func:"
"`abs` and ``~``)."
msgstr ""
"Es llamado para implementar las operaciones aritméticas unarias (``-``, ``"
"+``, :func:`abs` and ``~``)."
"Es llamado para implementar las operaciones aritméticas unarias (``-``, "
"``+``, :func:`abs` and ``~``)."

#: ../Doc/reference/datamodel.rst:3168
msgid ""
Expand Down