← Back
Editing: cache.cpython-311.pyc
� p�{c_ � � � d Z ddlmZ ddlmZ e� � Z e� � Zeddfd�Zefd�Z efd�Z d� Z G d � d e� � Z d� ZdS ) z� - the popular ``_memoize_default`` works like a typical memoize and returns the default otherwise. - ``CachedMetaClass`` uses ``_memoize_default`` to do the same with classes. � ��wraps)�debugFc � � ��� � ��fd�}|S )aO This is a typical memoization decorator, BUT there is one difference: To prevent recursion it sets defaults. Preventing recursion is in this case the much bigger use than speed. I don't think, that there is a big speed difference, but there are many cases where recursion could happen (think about a = b; b = a). c � �� � �� ��fd�}|S )Nc �4 �� � r| j }n� r|d j }n| j j } |� }n# t $ r i x|�<