✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.62
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python313/lib64/python3.13/importlib/metadata/__pycache__//_functools.cpython-313.pyc
�

;��iO��$�SSKrSSKrSSjrSrg)�Nc�d^^�T=(d [R"5mUU4SjnSUlU$)a�
Wrap lru_cache to support storing the cache data in the object instances.

Abstracts the common paradigm where the method explicitly saves an
underscore-prefixed protected property on first call and returns that
subsequently.

>>> class MyClass:
...     calls = 0
...
...     @method_cache
...     def method(self, value):
...         self.calls += 1
...         return value

>>> a = MyClass()
>>> a.method(3)
3
>>> for x in range(75):
...     res = a.method(x)
>>> a.calls
75

Note that the apparent behavior will be exactly like that of lru_cache
except that the cache is stored on each instance, so values in one
instance will not flush values from another, and when an instance is
deleted, so are the cached values for that instance.

>>> b = MyClass()
>>> for x in range(35):
...     res = b.method(x)
>>> b.calls
35
>>> a.method(0)
0
>>> a.calls
75

Note that if method had been decorated with ``functools.lru_cache()``,
a.calls would have been 76 (due to the cached value of 0 having been
flushed by the 'b' instance).

Clear the cache with ``.cache_clear()``

>>> a.method.cache_clear()

Same for a method that hasn't yet been called.

>>> c = MyClass()
>>> c.method.cache_clear()

Another cache wrapper may be supplied:

>>> cache = functools.lru_cache(maxsize=2)
>>> MyClass.method2 = method_cache(lambda self: 3, cache_wrapper=cache)
>>> a = MyClass()
>>> a.method2()
3

Caution - do not subsequently wrap the method with another decorator, such
as ``@property``, which changes the semantics of the function.

See also
http://code.activestate.com/recipes/577452-a-memoize-decorator-for-instance-methods/
for another implementation and additional justification.
c�>�[R"TU5nT"U5n[UTRU5 U"U0UD6$�N)�types�
MethodType�setattr�__name__)�self�args�kwargs�bound_method�
cached_method�
cache_wrapper�methods     ���D/opt/alt/python313/lib64/python3.13/importlib/metadata/_functools.py�wrapper�method_cache.<locals>.wrapperKs?����'�'���5��%�l�3�
���f�o�o�}�5��d�-�f�-�-�c��gr�rrr�<lambda>�method_cache.<locals>.<lambda>Ss��$r)�	functools�	lru_cache�cache_clear)rrrs`` r�method_cachers-���F"�:�Y�%8�%8�%:�M�.�'�G���Nrc�F^�[R"T5U4Sj5nU$)z�
Wrap func so it's not called if its first param is None

>>> print_text = pass_none(print)
>>> print_text('text')
text
>>> print_text(None)
c�$>�UbT"U/UQ70UD6$grr)�paramrr�funcs   �rr�pass_none.<locals>.wrappercs#�������/��/��/�/�r)r�wraps)r rs` r�	pass_noner#Ys'����_�_�T��0��0��Nrr)rrrr#rrr�<module>r$s����O�fr


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
23 May 2026 5.07 AM
root / linksafe
0755
__init__.cpython-313.opt-1.pyc
51.522 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
__init__.cpython-313.opt-2.pyc
39.868 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
__init__.cpython-313.pyc
51.587 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_adapters.cpython-313.opt-1.pyc
3.81 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_adapters.cpython-313.opt-2.pyc
3.602 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_adapters.cpython-313.pyc
3.81 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_collections.cpython-313.opt-1.pyc
1.895 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_collections.cpython-313.opt-2.pyc
1.636 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_collections.cpython-313.pyc
1.895 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_functools.cpython-313.opt-1.pyc
3.179 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_functools.cpython-313.opt-2.pyc
1.401 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_functools.cpython-313.pyc
3.179 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_itertools.cpython-313.opt-1.pyc
2.236 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_itertools.cpython-313.opt-2.pyc
1.154 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_itertools.cpython-313.pyc
2.236 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_meta.cpython-313.opt-1.pyc
3.585 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_meta.cpython-313.opt-2.pyc
3.404 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_meta.cpython-313.pyc
3.585 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_text.cpython-313.opt-1.pyc
3.685 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_text.cpython-313.opt-2.pyc
2.67 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
_text.cpython-313.pyc
3.685 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
diagnose.cpython-313.opt-1.pyc
1.142 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
diagnose.cpython-313.opt-2.pyc
1.142 KB
28 Apr 2026 11.32 AM
root / linksafe
0644
diagnose.cpython-313.pyc
1.142 KB
28 Apr 2026 11.32 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF