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
1a5856bf
Kaydet (Commit)
1a5856bf
authored
Nis 21, 2017
tarafından
Serhiy Storchaka
Kaydeden (comit)
Victor Stinner
Nis 21, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751)
üst
a36e939a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
listobject.h
Include/listobject.h
+1
-1
setobject.h
Include/setobject.h
+1
-1
tupleobject.h
Include/tupleobject.h
+1
-1
odictobject.c
Objects/odictobject.c
+1
-1
No files found.
Include/listobject.h
Dosyayı görüntüle @
1a5856bf
...
...
@@ -71,7 +71,7 @@ PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out);
#ifndef Py_LIMITED_API
#define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i])
#define PyList_SET_ITEM(op, i, v) (((PyListObject *)(op))->ob_item[i] = (v))
#define PyList_GET_SIZE(op)
Py_SIZE(op
)
#define PyList_GET_SIZE(op)
(assert(PyList_Check(op)),Py_SIZE(op)
)
#define _PyList_ITEMS(op) (((PyListObject *)(op))->ob_item)
#endif
...
...
Include/setobject.h
Dosyayı görüntüle @
1a5856bf
...
...
@@ -64,7 +64,7 @@ typedef struct {
PyObject
*
weakreflist
;
/* List of weak references */
}
PySetObject
;
#define PySet_GET_SIZE(so) (
((PySetObject *)(so))->used
)
#define PySet_GET_SIZE(so) (
assert(PyAnySet_Check(so)),(((PySetObject *)(so))->used)
)
PyAPI_DATA
(
PyObject
*
)
_PySet_Dummy
;
...
...
Include/tupleobject.h
Dosyayı görüntüle @
1a5856bf
...
...
@@ -56,7 +56,7 @@ PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);
/* Macro, trading safety for speed */
#ifndef Py_LIMITED_API
#define PyTuple_GET_ITEM(op, i) (((PyTupleObject *)(op))->ob_item[i])
#define PyTuple_GET_SIZE(op)
Py_SIZE(op
)
#define PyTuple_GET_SIZE(op)
(assert(PyTuple_Check(op)),Py_SIZE(op)
)
/* Macro, *only* to be used to fill in brand new tuples */
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
...
...
Objects/odictobject.c
Dosyayı görüntüle @
1a5856bf
...
...
@@ -1519,7 +1519,7 @@ odict_repr(PyODictObject *self)
count
++
;
}
if
(
count
<
PyList_GET_SIZE
(
pieces
))
Py
List_GET
_SIZE
(
pieces
)
=
count
;
Py_SIZE
(
pieces
)
=
count
;
}
else
{
PyObject
*
items
=
_PyObject_CallMethodIdObjArgs
((
PyObject
*
)
self
,
...
...
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