diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-01 21:29:52 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-01 21:29:52 +0000 |
| commit | e0c3dd3318f6f4895554521c6bf69676635b1937 (patch) | |
| tree | b86183c86bdfd4d7225f58c70798fc7f97dc6dc8 /django/utils/functional.py | |
| parent | 006e9e789baabdf3c5077e2ab39747f217ddf659 (diff) | |
Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py new file mode 100644 index 0000000000..f3b0598763 --- /dev/null +++ b/django/utils/functional.py @@ -0,0 +1,4 @@ +def curry(*args, **kwargs): + def _curried(*moreargs, **morekwargs): + return args[0](*(args[1:]+moreargs), **dict(kwargs.items() + morekwargs.items())) + return _curried |
