summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-01 21:29:52 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-01 21:29:52 +0000
commite0c3dd3318f6f4895554521c6bf69676635b1937 (patch)
treeb86183c86bdfd4d7225f58c70798fc7f97dc6dc8 /django/utils/functional.py
parent006e9e789baabdf3c5077e2ab39747f217ddf659 (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.py4
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