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
549cb6ea
Kaydet (Commit)
549cb6ea
authored
Agu 11, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added a module docstring (that's all this module needs).
üst
0618f5e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
errnomodule.c
Modules/errnomodule.c
+15
-1
No files found.
Modules/errnomodule.c
Dosyayı görüntüle @
549cb6ea
...
...
@@ -80,11 +80,25 @@ _inscode(d, de, name, code)
Py_XDECREF
(
v
);
}
static
char
errno__doc__
[]
=
"This module makes available standard errno system symbols.
\n
\
\n
\
The value of each symbol is the corresponding integer value,
\n
\
e.g., on most systems, errno.ENOENT equals the integer 2.
\n
\
\n
\
The dictionary errno.errorcode maps numeric codes to symbol names,
\n
\
e.g., errno.errorcode[2] could be the string 'ENOENT'.
\n
\
\n
\
Symbols that are not relevant to the underlying system are not defined.
\n
\
\n
\
To map error codes to error messages, use the function os.strerror(),
\n
\
e.g. os.strerror(2) could return 'No such file or directory'."
;
void
initerrno
()
{
PyObject
*
m
,
*
d
,
*
de
;
m
=
Py_InitModule
(
"errno"
,
errno_methods
);
m
=
Py_InitModule
3
(
"errno"
,
errno_methods
,
errno__doc__
);
d
=
PyModule_GetDict
(
m
);
de
=
PyDict_New
();
if
(
de
==
NULL
||
PyDict_SetItemString
(
d
,
"errorcode"
,
de
))
...
...
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