mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
merge 3.2
This commit is contained in:
commit
3563b18c19
@ -12,11 +12,11 @@
|
||||
from operator import itemgetter, iadd
|
||||
|
||||
|
||||
The :mod:`operator` module exports a set of functions implemented in C
|
||||
corresponding to the intrinsic operators of Python. For example,
|
||||
``operator.add(x, y)`` is equivalent to the expression ``x+y``. The function
|
||||
names are those used for special class methods; variants without leading and
|
||||
trailing ``__`` are also provided for convenience.
|
||||
The :mod:`operator` module exports a set of functions corresponding to the
|
||||
intrinsic operators of Python. For example, ``operator.add(x, y)`` is
|
||||
equivalent to the expression ``x+y``. The function names are those used for
|
||||
special class methods; variants without leading and trailing ``__`` are also
|
||||
provided for convenience.
|
||||
|
||||
The functions fall into categories that perform object comparisons, logical
|
||||
operations, mathematical operations and sequence operations.
|
||||
|
Loading…
Reference in New Issue
Block a user