Python源码阅读——基础
阅读源码的版本: cmmit id: 9e4f2f3a6b8ee995c365e86d976937c141d867f8
在阅读Python的源码时,我们第一个想到的就是先去阅读Python的数据结构的源码。
那么,我们先去挨着看看。
数据结构 long 1 2 3 4 5 6 7 8 9 10 11 struct _longobject { PyObject_VAR_HEAD digit ob_digit[1]; }; list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 typedef struct { PyObject_VAR_HEAD /* Vector of pointers to list elements.……