You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-methodtools-0.4.7-2.lbn36.noarch

python3-methodtools-0.4.7-2.lbn36.noarch

Package Attributes
RPM  python3-methodtools-0.4.7-2.lbn36.noarch.rpm Architecture  noarch Size  8260 Created  2025/04/21 04:15:24 UTC
Package Specification
Summary Expand standard functools to methods
Group Application/Internet
License ZPL
Home Page https://pypi.org/project/methodtools
Description

Expand functools features to methods, classmethods, staticmethods and even for (unofficial) hybrid methods. For now, methodtools only provides methodtools.lru_cache. Use methodtools module instead of functools module. Than it will work as you expected. from methodtools import lru_cache

class A(object):

@lru_cache() def cached_method(self, args): ...

@lru_cache() # the order is important! @classmethod # always lru_cache on top of classmethod def cached_classmethod(self, args): ...

@lru_cache() # the order is important! @staticmethod # always lru_cache on top of staticmethod def cached_staticmethod(self, args): ...

@lru_cache() # just same as functools.lru_cache def cached_function(): ...

Installation PyPI is the recommended w

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-methodtools
python3-methodtools
python3.10-methodtools
python3.10dist(methodtools)
python3dist(methodtools)
Obsoletes
python-methodtools

Document Actions