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
2ccf8e96
Kaydet (Commit)
2ccf8e96
authored
Ara 01, 2013
tarafından
Alexandre Vassalotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #6477: Merge with 3.3.
üst
3c23e7a5
65846c6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
object.h
Include/object.h
+2
-2
_pickle.c
Modules/_pickle.c
+2
-2
object.c
Objects/object.c
+6
-6
No files found.
Include/object.h
Dosyayı görüntüle @
2ccf8e96
...
@@ -829,8 +829,8 @@ they can have object code that is not dependent on Python compilation flags.
...
@@ -829,8 +829,8 @@ they can have object code that is not dependent on Python compilation flags.
PyAPI_FUNC
(
void
)
Py_IncRef
(
PyObject
*
);
PyAPI_FUNC
(
void
)
Py_IncRef
(
PyObject
*
);
PyAPI_FUNC
(
void
)
Py_DecRef
(
PyObject
*
);
PyAPI_FUNC
(
void
)
Py_DecRef
(
PyObject
*
);
PyAPI_DATA
(
PyTypeObject
)
PyNone_Type
;
PyAPI_DATA
(
PyTypeObject
)
_
PyNone_Type
;
PyAPI_DATA
(
PyTypeObject
)
PyNotImplemented_Type
;
PyAPI_DATA
(
PyTypeObject
)
_
PyNotImplemented_Type
;
/*
/*
_Py_NoneStruct is an object of undefined type which can be used in contexts
_Py_NoneStruct is an object of undefined type which can be used in contexts
...
...
Modules/_pickle.c
Dosyayı görüntüle @
2ccf8e96
...
@@ -3305,13 +3305,13 @@ save_singleton_type(PicklerObject *self, PyObject *obj, PyObject *singleton)
...
@@ -3305,13 +3305,13 @@ save_singleton_type(PicklerObject *self, PyObject *obj, PyObject *singleton)
static
int
static
int
save_type
(
PicklerObject
*
self
,
PyObject
*
obj
)
save_type
(
PicklerObject
*
self
,
PyObject
*
obj
)
{
{
if
(
obj
==
(
PyObject
*
)
&
PyNone_Type
)
{
if
(
obj
==
(
PyObject
*
)
&
_
PyNone_Type
)
{
return
save_singleton_type
(
self
,
obj
,
Py_None
);
return
save_singleton_type
(
self
,
obj
,
Py_None
);
}
}
else
if
(
obj
==
(
PyObject
*
)
&
PyEllipsis_Type
)
{
else
if
(
obj
==
(
PyObject
*
)
&
PyEllipsis_Type
)
{
return
save_singleton_type
(
self
,
obj
,
Py_Ellipsis
);
return
save_singleton_type
(
self
,
obj
,
Py_Ellipsis
);
}
}
else
if
(
obj
==
(
PyObject
*
)
&
PyNotImplemented_Type
)
{
else
if
(
obj
==
(
PyObject
*
)
&
_
PyNotImplemented_Type
)
{
return
save_singleton_type
(
self
,
obj
,
Py_NotImplemented
);
return
save_singleton_type
(
self
,
obj
,
Py_NotImplemented
);
}
}
return
save_global
(
self
,
obj
,
NULL
);
return
save_global
(
self
,
obj
,
NULL
);
...
...
Objects/object.c
Dosyayı görüntüle @
2ccf8e96
...
@@ -1409,7 +1409,7 @@ static PyNumberMethods none_as_number = {
...
@@ -1409,7 +1409,7 @@ static PyNumberMethods none_as_number = {
0
,
/* nb_index */
0
,
/* nb_index */
};
};
PyTypeObject
PyNone_Type
=
{
PyTypeObject
_
PyNone_Type
=
{
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
"NoneType"
,
"NoneType"
,
0
,
0
,
...
@@ -1452,7 +1452,7 @@ PyTypeObject PyNone_Type = {
...
@@ -1452,7 +1452,7 @@ PyTypeObject PyNone_Type = {
PyObject
_Py_NoneStruct
=
{
PyObject
_Py_NoneStruct
=
{
_PyObject_EXTRA_INIT
_PyObject_EXTRA_INIT
1
,
&
PyNone_Type
1
,
&
_
PyNone_Type
};
};
/* NotImplemented is an object that can be used to signal that an
/* NotImplemented is an object that can be used to signal that an
...
@@ -1494,7 +1494,7 @@ notimplemented_dealloc(PyObject* ignore)
...
@@ -1494,7 +1494,7 @@ notimplemented_dealloc(PyObject* ignore)
Py_FatalError
(
"deallocating NotImplemented"
);
Py_FatalError
(
"deallocating NotImplemented"
);
}
}
PyTypeObject
PyNotImplemented_Type
=
{
PyTypeObject
_
PyNotImplemented_Type
=
{
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
"NotImplementedType"
,
"NotImplementedType"
,
0
,
0
,
...
@@ -1537,7 +1537,7 @@ PyTypeObject PyNotImplemented_Type = {
...
@@ -1537,7 +1537,7 @@ PyTypeObject PyNotImplemented_Type = {
PyObject
_Py_NotImplementedStruct
=
{
PyObject
_Py_NotImplementedStruct
=
{
_PyObject_EXTRA_INIT
_PyObject_EXTRA_INIT
1
,
&
PyNotImplemented_Type
1
,
&
_
PyNotImplemented_Type
};
};
void
void
...
@@ -1567,10 +1567,10 @@ _Py_ReadyTypes(void)
...
@@ -1567,10 +1567,10 @@ _Py_ReadyTypes(void)
if
(
PyType_Ready
(
&
PyList_Type
)
<
0
)
if
(
PyType_Ready
(
&
PyList_Type
)
<
0
)
Py_FatalError
(
"Can't initialize list type"
);
Py_FatalError
(
"Can't initialize list type"
);
if
(
PyType_Ready
(
&
PyNone_Type
)
<
0
)
if
(
PyType_Ready
(
&
_
PyNone_Type
)
<
0
)
Py_FatalError
(
"Can't initialize None type"
);
Py_FatalError
(
"Can't initialize None type"
);
if
(
PyType_Ready
(
&
PyNotImplemented_Type
)
<
0
)
if
(
PyType_Ready
(
&
_
PyNotImplemented_Type
)
<
0
)
Py_FatalError
(
"Can't initialize NotImplemented type"
);
Py_FatalError
(
"Can't initialize NotImplemented type"
);
if
(
PyType_Ready
(
&
PyTraceBack_Type
)
<
0
)
if
(
PyType_Ready
(
&
PyTraceBack_Type
)
<
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