python-docs-fr/library/operator.po

808 lines
20 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2016-10-30 09:46:26 +00:00
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2018-06-28 13:32:56 +00:00
"POT-Creation-Date: 2018-06-28 15:29+0200\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/operator.rst:2
msgid ":mod:`operator` --- Standard operators as functions"
msgstr ""
#: ../Doc/library/operator.rst:9
msgid "**Source code:** :source:`Lib/operator.py`"
msgstr "**Code source :** :source:`Lib/operator.py`"
#: ../Doc/library/operator.rst:18
msgid ""
"The :mod:`operator` module exports a set of efficient functions "
"corresponding to the intrinsic operators of Python. For example, ``operator."
2017-12-01 06:48:13 +00:00
"add(x, y)`` is equivalent to the expression ``x+y``. Many function names are "
"those used for special methods, without the double underscores. For "
"backward compatibility, many of these have a variant with the double "
"underscores kept. The variants without the double underscores are preferred "
"for clarity."
2016-10-30 09:46:26 +00:00
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:25
2016-10-30 09:46:26 +00:00
msgid ""
"The functions fall into categories that perform object comparisons, logical "
"operations, mathematical operations and sequence operations."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:28
2016-10-30 09:46:26 +00:00
msgid ""
"The object comparison functions are useful for all objects, and are named "
"after the rich comparison operators they support:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:45
2016-10-30 09:46:26 +00:00
msgid ""
"Perform \"rich comparisons\" between *a* and *b*. Specifically, ``lt(a, b)`` "
"is equivalent to ``a < b``, ``le(a, b)`` is equivalent to ``a <= b``, "
"``eq(a, b)`` is equivalent to ``a == b``, ``ne(a, b)`` is equivalent to ``a !"
"= b``, ``gt(a, b)`` is equivalent to ``a > b`` and ``ge(a, b)`` is "
"equivalent to ``a >= b``. Note that these functions can return any value, "
"which may or may not be interpretable as a Boolean value. See :ref:"
"`comparisons` for more information about rich comparisons."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:54
2016-10-30 09:46:26 +00:00
msgid ""
"The logical operations are also generally applicable to all objects, and "
"support truth tests, identity tests, and boolean operations:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:61
2016-10-30 09:46:26 +00:00
msgid ""
"Return the outcome of :keyword:`not` *obj*. (Note that there is no :meth:"
"`__not__` method for object instances; only the interpreter core defines "
"this operation. The result is affected by the :meth:`__bool__` and :meth:"
"`__len__` methods.)"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:69
2016-10-30 09:46:26 +00:00
msgid ""
"Return :const:`True` if *obj* is true, and :const:`False` otherwise. This "
"is equivalent to using the :class:`bool` constructor."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:75
2016-10-30 09:46:26 +00:00
msgid "Return ``a is b``. Tests object identity."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:80
2016-10-30 09:46:26 +00:00
msgid "Return ``a is not b``. Tests object identity."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:83
2016-10-30 09:46:26 +00:00
msgid "The mathematical and bitwise operations are the most numerous:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:89
2016-10-30 09:46:26 +00:00
msgid "Return the absolute value of *obj*."
msgstr "Renvoie la valeur absolue de *obj*."
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:95
2016-10-30 09:46:26 +00:00
msgid "Return ``a + b``, for *a* and *b* numbers."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:101
2016-10-30 09:46:26 +00:00
msgid "Return the bitwise and of *a* and *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:107
2016-10-30 09:46:26 +00:00
msgid "Return ``a // b``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:113
2016-10-30 09:46:26 +00:00
msgid "Return *a* converted to an integer. Equivalent to ``a.__index__()``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:121
2016-10-30 09:46:26 +00:00
msgid ""
"Return the bitwise inverse of the number *obj*. This is equivalent to "
"``~obj``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:127
2016-10-30 09:46:26 +00:00
msgid "Return *a* shifted left by *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:133
2016-10-30 09:46:26 +00:00
msgid "Return ``a % b``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:139
2016-10-30 09:46:26 +00:00
msgid "Return ``a * b``, for *a* and *b* numbers."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:145
2016-10-30 09:46:26 +00:00
msgid "Return ``a @ b``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:153
2016-10-30 09:46:26 +00:00
msgid "Return *obj* negated (``-obj``)."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:159
2016-10-30 09:46:26 +00:00
msgid "Return the bitwise or of *a* and *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:165
2016-10-30 09:46:26 +00:00
msgid "Return *obj* positive (``+obj``)."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:171
2016-10-30 09:46:26 +00:00
msgid "Return ``a ** b``, for *a* and *b* numbers."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:177
2016-10-30 09:46:26 +00:00
msgid "Return *a* shifted right by *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:183
2016-10-30 09:46:26 +00:00
msgid "Return ``a - b``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:189
2016-10-30 09:46:26 +00:00
msgid ""
"Return ``a / b`` where 2/3 is .66 rather than 0. This is also known as "
"\"true\" division."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:196
2016-10-30 09:46:26 +00:00
msgid "Return the bitwise exclusive or of *a* and *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:199
2016-10-30 09:46:26 +00:00
msgid ""
"Operations which work with sequences (some of them with mappings too) "
"include:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:204
2016-10-30 09:46:26 +00:00
msgid "Return ``a + b`` for *a* and *b* sequences."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:210
2016-10-30 09:46:26 +00:00
msgid "Return the outcome of the test ``b in a``. Note the reversed operands."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:215
2016-10-30 09:46:26 +00:00
msgid "Return the number of occurrences of *b* in *a*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:221
2016-10-30 09:46:26 +00:00
msgid "Remove the value of *a* at index *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:227
2016-10-30 09:46:26 +00:00
msgid "Return the value of *a* at index *b*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:232
2016-10-30 09:46:26 +00:00
msgid "Return the index of the first of occurrence of *b* in *a*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:238
2016-10-30 09:46:26 +00:00
msgid "Set the value of *a* at index *b* to *c*."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:243
2016-10-30 09:46:26 +00:00
msgid ""
"Return an estimated length for the object *o*. First try to return its "
"actual length, then an estimate using :meth:`object.__length_hint__`, and "
"finally return the default value."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:249
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`operator` module also defines tools for generalized attribute and "
"item lookups. These are useful for making fast field extractors as "
"arguments for :func:`map`, :func:`sorted`, :meth:`itertools.groupby`, or "
"other functions that expect a function argument."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:258
2016-10-30 09:46:26 +00:00
msgid ""
"Return a callable object that fetches *attr* from its operand. If more than "
"one attribute is requested, returns a tuple of attributes. The attribute "
"names can also contain dots. For example:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:262
2016-10-30 09:46:26 +00:00
msgid "After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:264
2016-10-30 09:46:26 +00:00
msgid ""
"After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns ``(b."
"name, b.date)``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:267
2016-10-30 09:46:26 +00:00
msgid ""
"After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)`` "
"returns ``(b.name.first, b.name.last)``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:270 ../Doc/library/operator.rst:302
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:351
2016-10-30 09:46:26 +00:00
msgid "Equivalent to::"
msgstr "Équivalent à : ::"
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:293
2016-10-30 09:46:26 +00:00
msgid ""
"Return a callable object that fetches *item* from its operand using the "
"operand's :meth:`__getitem__` method. If multiple items are specified, "
"returns a tuple of lookup values. For example:"
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:297
2016-10-30 09:46:26 +00:00
msgid "After ``f = itemgetter(2)``, the call ``f(r)`` returns ``r[2]``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:299
2016-10-30 09:46:26 +00:00
msgid ""
"After ``g = itemgetter(2, 5, 3)``, the call ``g(r)`` returns ``(r[2], r[5], "
"r[3])``."
msgstr ""
2017-12-01 06:48:13 +00:00
#: ../Doc/library/operator.rst:314
2016-10-30 09:46:26 +00:00
msgid ""
"The items can be any type accepted by the operand's :meth:`__getitem__` "
"method. Dictionaries accept any hashable value. Lists, tuples, and strings "
"accept an index or a slice:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:329
2016-10-30 09:46:26 +00:00
msgid ""
"Example of using :func:`itemgetter` to retrieve specific fields from a tuple "
"record:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:342
2016-10-30 09:46:26 +00:00
msgid ""
"Return a callable object that calls the method *name* on its operand. If "
"additional arguments and/or keyword arguments are given, they will be given "
"to the method as well. For example:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:346
2016-10-30 09:46:26 +00:00
msgid ""
"After ``f = methodcaller('name')``, the call ``f(b)`` returns ``b.name()``."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:348
2016-10-30 09:46:26 +00:00
msgid ""
"After ``f = methodcaller('name', 'foo', bar=1)``, the call ``f(b)`` returns "
"``b.name('foo', bar=1)``."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:362
2016-10-30 09:46:26 +00:00
msgid "Mapping Operators to Functions"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:364
2016-10-30 09:46:26 +00:00
msgid ""
"This table shows how abstract operations correspond to operator symbols in "
"the Python syntax and the functions in the :mod:`operator` module."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:368
2016-10-30 09:46:26 +00:00
msgid "Operation"
msgstr "Opération"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:368
2016-10-30 09:46:26 +00:00
msgid "Syntax"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:368
2016-10-30 09:46:26 +00:00
msgid "Function"
msgstr "Fonction"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:370
2016-10-30 09:46:26 +00:00
msgid "Addition"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:370
2016-10-30 09:46:26 +00:00
msgid "``a + b``"
msgstr "``a + b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:370
2016-10-30 09:46:26 +00:00
msgid "``add(a, b)``"
msgstr "``add(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:372
2016-10-30 09:46:26 +00:00
msgid "Concatenation"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:372
2016-10-30 09:46:26 +00:00
msgid "``seq1 + seq2``"
msgstr "``seq1 + seq2``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:372
2016-10-30 09:46:26 +00:00
msgid "``concat(seq1, seq2)``"
msgstr "``concat(seq1, seq2)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:374
2016-10-30 09:46:26 +00:00
msgid "Containment Test"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:374
2016-10-30 09:46:26 +00:00
msgid "``obj in seq``"
msgstr "``obj in seq``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:374
2016-10-30 09:46:26 +00:00
msgid "``contains(seq, obj)``"
msgstr "``contains(seq, obj)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:376 ../Doc/library/operator.rst:378
2016-10-30 09:46:26 +00:00
msgid "Division"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:376
2016-10-30 09:46:26 +00:00
msgid "``a / b``"
msgstr "``a / b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:376
2016-10-30 09:46:26 +00:00
msgid "``truediv(a, b)``"
msgstr "``truediv(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:378
2016-10-30 09:46:26 +00:00
msgid "``a // b``"
msgstr "``a // b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:378
2016-10-30 09:46:26 +00:00
msgid "``floordiv(a, b)``"
msgstr "``floordiv(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:380
2016-10-30 09:46:26 +00:00
msgid "Bitwise And"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:380
2016-10-30 09:46:26 +00:00
msgid "``a & b``"
msgstr "``a & b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:380
2016-10-30 09:46:26 +00:00
msgid "``and_(a, b)``"
msgstr "``and_(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:382
2016-10-30 09:46:26 +00:00
msgid "Bitwise Exclusive Or"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:382
2016-10-30 09:46:26 +00:00
msgid "``a ^ b``"
msgstr "``a ^ b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:382
2016-10-30 09:46:26 +00:00
msgid "``xor(a, b)``"
msgstr "``xor(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:384
2016-10-30 09:46:26 +00:00
msgid "Bitwise Inversion"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:384
2016-10-30 09:46:26 +00:00
msgid "``~ a``"
msgstr "``~ a``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:384
2016-10-30 09:46:26 +00:00
msgid "``invert(a)``"
msgstr "``invert(a)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:386
2016-10-30 09:46:26 +00:00
msgid "Bitwise Or"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:386
2016-10-30 09:46:26 +00:00
msgid "``a | b``"
msgstr "``a | b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:386
2016-10-30 09:46:26 +00:00
msgid "``or_(a, b)``"
msgstr "``or_(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:388
2016-10-30 09:46:26 +00:00
msgid "Exponentiation"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:388
2016-10-30 09:46:26 +00:00
msgid "``a ** b``"
msgstr "``a ** b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:388
2016-10-30 09:46:26 +00:00
msgid "``pow(a, b)``"
msgstr "``pow(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:390 ../Doc/library/operator.rst:392
2016-10-30 09:46:26 +00:00
msgid "Identity"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:390
2016-10-30 09:46:26 +00:00
msgid "``a is b``"
msgstr "``a is b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:390
2016-10-30 09:46:26 +00:00
msgid "``is_(a, b)``"
msgstr "``is_(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:392
2016-10-30 09:46:26 +00:00
msgid "``a is not b``"
msgstr "``a is not b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:392
2016-10-30 09:46:26 +00:00
msgid "``is_not(a, b)``"
msgstr "``is_not(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:394
2016-10-30 09:46:26 +00:00
msgid "Indexed Assignment"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:394
2016-10-30 09:46:26 +00:00
msgid "``obj[k] = v``"
msgstr "``obj[k] = v``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:394
2016-10-30 09:46:26 +00:00
msgid "``setitem(obj, k, v)``"
msgstr "``setitem(obj, k, v)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:396
2016-10-30 09:46:26 +00:00
msgid "Indexed Deletion"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:396
2016-10-30 09:46:26 +00:00
msgid "``del obj[k]``"
msgstr "``del obj[k]``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:396
2016-10-30 09:46:26 +00:00
msgid "``delitem(obj, k)``"
msgstr "``delitem(obj, k)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:398
2016-10-30 09:46:26 +00:00
msgid "Indexing"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:398
2016-10-30 09:46:26 +00:00
msgid "``obj[k]``"
msgstr "``obj[k]``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:398
2016-10-30 09:46:26 +00:00
msgid "``getitem(obj, k)``"
msgstr "``getitem(obj, k)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:400
2016-10-30 09:46:26 +00:00
msgid "Left Shift"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:400
2016-10-30 09:46:26 +00:00
msgid "``a << b``"
msgstr "``a << b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:400
2016-10-30 09:46:26 +00:00
msgid "``lshift(a, b)``"
msgstr "``lshift(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:402
2016-10-30 09:46:26 +00:00
msgid "Modulo"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:402
2016-10-30 09:46:26 +00:00
msgid "``a % b``"
msgstr "``a % b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:402
2016-10-30 09:46:26 +00:00
msgid "``mod(a, b)``"
msgstr "``mod(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:404
2016-10-30 09:46:26 +00:00
msgid "Multiplication"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:404
2016-10-30 09:46:26 +00:00
msgid "``a * b``"
msgstr "``a * b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:404
2016-10-30 09:46:26 +00:00
msgid "``mul(a, b)``"
msgstr "``mul(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:406
2016-10-30 09:46:26 +00:00
msgid "Matrix Multiplication"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:406
2016-10-30 09:46:26 +00:00
msgid "``a @ b``"
msgstr "``a @ b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:406
2016-10-30 09:46:26 +00:00
msgid "``matmul(a, b)``"
msgstr "``matmul(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:408
2016-10-30 09:46:26 +00:00
msgid "Negation (Arithmetic)"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:408
2016-10-30 09:46:26 +00:00
msgid "``- a``"
msgstr "``- a``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:408
2016-10-30 09:46:26 +00:00
msgid "``neg(a)``"
msgstr "``neg(a)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:410
2016-10-30 09:46:26 +00:00
msgid "Negation (Logical)"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:410
2016-10-30 09:46:26 +00:00
msgid "``not a``"
msgstr "``not a``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:410
2016-10-30 09:46:26 +00:00
msgid "``not_(a)``"
msgstr "``not_(a)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:412
2016-10-30 09:46:26 +00:00
msgid "Positive"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:412
2016-10-30 09:46:26 +00:00
msgid "``+ a``"
msgstr "``+ a``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:412
2016-10-30 09:46:26 +00:00
msgid "``pos(a)``"
msgstr "``pos(a)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:414
2016-10-30 09:46:26 +00:00
msgid "Right Shift"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:414
2016-10-30 09:46:26 +00:00
msgid "``a >> b``"
msgstr "``a >> b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:414
2016-10-30 09:46:26 +00:00
msgid "``rshift(a, b)``"
msgstr "``rshift(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:416
2016-10-30 09:46:26 +00:00
msgid "Slice Assignment"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:416
2016-10-30 09:46:26 +00:00
msgid "``seq[i:j] = values``"
msgstr "``seq[i:j] = values``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:416
2016-10-30 09:46:26 +00:00
msgid "``setitem(seq, slice(i, j), values)``"
msgstr "``setitem(seq, slice(i, j), values)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:418
2016-10-30 09:46:26 +00:00
msgid "Slice Deletion"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:418
2016-10-30 09:46:26 +00:00
msgid "``del seq[i:j]``"
msgstr "``del seq[i:j]``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:418
2016-10-30 09:46:26 +00:00
msgid "``delitem(seq, slice(i, j))``"
msgstr "``delitem(seq, slice(i, j))``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:420
2016-10-30 09:46:26 +00:00
msgid "Slicing"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:420
2016-10-30 09:46:26 +00:00
msgid "``seq[i:j]``"
msgstr "``seq[i:j]``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:420
2016-10-30 09:46:26 +00:00
msgid "``getitem(seq, slice(i, j))``"
msgstr "``getitem(seq, slice(i, j))``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:422
2016-10-30 09:46:26 +00:00
msgid "String Formatting"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:422
2016-10-30 09:46:26 +00:00
msgid "``s % obj``"
msgstr "``s % obj``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:422
2016-10-30 09:46:26 +00:00
msgid "``mod(s, obj)``"
msgstr "``mod(s, obj)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:424
2016-10-30 09:46:26 +00:00
msgid "Subtraction"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:424
2016-10-30 09:46:26 +00:00
msgid "``a - b``"
msgstr "``a - b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:424
2016-10-30 09:46:26 +00:00
msgid "``sub(a, b)``"
msgstr "``sub(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:426
2016-10-30 09:46:26 +00:00
msgid "Truth Test"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:426
2016-10-30 09:46:26 +00:00
msgid "``obj``"
msgstr "``obj``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:426
2016-10-30 09:46:26 +00:00
msgid "``truth(obj)``"
msgstr "``truth(obj)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:428 ../Doc/library/operator.rst:430
#: ../Doc/library/operator.rst:436 ../Doc/library/operator.rst:438
2016-10-30 09:46:26 +00:00
msgid "Ordering"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:428
2016-10-30 09:46:26 +00:00
msgid "``a < b``"
msgstr "``a < b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:428
2016-10-30 09:46:26 +00:00
msgid "``lt(a, b)``"
msgstr "``lt(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:430
2016-10-30 09:46:26 +00:00
msgid "``a <= b``"
msgstr "``a <= b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:430
2016-10-30 09:46:26 +00:00
msgid "``le(a, b)``"
msgstr "``le(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:432
2016-10-30 09:46:26 +00:00
msgid "Equality"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:432
2016-10-30 09:46:26 +00:00
msgid "``a == b``"
msgstr "``a == b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:432
2016-10-30 09:46:26 +00:00
msgid "``eq(a, b)``"
msgstr "``eq(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:434
2016-10-30 09:46:26 +00:00
msgid "Difference"
msgstr "Différence"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:434
2016-10-30 09:46:26 +00:00
msgid "``a != b``"
msgstr "``a != b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:434
2016-10-30 09:46:26 +00:00
msgid "``ne(a, b)``"
msgstr "``ne(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:436
2016-10-30 09:46:26 +00:00
msgid "``a >= b``"
msgstr "``a >= b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:436
2016-10-30 09:46:26 +00:00
msgid "``ge(a, b)``"
msgstr "``ge(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:438
2016-10-30 09:46:26 +00:00
msgid "``a > b``"
msgstr "``a > b``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:438
2016-10-30 09:46:26 +00:00
msgid "``gt(a, b)``"
msgstr "``gt(a, b)``"
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:442
2016-10-30 09:46:26 +00:00
msgid "Inplace Operators"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:444
2016-10-30 09:46:26 +00:00
msgid ""
"Many operations have an \"in-place\" version. Listed below are functions "
"providing a more primitive access to in-place operators than the usual "
"syntax does; for example, the :term:`statement` ``x += y`` is equivalent to "
"``x = operator.iadd(x, y)``. Another way to put it is to say that ``z = "
"operator.iadd(x, y)`` is equivalent to the compound statement ``z = x; z += "
"y``."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:451
2016-10-30 09:46:26 +00:00
msgid ""
"In those examples, note that when an in-place method is called, the "
"computation and assignment are performed in two separate steps. The in-"
"place functions listed below only do the first step, calling the in-place "
"method. The second step, assignment, is not handled."
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:456
2016-10-30 09:46:26 +00:00
msgid ""
"For immutable targets such as strings, numbers, and tuples, the updated "
"value is computed, but not assigned back to the input variable:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:465
2016-10-30 09:46:26 +00:00
msgid ""
"For mutable targets such as lists and dictionaries, the inplace method will "
"perform the update, so no subsequent assignment is necessary:"
msgstr ""
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:477
2016-10-30 09:46:26 +00:00
msgid "``a = iadd(a, b)`` is equivalent to ``a += b``."
msgstr "``a = iadd(a, b)`` is equivalent to ``a += b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:483
2016-10-30 09:46:26 +00:00
msgid "``a = iand(a, b)`` is equivalent to ``a &= b``."
msgstr "``a = iand(a, b)`` is equivalent to ``a &= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:489
2016-10-30 09:46:26 +00:00
msgid ""
"``a = iconcat(a, b)`` is equivalent to ``a += b`` for *a* and *b* sequences."
msgstr ""
"``a = iconcat(a, b)`` is equivalent to ``a += b`` for *a* and *b* sequences."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:495
2016-10-30 09:46:26 +00:00
msgid "``a = ifloordiv(a, b)`` is equivalent to ``a //= b``."
msgstr "``a = ifloordiv(a, b)`` is equivalent to ``a //= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:501
2016-10-30 09:46:26 +00:00
msgid "``a = ilshift(a, b)`` is equivalent to ``a <<= b``."
msgstr "``a = ilshift(a, b)`` is equivalent to ``a <<= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:507
2016-10-30 09:46:26 +00:00
msgid "``a = imod(a, b)`` is equivalent to ``a %= b``."
msgstr "``a = imod(a, b)`` is equivalent to ``a %= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:513
2016-10-30 09:46:26 +00:00
msgid "``a = imul(a, b)`` is equivalent to ``a *= b``."
msgstr "``a = imul(a, b)`` is equivalent to ``a *= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:519
2016-10-30 09:46:26 +00:00
msgid "``a = imatmul(a, b)`` is equivalent to ``a @= b``."
msgstr "``a = imatmul(a, b)`` is equivalent to ``a @= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:527
2016-10-30 09:46:26 +00:00
msgid "``a = ior(a, b)`` is equivalent to ``a |= b``."
msgstr "``a = ior(a, b)`` is equivalent to ``a |= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:533
2016-10-30 09:46:26 +00:00
msgid "``a = ipow(a, b)`` is equivalent to ``a **= b``."
msgstr "``a = ipow(a, b)`` is equivalent to ``a **= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:539
2016-10-30 09:46:26 +00:00
msgid "``a = irshift(a, b)`` is equivalent to ``a >>= b``."
msgstr "``a = irshift(a, b)`` is equivalent to ``a >>= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:545
2016-10-30 09:46:26 +00:00
msgid "``a = isub(a, b)`` is equivalent to ``a -= b``."
msgstr "``a = isub(a, b)`` is equivalent to ``a -= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:551
2016-10-30 09:46:26 +00:00
msgid "``a = itruediv(a, b)`` is equivalent to ``a /= b``."
msgstr "``a = itruediv(a, b)`` is equivalent to ``a /= b``."
2018-06-28 13:32:56 +00:00
#: ../Doc/library/operator.rst:557
2016-10-30 09:46:26 +00:00
msgid "``a = ixor(a, b)`` is equivalent to ``a ^= b``."
msgstr "``a = ixor(a, b)`` is equivalent to ``a ^= b``."