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
bbb1e26a
Kaydet (Commit)
bbb1e26a
authored
Haz 26, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add docs for planned improved handling of the marshalling of
unmarshallable objects.
üst
f2e98b4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
libmarshal.tex
Doc/lib/libmarshal.tex
+10
-2
libmarshal.tex
Doc/libmarshal.tex
+10
-2
No files found.
Doc/lib/libmarshal.tex
Dosyayı görüntüle @
bbb1e26a
...
...
@@ -61,19 +61,27 @@ The module defines these functions:
\code
{
sys.stdout
}
or returned by
\code
{
open()
}
or
\code
{
posix.popen()
}
.
If the value has an unsupported type, garbage is written which cannot
be read back by
\code
{
load()
}
.
If the value has (or contains an object that has) an unsupported type,
a
\code
{
ValueError
}
exception is raised -- but garbage data will also
be written to the file. The object will not be properly read back by
\code
{
load()
}
.
\end{funcdesc}
\begin{funcdesc}
{
load
}{
file
}
Read one value from the open file and return it. If no valid value
is read, raise
\code
{
EOFError
}
,
\code
{
ValueError
}
or
\code
{
TypeError
}
. The file must be an open file object.
Warning: If an object containing an unsupported type was marshalled
with
\code
{
dump()
}
,
\code
{
load()
}
will substitute
\code
{
None
}
for the
unmarshallable type.
\end{funcdesc}
\begin{funcdesc}
{
dumps
}{
value
}
Return the string that would be written to a file by
\code
{
dump(value, file)
}
. The value must be a supported type.
Raise a
\code
{
ValueError
}
exception if value has (or contains an
object that has) an unsupported type.
\end{funcdesc}
\begin{funcdesc}
{
loads
}{
string
}
...
...
Doc/libmarshal.tex
Dosyayı görüntüle @
bbb1e26a
...
...
@@ -61,19 +61,27 @@ The module defines these functions:
\code
{
sys.stdout
}
or returned by
\code
{
open()
}
or
\code
{
posix.popen()
}
.
If the value has an unsupported type, garbage is written which cannot
be read back by
\code
{
load()
}
.
If the value has (or contains an object that has) an unsupported type,
a
\code
{
ValueError
}
exception is raised -- but garbage data will also
be written to the file. The object will not be properly read back by
\code
{
load()
}
.
\end{funcdesc}
\begin{funcdesc}
{
load
}{
file
}
Read one value from the open file and return it. If no valid value
is read, raise
\code
{
EOFError
}
,
\code
{
ValueError
}
or
\code
{
TypeError
}
. The file must be an open file object.
Warning: If an object containing an unsupported type was marshalled
with
\code
{
dump()
}
,
\code
{
load()
}
will substitute
\code
{
None
}
for the
unmarshallable type.
\end{funcdesc}
\begin{funcdesc}
{
dumps
}{
value
}
Return the string that would be written to a file by
\code
{
dump(value, file)
}
. The value must be a supported type.
Raise a
\code
{
ValueError
}
exception if value has (or contains an
object that has) an unsupported type.
\end{funcdesc}
\begin{funcdesc}
{
loads
}{
string
}
...
...
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