operator — Standard operators as functions — Python 3.16.0a0 documentation

docs.python.org

Tin mới

functools — Higher-order functions and operations on callable objects

File and Directory Access

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Functional Programming Modules

object.__length_hint__()

Return an estimated length for the object obj. First try to return its actual length, then an estimate using object.__length_hint__(), and finally return the default value.

Mapping Operators to Functions¶

The functions fall into categories that perform object comparisons, logical operations, mathematical operations and sequence operations.

itertools.groupby()

The functions fall into categories that perform object comparisons, logical operations, mathematical operations and sequence operations.

In-place Operators¶

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 statement x += y is equivalent to x = operator.i