The functools python module
ฝัง
- เผยแพร่เมื่อ 25 ธ.ค. 2024
- Speaker Marc-Olivier Buob (Nokia Bell Labs)
Abstract
First, we recall several concepts (lambda functions, callbacks, callables, functors, decorators) needed for the rest of the presentation.
Second, we present the “functools” module, which provides higher-order utilities dedicated to use callables (including caching, ordering, dispatching, wrapping).
Third, we give a quick overview of the “operator” module, which is commonly used to transform python operators to callables or to define elegant callbacks.
Check out our website: www.lincs.fr