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
2ee6a702
Kaydet (Commit)
2ee6a702
authored
Agu 07, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Patch #999280 ] Update kwargs in pickle docs to match implementations
üst
4eb1a00c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
libpickle.tex
Doc/lib/libpickle.tex
+9
-9
No files found.
Doc/lib/libpickle.tex
Dosyayı görüntüle @
2ee6a702
...
...
@@ -170,12 +170,12 @@ as a \var{protocol} value.
The
\module
{
pickle
}
module provides the
following functions to make this process more convenient:
\begin{funcdesc}
{
dump
}{
obj
ect
, file
\optional
{
, protocol
\optional
{
, bin
}}}
Write a pickled representation of
\var
{
obj
ect
}
to the open file object
\begin{funcdesc}
{
dump
}{
obj, file
\optional
{
, protocol
\optional
{
, bin
}}}
Write a pickled representation of
\var
{
obj
}
to the open file object
\var
{
file
}
. This is equivalent to
\code
{
Pickler(
\var
{
file
}
,
\var
{
protocol
}
,
\var
{
bin
}
).dump(
\var
{
obj
ect
}
)
}
.
\code
{
Pickler(
\var
{
file
}
,
\var
{
protocol
}
,
\var
{
bin
}
).dump(
\var
{
obj
}
)
}
.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value
or
\constant
{
HIGHEST
_
PROTOCOL
}
,
the highest protocol version will be used.
...
...
@@ -211,11 +211,11 @@ This function automatically determines whether the data stream was
written in binary mode or not.
\end{funcdesc}
\begin{funcdesc}
{
dumps
}{
obj
ect
\optional
{
, protocol
\optional
{
, bin
}}}
\begin{funcdesc}
{
dumps
}{
obj
\optional
{
, protocol
\optional
{
, bin
}}}
Return the pickled representation of the object as a string, instead
of writing it to a file.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value
or
\constant
{
HIGHEST
_
PROTOCOL
}
,
the highest protocol version will be used.
...
...
@@ -266,7 +266,7 @@ more details.}, \class{Pickler} and \class{Unpickler}:
This takes a file-like object to which it will write a pickle data
stream.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value,
the highest protocol version will be used.
...
...
@@ -286,8 +286,8 @@ object that meets this interface.
\class
{
Pickler
}
objects define one (or two) public methods:
\begin{methoddesc}
[Pickler]
{
dump
}{
obj
ect
}
Write a pickled representation of
\var
{
obj
ect
}
to the open file object
\begin{methoddesc}
[Pickler]
{
dump
}{
obj
}
Write a pickled representation of
\var
{
obj
}
to the open file object
given in the constructor. Either the binary or
\ASCII
{}
format will
be used, depending on the value of the
\var
{
bin
}
flag passed to the
constructor.
...
...
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