Changeset 6279
- Timestamp:
- 09/15/07 06:13:21 (1 year ago)
- Files:
-
- django/trunk/django/utils/functional.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/functional.py
r6276 r6279 1 import copy2 3 1 def curry(_curried_func, *args, **kwargs): 4 2 def _curried(*moreargs, **morekwargs): … … 105 103 106 104 def __deepcopy__(self, memo): 107 result = copy.copy(self) 108 memo[id(self)] = result 109 return result 105 # Instances of this class are effectively immutable. It's just a 106 # collection of functions. So we don't need to do anything 107 # complicated for copying. 108 memo[id(self)] = self 109 return self 110 110 111 111 def __wrapper__(*args, **kw):
