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
f36f20f8
Kaydet (Commit)
f36f20f8
authored
Nis 14, 2013
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge with 3.3
üst
6d9e1459
991fc573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
11 deletions
+29
-11
exceptions.rst
Doc/c-api/exceptions.rst
+29
-11
No files found.
Doc/c-api/exceptions.rst
Dosyayı görüntüle @
f36f20f8
...
@@ -222,13 +222,19 @@ in various ways. There is a separate error indicator for each thread.
...
@@ -222,13 +222,19 @@ in various ways. There is a separate error indicator for each thread.
when the system call returns an error.
when the system call returns an error.
.. c:function:: PyObject* PyErr_SetFromErrnoWithFilename
(PyObject *type, const char *filename
)
.. c:function:: PyObject* PyErr_SetFromErrnoWithFilename
Object(PyObject *type, PyObject *filenameObject
)
Similar to :c:func:`PyErr_SetFromErrno`, with the additional behavior that if
Similar to :c:func:`PyErr_SetFromErrno`, with the additional behavior that if
*filename* is not *NULL*, it is passed to the constructor of *type* as a third
*filenameObject* is not *NULL*, it is passed to the constructor of *type* as
parameter. In the case of exceptions such as :exc:`IOError` and :exc:`OSError`,
a third parameter. In the case of exceptions such as :exc:`IOError` and
this is used to define the :attr:`filename` attribute of the exception instance.
:exc:`OSError`, this is used to define the :attr:`filename` attribute of the
*filename* is decoded from the filesystem encoding
exception instance.
.. c:function:: PyObject* PyErr_SetFromErrnoWithFilename(PyObject *type, const char *filename)
Similar to :c:func:`PyErr_SetFromErrnoWithFilenameObject`, but the filename
is given as a C string. *filename* is decoded from the filesystem encoding
(:func:`sys.getfilesystemencoding`).
(:func:`sys.getfilesystemencoding`).
...
@@ -250,16 +256,28 @@ in various ways. There is a separate error indicator for each thread.
...
@@ -250,16 +256,28 @@ in various ways. There is a separate error indicator for each thread.
specifying the exception type to be raised. Availability: Windows.
specifying the exception type to be raised. Availability: Windows.
.. c:function:: PyObject* PyErr_SetFromWindowsErrWithFilenameObject(int ierr, PyObject *filenameObject)
Similar to :c:func:`PyErr_SetFromWindowsErr`, with the additional behavior
that if *filenameObject* is not *NULL*, it is passed to the constructor of
:exc:`WindowsError` as a third parameter. Availability: Windows.
.. c:function:: PyObject* PyErr_SetFromWindowsErrWithFilename(int ierr, const char *filename)
.. c:function:: PyObject* PyErr_SetFromWindowsErrWithFilename(int ierr, const char *filename)
Similar to :c:func:`PyErr_SetFromWindowsErr`, with the additional behavior that
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, but the
if *filename* is not *NULL*, it is passed to the constructor of
filename is given as a C string. *filename* is decoded from the filesystem
:exc:`WindowsError` as a third parameter. *filename* is decoded from the
encoding (:func:`sys.getfilesystemencoding`). Availability: Windows.
filesystem encoding (:func:`sys.getfilesystemencoding`). Availability:
Windows.
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObject(PyObject *type, int ierr, PyObject *filename)
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, with an
additional parameter specifying the exception type to be raised.
Availability: Windows.
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject *type, int ierr, char *filename)
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject *type, int ierr, c
onst c
har *filename)
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, with an additional
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, with an additional
parameter specifying the exception type to be raised. Availability: Windows.
parameter specifying the exception type to be raised. Availability: Windows.
...
...
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