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
502ba463
Kaydet (Commit)
502ba463
authored
Haz 07, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #750595: Refer to type complex using builtin. Fixes #595837.
Backported to 2.2.
üst
56f88113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
copy_reg.py
Lib/copy_reg.py
+9
-3
No files found.
Lib/copy_reg.py
Dosyayı görüntüle @
502ba463
...
@@ -28,10 +28,16 @@ def constructor(object):
...
@@ -28,10 +28,16 @@ def constructor(object):
# Example: provide pickling support for complex numbers.
# Example: provide pickling support for complex numbers.
def
pickle_complex
(
c
):
try
:
return
complex
,
(
c
.
real
,
c
.
imag
)
complex
except
NameError
:
pass
else
:
pickle
(
type
(
1
j
),
pickle_complex
,
complex
)
def
pickle_complex
(
c
):
return
complex
,
(
c
.
real
,
c
.
imag
)
pickle
(
complex
,
pickle_complex
,
complex
)
# Support for pickling new-style objects
# Support for pickling new-style objects
...
...
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