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
12f0cc32
Kaydet (Commit)
12f0cc32
authored
28 years ago
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Suggest using default values for __init__ arguments to make classes
unpicklable.
üst
4a5b27b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
libpickle.tex
Doc/lib/libpickle.tex
+3
-1
libpickle.tex
Doc/libpickle.tex
+3
-1
No files found.
Doc/lib/libpickle.tex
Dosyayı görüntüle @
12f0cc32
...
...
@@ -86,7 +86,9 @@ First of all, the class must be defined at the top level in a module.
\renewcommand
{
\indexsubitem
}{
(pickle protocol)
}
Next, it must normally be possible to create class instances by
calling the class without arguments. If this is undesirable, the
calling the class without arguments. Usually, this is best
accomplished by providing default values for all arguments to its
\code
{__
init
__}
method (if it has one). If this is undesirable, the
class can define a method
\code
{__
getinitargs
__
()
}
, which should
return a
{
\em
tuple
}
containing the arguments to be passed to the
class constructor (
\code
{__
init
__
()
}
).
...
...
This diff is collapsed.
Click to expand it.
Doc/libpickle.tex
Dosyayı görüntüle @
12f0cc32
...
...
@@ -86,7 +86,9 @@ First of all, the class must be defined at the top level in a module.
\renewcommand
{
\indexsubitem
}{
(pickle protocol)
}
Next, it must normally be possible to create class instances by
calling the class without arguments. If this is undesirable, the
calling the class without arguments. Usually, this is best
accomplished by providing default values for all arguments to its
\code
{__
init
__}
method (if it has one). If this is undesirable, the
class can define a method
\code
{__
getinitargs
__
()
}
, which should
return a
{
\em
tuple
}
containing the arguments to be passed to the
class constructor (
\code
{__
init
__
()
}
).
...
...
This diff is collapsed.
Click to expand it.
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