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
5cade88a
Kaydet (Commit)
5cade88a
authored
Eki 13, 2016
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Check return value of _PyDict_SetItemId()
üst
2ccdb5a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
typeobject.c
Objects/typeobject.c
+4
-1
No files found.
Objects/typeobject.c
Dosyayı görüntüle @
5cade88a
...
...
@@ -2848,13 +2848,16 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
/* Set type.__module__ */
s
=
strrchr
(
spec
->
name
,
'.'
);
if
(
s
!=
NULL
)
{
int
err
;
modname
=
PyUnicode_FromStringAndSize
(
spec
->
name
,
(
Py_ssize_t
)(
s
-
spec
->
name
));
if
(
modname
==
NULL
)
{
goto
fail
;
}
_PyDict_SetItemId
(
type
->
tp_dict
,
&
PyId___module__
,
modname
);
err
=
_PyDict_SetItemId
(
type
->
tp_dict
,
&
PyId___module__
,
modname
);
Py_DECREF
(
modname
);
if
(
err
!=
0
)
goto
fail
;
}
else
{
if
(
PyErr_WarnFormat
(
PyExc_DeprecationWarning
,
1
,
"builtin type %.200s has no __module__ attribute"
,
...
...
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