Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
6afff613
Kaydet (Commit)
6afff613
authored
Haz 17, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Memoize _deepcopy_tuple() -- maybe this helps Tommy's problem.
üst
7c46a920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
copy.py
Lib/copy.py
+6
-2
No files found.
Lib/copy.py
Dosyayı görüntüle @
6afff613
...
@@ -182,8 +182,12 @@ def _deepcopy_tuple(x, memo):
...
@@ -182,8 +182,12 @@ def _deepcopy_tuple(x, memo):
pass
pass
for
i
in
range
(
len
(
x
)):
for
i
in
range
(
len
(
x
)):
if
x
[
i
]
is
not
y
[
i
]:
if
x
[
i
]
is
not
y
[
i
]:
return
tuple
(
y
)
y
=
tuple
(
y
)
return
x
break
else
:
y
=
x
memo
[
d
]
=
y
return
y
d
[
types
.
TupleType
]
=
_deepcopy_tuple
d
[
types
.
TupleType
]
=
_deepcopy_tuple
def
_deepcopy_dict
(
x
,
memo
):
def
_deepcopy_dict
(
x
,
memo
):
...
...
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