Current Path: > > opt > alt > python311 > lib64 > python3.11 > importlib > metadata > __pycache__
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-311.opt-1.pyc | File | 58973 bytes | June 23 2025 15:47:46. | |
__init__.cpython-311.opt-2.pyc | File | 48167 bytes | June 23 2025 15:47:55. | |
__init__.cpython-311.pyc | File | 58973 bytes | June 23 2025 15:47:46. | |
_adapters.cpython-311.opt-1.pyc | File | 3808 bytes | June 23 2025 15:47:46. | |
_adapters.cpython-311.opt-2.pyc | File | 3697 bytes | June 23 2025 15:47:55. | |
_adapters.cpython-311.pyc | File | 3808 bytes | June 23 2025 15:47:46. | |
_collections.cpython-311.opt-1.pyc | File | 2155 bytes | June 23 2025 15:47:46. | |
_collections.cpython-311.opt-2.pyc | File | 1845 bytes | June 23 2025 15:47:55. | |
_collections.cpython-311.pyc | File | 2155 bytes | June 23 2025 15:47:46. | |
_functools.cpython-311.opt-1.pyc | File | 3595 bytes | June 23 2025 15:47:46. | |
_functools.cpython-311.opt-2.pyc | File | 1562 bytes | June 23 2025 15:47:55. | |
_functools.cpython-311.pyc | File | 3595 bytes | June 23 2025 15:47:46. | |
_itertools.cpython-311.opt-1.pyc | File | 2558 bytes | June 23 2025 15:47:46. | |
_itertools.cpython-311.opt-2.pyc | File | 1349 bytes | June 23 2025 15:47:55. | |
_itertools.cpython-311.pyc | File | 2558 bytes | June 23 2025 15:47:46. | |
_meta.cpython-311.opt-1.pyc | File | 2926 bytes | June 23 2025 15:47:46. | |
_meta.cpython-311.opt-2.pyc | File | 2717 bytes | June 23 2025 15:47:55. | |
_meta.cpython-311.pyc | File | 2926 bytes | June 23 2025 15:47:46. | |
_text.cpython-311.opt-1.pyc | File | 4353 bytes | June 23 2025 15:47:46. | |
_text.cpython-311.opt-2.pyc | File | 3165 bytes | June 23 2025 15:47:55. | |
_text.cpython-311.pyc | File | 4353 bytes | June 23 2025 15:47:46. |
� !A?hO � �$ � d dl Z d dlZdd�Zd� ZdS )� Nc �P � �� �pt j � � ��� fd�}d� |_ |S )aV 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 � �� t j �| � � } �|� � }t | �j |� � ||i |��S �N)�types� MethodType�setattr�__name__)�self�args�kwargs�bound_method� cached_method� cache_wrapper�methods ���D/opt/alt/python311/lib64/python3.11/importlib/metadata/_functools.py�wrapperzmethod_cache.<locals>.wrapperK sM �� ��'���5�5��%� �l�3�3� ���f�o�}�5�5�5��}�d�-�f�-�-�-� c � � d S r � r r r �<lambda>zmethod_cache.<locals>.<lambda>S s � �$� r )� functools� lru_cache�cache_clear)r r r s `` r �method_cacher sI ��� �F "�:�Y�%8�%:�%:�M�.� .� .� .� .� .� '�,�G���Nr c �F � � t j � � � � fd�� � }|S )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 �$ �� | � �| g|�R i |��S d S r r )�paramr r �funcs �r r zpass_none.<locals>.wrapperc s1 �� ����4��/��/�/�/��/�/�/� �r )r �wraps)r r s ` r � pass_noner Y s: �� � �_�T���0� 0� 0� 0� ��0� �Nr r )r r r r r r r �<module>r! sL �� ���� � � � �O� O� O� O�f� � � � r
SILENT KILLER Tool