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
31c604d3
Kaydet (Commit)
31c604d3
authored
Eyl 22, 2010
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 9916: Add some missing errno symbols.
üst
0258ce8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
test_errno.py
Lib/test/test_errno.py
+2
-1
NEWS
Misc/NEWS
+4
-2
errnomodule.c
Modules/errnomodule.c
+30
-0
No files found.
Lib/test/test_errno.py
Dosyayı görüntüle @
31c604d3
...
...
@@ -20,7 +20,8 @@ class ErrnoAttributeTests(unittest.TestCase):
def
test_using_errorcode
(
self
):
# Every key value in errno.errorcode should be on the module.
for
value
in
errno
.
errorcode
.
values
():
self
.
assertTrue
(
hasattr
(
errno
,
value
),
'no
%
s attr in errno'
%
value
)
self
.
assertTrue
(
hasattr
(
errno
,
value
),
'no
%
s attr in errno'
%
value
)
class
ErrorcodeTests
(
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
31c604d3
...
...
@@ -14,8 +14,8 @@ Core and Builtins
threads are still running. Instead, reinitialize the GIL on a second call to
Py_Initialize().
- All SyntaxErrors now have a column offset and therefore a caret when the
error
is printed.
- All SyntaxErrors now have a column offset and therefore a caret when the
error
is printed.
- Issue #9252: PyImport_Import no longer uses a fromlist hack to return the
module that was imported, but instead gets the module from sys.modules.
...
...
@@ -62,6 +62,8 @@ Core and Builtins
Library
-------
- Issue #9916: Add some missing errno symbols.
- Issue #9877: Expose sysconfig.get_makefile_filename()
- logging: Added hasHandlers() method to Logger and LoggerAdapter.
...
...
Modules/errnomodule.c
Dosyayı görüntüle @
31c604d3
...
...
@@ -797,6 +797,36 @@ PyInit_errno(void)
#ifdef WSAN
inscode
(
d
,
ds
,
de
,
"WSAN"
,
WSAN
,
"Error WSAN"
);
#endif
#ifdef ENOMEDIUM
inscode
(
d
,
ds
,
de
,
"ENOMEDIUM"
,
ENOMEDIUM
,
"No medium found"
);
#endif
#ifdef EMEDIUMTYPE
inscode
(
d
,
ds
,
de
,
"EMEDIUMTYPE"
,
EMEDIUMTYPE
,
"Wrong medium type"
);
#endif
#ifdef ECANCELED
inscode
(
d
,
ds
,
de
,
"ECANCELED"
,
ECANCELED
,
"Operation Canceled"
);
#endif
#ifdef ENOKEY
inscode
(
d
,
ds
,
de
,
"ENOKEY"
,
ENOKEY
,
"Required key not available"
);
#endif
#ifdef EKEYEXPIRED
inscode
(
d
,
ds
,
de
,
"EKEYEXPIRED"
,
EKEYEXPIRED
,
"Key has expired"
);
#endif
#ifdef EKEYREVOKED
inscode
(
d
,
ds
,
de
,
"EKEYREVOKED"
,
EKEYREVOKED
,
"Key has been revoked"
);
#endif
#ifdef EKEYREJECTED
inscode
(
d
,
ds
,
de
,
"EKEYREJECTED"
,
EKEYREJECTED
,
"Key was rejected by service"
);
#endif
#ifdef EOWNERDEAD
inscode
(
d
,
ds
,
de
,
"EOWNERDEAD"
,
EOWNERDEAD
,
"Owner died"
);
#endif
#ifdef ENOTRECOVERABLE
inscode
(
d
,
ds
,
de
,
"ENOTRECOVERABLE"
,
ENOTRECOVERABLE
,
"State not recoverable"
);
#endif
#ifdef ERFKILL
inscode
(
d
,
ds
,
de
,
"ERFKILL"
,
ERFKILL
,
"Operation not possible due to RF-kill"
);
#endif
/* Solaris-specific errnos */
#ifdef ECANCELED
...
...
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