@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.9\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2021-05-23 06:25 +0000\n "
14+ "POT-Creation-Date : 2021-07-31 07:07 +0000\n "
1515"PO-Revision-Date : 2017-02-16 23:38+0000\n "
1616"Last-Translator : m_aciek <maciej.olko@gmail.com>, 2020\n "
1717"Language-Team : Polish (https://www.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -1001,23 +1001,32 @@ msgid ""
10011001"`complex` number. (In earlier versions it raised a :exc:`ValueError`.)"
10021002msgstr ""
10031003
1004+ msgid ""
1005+ "This operation can be customized using the special :meth:`__pow__` method."
1006+ msgstr ""
1007+
10041008msgid "Unary arithmetic and bitwise operations"
10051009msgstr ""
10061010
10071011msgid "All unary arithmetic and bitwise operations have the same priority:"
10081012msgstr ""
10091013
10101014msgid ""
1011- "The unary ``-`` (minus) operator yields the negation of its numeric argument."
1015+ "The unary ``-`` (minus) operator yields the negation of its numeric "
1016+ "argument; the operation can be overridden with the :meth:`__neg__` special "
1017+ "method."
10121018msgstr ""
10131019
1014- msgid "The unary ``+`` (plus) operator yields its numeric argument unchanged."
1020+ msgid ""
1021+ "The unary ``+`` (plus) operator yields its numeric argument unchanged; the "
1022+ "operation can be overridden with the :meth:`__pos__` special method."
10151023msgstr ""
10161024
10171025msgid ""
10181026"The unary ``~`` (invert) operator yields the bitwise inversion of its "
10191027"integer argument. The bitwise inversion of ``x`` is defined as ``-(x+1)``. "
1020- "It only applies to integral numbers."
1028+ "It only applies to integral numbers or to custom objects that override the :"
1029+ "meth:`__invert__` special method."
10211030msgstr ""
10221031
10231032msgid ""
@@ -1044,6 +1053,11 @@ msgid ""
10441053"an empty sequence."
10451054msgstr ""
10461055
1056+ msgid ""
1057+ "This operation can be customized using the special :meth:`__mul__` and :meth:"
1058+ "`__rmul__` methods."
1059+ msgstr ""
1060+
10471061msgid ""
10481062"The ``@`` (at) operator is intended to be used for matrix multiplication. "
10491063"No builtin Python types implement this operator."
@@ -1058,6 +1072,11 @@ msgid ""
10581072"the :exc:`ZeroDivisionError` exception."
10591073msgstr ""
10601074
1075+ msgid ""
1076+ "This operation can be customized using the special :meth:`__div__` and :meth:"
1077+ "`__floordiv__` methods."
1078+ msgstr ""
1079+
10611080msgid ""
10621081"The ``%`` (modulo) operator yields the remainder from the division of the "
10631082"first argument by the second. The numeric arguments are first converted to "
@@ -1084,6 +1103,11 @@ msgid ""
10841103"formatting`."
10851104msgstr ""
10861105
1106+ msgid ""
1107+ "The *modulo* operation can be customized using the special :meth:`__mod__` "
1108+ "method."
1109+ msgstr ""
1110+
10871111msgid ""
10881112"The floor division operator, the modulo operator, and the :func:`divmod` "
10891113"function are not defined for complex numbers. Instead, convert to a "
@@ -1097,11 +1121,20 @@ msgid ""
10971121"then added together. In the latter case, the sequences are concatenated."
10981122msgstr ""
10991123
1124+ msgid ""
1125+ "This operation can be customized using the special :meth:`__add__` and :meth:"
1126+ "`__radd__` methods."
1127+ msgstr ""
1128+
11001129msgid ""
11011130"The ``-`` (subtraction) operator yields the difference of its arguments. "
11021131"The numeric arguments are first converted to a common type."
11031132msgstr ""
11041133
1134+ msgid ""
1135+ "This operation can be customized using the special :meth:`__sub__` method."
1136+ msgstr ""
1137+
11051138msgid "Shifting operations"
11061139msgstr ""
11071140
@@ -1114,6 +1147,11 @@ msgid ""
11141147"to the left or right by the number of bits given by the second argument."
11151148msgstr ""
11161149
1150+ msgid ""
1151+ "This operation can be customized using the special :meth:`__lshift__` and :"
1152+ "meth:`__rshift__` methods."
1153+ msgstr ""
1154+
11171155msgid ""
11181156"A right shift by *n* bits is defined as floor division by ``pow(2,n)``. A "
11191157"left shift by *n* bits is defined as multiplication with ``pow(2,n)``."
@@ -1127,17 +1165,20 @@ msgstr ""
11271165
11281166msgid ""
11291167"The ``&`` operator yields the bitwise AND of its arguments, which must be "
1130- "integers."
1168+ "integers or one of them must be a custom object overriding :meth:`__and__` "
1169+ "or :meth:`__rand__` special methods."
11311170msgstr ""
11321171
11331172msgid ""
11341173"The ``^`` operator yields the bitwise XOR (exclusive OR) of its arguments, "
1135- "which must be integers."
1174+ "which must be integers or one of them must be a custom object overriding :"
1175+ "meth:`__xor__` or :meth:`__rxor__` special methods."
11361176msgstr ""
11371177
11381178msgid ""
11391179"The ``|`` operator yields the bitwise (inclusive) OR of its arguments, which "
1140- "must be integers."
1180+ "must be integers or one of them must be a custom object overriding :meth:"
1181+ "`__or__` or :meth:`__ror__` special methods."
11411182msgstr ""
11421183
11431184msgid "Comparisons"
@@ -1150,7 +1191,10 @@ msgid ""
11501191"conventional in mathematics:"
11511192msgstr ""
11521193
1153- msgid "Comparisons yield boolean values: ``True`` or ``False``."
1194+ msgid ""
1195+ "Comparisons yield boolean values: ``True`` or ``False``. Custom :dfn:`rich "
1196+ "comparison methods` may return non-boolean values. In this case Python will "
1197+ "call :func:`bool` on such value in boolean contexts."
11541198msgstr ""
11551199
11561200msgid ""
0 commit comments