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
6a318d42
Kaydet (Commit)
6a318d42
authored
Mar 18, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19428: Document that PyMarshal_ReadLongFromFile() and
PyMarshal_ReadShortFromFile() can fail.
üst
d6dc7bda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
marshal.rst
Doc/c-api/marshal.rst
+15
-6
No files found.
Doc/c-api/marshal.rst
Dosyayı görüntüle @
6a318d42
...
@@ -53,6 +53,8 @@ written using these routines?
...
@@ -53,6 +53,8 @@ written using these routines?
for reading. Only a 32-bit value can be read in using this function,
for reading. Only a 32-bit value can be read in using this function,
regardless of the native size of :c:type:`long`.
regardless of the native size of :c:type:`long`.
On error, raise an exception and return ``-1``.
.. c:function:: int PyMarshal_ReadShortFromFile(FILE *file)
.. c:function:: int PyMarshal_ReadShortFromFile(FILE *file)
...
@@ -60,11 +62,15 @@ written using these routines?
...
@@ -60,11 +62,15 @@ written using these routines?
for reading. Only a 16-bit value can be read in using this function,
for reading. Only a 16-bit value can be read in using this function,
regardless of the native size of :c:type:`short`.
regardless of the native size of :c:type:`short`.
On error, raise an exception and return ``-1``.
.. c:function:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file)
.. c:function:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file)
Return a Python object from the data stream in a :c:type:`FILE\*` opened for
Return a Python object from the data stream in a :c:type:`FILE\*` opened for
reading. On error, sets the appropriate exception (:exc:`EOFError` or
reading.
On error, sets the appropriate exception (:exc:`EOFError` or
:exc:`TypeError`) and returns *NULL*.
:exc:`TypeError`) and returns *NULL*.
...
@@ -76,14 +82,17 @@ written using these routines?
...
@@ -76,14 +82,17 @@ written using these routines?
aggressively load file data into memory so that the de-serialization can
aggressively load file data into memory so that the de-serialization can
operate from data in memory rather than reading a byte at a time from the
operate from data in memory rather than reading a byte at a time from the
file. Only use these variant if you are certain that you won't be reading
file. Only use these variant if you are certain that you won't be reading
anything else from the file. On error, sets the appropriate exception
anything else from the file.
(:exc:`EOFError` or :exc:`TypeError`) and returns *NULL*.
On error, sets the appropriate exception (:exc:`EOFError` or
:exc:`TypeError`) and returns *NULL*.
.. c:function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)
.. c:function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)
Return a Python object from the data stream in a character buffer
Return a Python object from the data stream in a character buffer
containing *len* bytes pointed to by *string*. On error, sets the
containing *len* bytes pointed to by *string*.
appropriate exception (:exc:`EOFError` or :exc:`TypeError`) and returns
*NULL*.
On error, sets the appropriate exception (:exc:`EOFError` or
:exc:`TypeError`) and returns *NULL*.
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