Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
730c0d2e
Kaydet (Commit)
730c0d2e
authored
Ara 15, 2012
tarafından
Ramiro Morales
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a couple of docstring typos.
üst
c2a6b2a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
functional.py
django/utils/functional.py
+5
-5
No files found.
django/utils/functional.py
Dosyayı görüntüle @
730c0d2e
...
@@ -5,9 +5,9 @@ import sys
...
@@ -5,9 +5,9 @@ import sys
from
django.utils
import
six
from
django.utils
import
six
# You can't trivially replace this
`functools.partial` because this binds to
# You can't trivially replace this
with `functools.partial` because this binds
#
classes and returns bound instances, whereas functools.partial (on CPython)
#
to classes and returns bound instances, whereas functools.partial (on
# is a type and its instances don't bind.
#
CPython)
is a type and its instances don't bind.
def
curry
(
_curried_func
,
*
args
,
**
kwargs
):
def
curry
(
_curried_func
,
*
args
,
**
kwargs
):
def
_curried
(
*
moreargs
,
**
morekwargs
):
def
_curried
(
*
moreargs
,
**
morekwargs
):
return
_curried_func
(
*
(
args
+
moreargs
),
**
dict
(
kwargs
,
**
morekwargs
))
return
_curried_func
(
*
(
args
+
moreargs
),
**
dict
(
kwargs
,
**
morekwargs
))
...
@@ -33,8 +33,8 @@ def memoize(func, cache, num_args):
...
@@ -33,8 +33,8 @@ def memoize(func, cache, num_args):
class
cached_property
(
object
):
class
cached_property
(
object
):
"""
"""
Decorator that c
reates converts a method with a single
Decorator that c
onverts a method with a single self argument into a
self argument into a
property cached on the instance.
property cached on the instance.
"""
"""
def
__init__
(
self
,
func
):
def
__init__
(
self
,
func
):
self
.
func
=
func
self
.
func
=
func
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment