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
5de64883
Kaydet (Commit)
5de64883
authored
Kas 18, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added doc for errorcode dictionary.
üst
5d68e8e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
liberrno.tex
Doc/lib/liberrno.tex
+6
-1
liberrno.tex
Doc/liberrno.tex
+6
-1
No files found.
Doc/lib/liberrno.tex
Dosyayı görüntüle @
5de64883
...
@@ -5,11 +5,16 @@
...
@@ -5,11 +5,16 @@
This module makes available standard errno system symbols.
This module makes available standard errno system symbols.
The value of each symbol is the corresponding integer value.
The value of each symbol is the corresponding integer value.
The names and descriptions are borrowed from
linux/include/errno.h
,
The names and descriptions are borrowed from
\file
{
linux/include/errno.h
}
,
which should be pretty all-inclusive. Of the following list, symbols
which should be pretty all-inclusive. Of the following list, symbols
that are not used on the current platform are not defined by the
that are not used on the current platform are not defined by the
module.
module.
The module also defines the dictionary variable
\code
{
errorcode
}
which
maps numeric error codes back to their symbol names, so that e.g.
\code
{
errno.errorcode[errno.EPERM] == 'EPERM'
}
. To translate a
numeric error code to an error message, use
\code
{
os.strerror()
}
.
Symbols available can include:
Symbols available can include:
\begin{datadesc}
{
EPERM
}
Operation not permitted
\end{datadesc}
\begin{datadesc}
{
EPERM
}
Operation not permitted
\end{datadesc}
\begin{datadesc}
{
ENOENT
}
No such file or directory
\end{datadesc}
\begin{datadesc}
{
ENOENT
}
No such file or directory
\end{datadesc}
...
...
Doc/liberrno.tex
Dosyayı görüntüle @
5de64883
...
@@ -5,11 +5,16 @@
...
@@ -5,11 +5,16 @@
This module makes available standard errno system symbols.
This module makes available standard errno system symbols.
The value of each symbol is the corresponding integer value.
The value of each symbol is the corresponding integer value.
The names and descriptions are borrowed from
linux/include/errno.h
,
The names and descriptions are borrowed from
\file
{
linux/include/errno.h
}
,
which should be pretty all-inclusive. Of the following list, symbols
which should be pretty all-inclusive. Of the following list, symbols
that are not used on the current platform are not defined by the
that are not used on the current platform are not defined by the
module.
module.
The module also defines the dictionary variable
\code
{
errorcode
}
which
maps numeric error codes back to their symbol names, so that e.g.
\code
{
errno.errorcode[errno.EPERM] == 'EPERM'
}
. To translate a
numeric error code to an error message, use
\code
{
os.strerror()
}
.
Symbols available can include:
Symbols available can include:
\begin{datadesc}
{
EPERM
}
Operation not permitted
\end{datadesc}
\begin{datadesc}
{
EPERM
}
Operation not permitted
\end{datadesc}
\begin{datadesc}
{
ENOENT
}
No such file or directory
\end{datadesc}
\begin{datadesc}
{
ENOENT
}
No such file or directory
\end{datadesc}
...
...
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