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
0e7aa8c1
Kaydet (Commit)
0e7aa8c1
authored
Nis 03, 2009
tarafından
Alexandre Vassalotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update a comment about why the __module__ can sometime be NULL.
Initialize last_string and arg member of Unpickler.
üst
b646aa17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
_pickle.c
Modules/_pickle.c
+6
-3
No files found.
Modules/_pickle.c
Dosyayı görüntüle @
0e7aa8c1
...
@@ -691,9 +691,9 @@ whichmodule(PyObject *global, PyObject *global_name)
...
@@ -691,9 +691,9 @@ whichmodule(PyObject *global, PyObject *global_name)
module_name
=
PyObject_GetAttr
(
global
,
module_str
);
module_name
=
PyObject_GetAttr
(
global
,
module_str
);
/* In some rare cases (e.g.,
random.getrandbits), __module__ can be
/* In some rare cases (e.g.,
bound methods of extension types),
None. If it is so, then search sys.modules for the module of
__module__ can be None. If it is so, then search sys.modules
global. */
for the module of
global. */
if
(
module_name
==
Py_None
)
{
if
(
module_name
==
Py_None
)
{
Py_DECREF
(
module_name
);
Py_DECREF
(
module_name
);
goto
search
;
goto
search
;
...
@@ -4447,6 +4447,9 @@ Unpickler_init(UnpicklerObject *self, PyObject *args, PyObject *kwds)
...
@@ -4447,6 +4447,9 @@ Unpickler_init(UnpicklerObject *self, PyObject *args, PyObject *kwds)
if
(
self
->
memo
==
NULL
)
if
(
self
->
memo
==
NULL
)
return
-
1
;
return
-
1
;
self
->
last_string
=
NULL
;
self
->
arg
=
NULL
;
return
0
;
return
0
;
}
}
...
...
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