summaryrefslogtreecommitdiffstats
path: root/Doc/library/functools.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-102757: fix function signature mismatch for `functools.reduce` between ↵Xuehai Pan2023-09-181-6/+8
| | | | code and documentation (#102759)
* gh-107619: Extend functools LRU cache docs with generators and async ↵Hadházy Tamás2023-08-201-2/+3
| | | | | | functions (#107934) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-104112: link from cached_property docs to method-caching FAQ (#104113)Carl Meyer2023-05-041-12/+4
| | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* GH-103475: cache() and lru_cache() do not have a "call once" guarantee ↵Raymond Hettinger2023-04-221-4/+14
| | | | (GH-103669)
* Minor improvements to the functools docs (#103672)Raymond Hettinger2023-04-221-3/+2
| | | | | * Use an f-string for improved readability * Put version notes in chronological order
* gh-87634: remove locking from functools.cached_property (GH-101890)Carl Meyer2023-02-231-0/+16
| | | Remove the undocumented locking capabilities of functools.cached_property.
* GH-101898: Fix missing term references for hashable definition (#101899)Furkan Onder2023-02-141-1/+1
| | | Fix missing term references for hashable definition
* Doc: sphinx-lint finds two other default roles. (GH-98019)Julien Palard2022-10-071-2/+2
|
* GH-96851: Add link to FAQ entry for caching method calls. (GH-96902)Raymond Hettinger2022-09-181-0/+3
|
* GH-93179: Document the thread safety of functools.lru_cache (GH-95970)Raymond Hettinger2022-08-181-0/+6
|
* Fix documentation typo for functools.cmp_to_key (GH-95766)Andrzej Bartosiński2022-08-081-1/+1
|
* bpo-46014: Add docs regarding `functools.singledispatch` changes in 3.11 ↵Yurii Karabas2022-04-191-0/+21
| | | | | (#32282) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)Hugo van Kemenade2022-03-301-1/+1
|
* bpo-45701: Improve documentation for *typed* parameter (GH-29498)Raymond Hettinger2021-11-091-4/+10
|
* bpo-45762: Improve docs for ``@singledispatch``/``@singledispatchmethod`` ↵Alex Waygood2021-11-051-22/+26
| | | | (GH-29426)
* Update URLs in comments and metadata to use HTTPS (GH-27458)Noah Kantrowitz2021-07-301-1/+1
|
* bpo-44310: Note that lru_cache keep references to both arguments and ↵Raymond Hettinger2021-06-141-6/+9
| | | | | | | | results (GH-26715) * Simplify the count_vowels example * Hits and misses are fetched while a lock is held * Add note that references are kept for arguments and return values * Clarify behavior when *typed* is false.
* bpo-42781: Document the mechanics of cached_property from a user viewpoint ↵Raymond Hettinger2021-01-011-4/+14
| | | | (GH-24031)
* bpo-42127: Document effect of cached_property on key-sharing dictionaries ↵Raymond Hettinger2020-10-251-9/+24
| | | | (GH-22930)
* bpo-41905: Add abc.update_abstractmethods() (GH-22485)Ben Avrahami2020-10-061-0/+7
| | | | This function recomputes `cls.__abstractmethods__`. Also update `@dataclass` to use it.
* bpo-17005: Move topological sort functionality to its own module (GH-20558)Pablo Galindo2020-05-311-195/+1
| | | | | | The topological sort functionality that was introduced initially in the functools module has been moved to a new graphlib module to better accommodate the new tools and keep the original scope of the functools module.
* Fix Wikipedia link (GH-20031)Allen Guo2020-05-121-5/+5
|
* bpo-40571: Make lru_cache(maxsize=None) more discoverable (GH-20019)Raymond Hettinger2020-05-121-0/+26
|
* Remove outdated and confusing advice about setting maxsize (GH-19889)Raymond Hettinger2020-05-031-2/+1
|
* bpo-17005: Minor improvements to the documentation of TopologicalSorter ↵Pablo Galindo2020-01-231-75/+67
| | | | (GH-18155)
* bpo-17005: Add a class to perform topological sorting to the standard ↵Pablo Galindo2020-01-231-0/+208
| | | | | library (GH-11583) Co-Authored-By: Tim Peters <tim.peters@gmail.com>
* bpo-21767: explicitly mention abc support in functools.singledispatch docs ↵Batuhan Taşkaya2019-11-191-0/+14
| | | | (#17171)
* bpo-38565: add new cache_parameters method for lru_cache (GH-16916)Manjusaka2019-11-121-0/+8
|
* Do not use explicit inheritance from object in the documentation. (GH-13936)Serhiy Storchaka2019-06-101-1/+1
|
* Use more PEP 570 syntax in the documentation. (GH-13720)Serhiy Storchaka2019-06-011-1/+1
|
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-2/+2
|
* bpo-36772 Allow lru_cache to be used as decorator without making a function ↵Raymond Hettinger2019-05-261-1/+14
| | | | call (GH-13048)
* bpo-32380: add "versionadded: 3.8" to singledispatchmethod (GH-12580)Inada Naoki2019-03-271-0/+3
|
* bpo-35300: Add usage note to the lru_cache() docs (GH-10707)Raymond Hettinger2018-11-261-0/+5
| | | https://bugs.python.org/issue35300
* bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)Andrei Petre2018-10-231-5/+6
|
* Use dict unpacking in functools.partial() docs (GH-9412)Sergey Fedoseev2018-10-191-2/+1
|
* Fix name of argument in docs for functools.reduce(). (#9634)Brendan Jurd2018-10-011-6/+6
|
* Note that distinct argument patterns can be cached separately (GH-9298)Raymond Hettinger2018-09-141-0/+5
|
* bpo-21145: Add cached_property decorator in functools (#6982)Carl Meyer2018-08-281-0/+33
| | | | | | Robust caching of calculated properties is harder than it looks at first glance, so add a solid, well-tested implementation to the standard library.
* DOC: In `reduce`, refer to `accumulate` (GH-7930)Gerrit Holl2018-07-041-0/+2
|
* bpo-32380: Create functools.singledispatchmethod (#6306)Ethan Smith2018-05-261-0/+46
|
* bpo-32227: functools.singledispatch supports registering via type ↵Łukasz Langa2017-12-111-7/+21
| | | | annotations (#4733)
* bpo-31567: add or fix decorator markup in docs (#3959)Daisuke Miyakawa2017-10-121-2/+2
|
* Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #24314: Fix doc links for general attributes like __name__, __dict__Martin Panter2016-06-181-1/+1
|
* Issue #24136: Document generalized unpacking, PEP 448Martin Panter2016-06-121-1/+1
| | | | Based on patches by Konstantin Molchanov and Neil Girdhar.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+1
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docsBerker Peksag2016-04-181-4/+4
| | | | Patch by Xiang Zhang.
* Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-3/+3
| | | | to SilentGhost for the patch.