CPython의 list 구현 CPython 에서 리스트 객체는 array of pointers 형태로 아이템을 갖는다. c 구조체 typedef struct { PyObject_VAR_HEAD PyObject **ob_item; Py_ssize_t allocated; } PyListObject; ob_item 이 포인터 array allocated 는 실제 할당된 메모리 사이즈 initialize 파이썬에서 리스트를 초기화 할 때, CPython 은 다음과 같은 순서로 초기화를 한다. l = list() arguments: size of the list = 0 returns: list object = [] PyListNew: nbytes = size * size of global Python objec..