《CPython Internals》閱讀筆記:p152-p176
《CPython Internals》學習第 10天,p152-p176 總結,總計 25 頁。
一、技術總結
1.adding an item to a list
my_list = []
my_list.append(obj)
上面的代碼涉及兩個指令:LOAD_FAST, LIST_APPEND。整章看下來這有這點算是可以記的了,其它的只感覺作者在零零碎碎的羅列內容。
二、英語總結(生詞:1)
無。
關于英語的注解同步更新匯總到 https://github.com/codists/English-In-CS-Books 倉庫。
三、其它
The Evaluation Loop章節簡評:作者很喜歡將代碼里面的內容列出來,示例:
The thread state type, PyThreadState, has over thirty properties, including the following:
? A unique identifier
? A linked list to the other thread states
? The interpreter state it was spawned by
? The currently executing frame
? The current recursion depth
? Optional tracing functions
? The exception currently being handled
? Any async exception currently being handled
? A stack of exceptions raised when multiple exceptions have been raised (within an except block, for example)
? A GIL counter
? Async generator counters
對此,我只想對作者說“Tell me why?列這些出來的意義在哪里?”。
四、參考資料
1. 編程
(1) Anthony Shaw,《CPython Internals》:https://book.douban.com/subject/35405785/
2. 英語
(1) Etymology Dictionary:https://www.etymonline.com
(2) Cambridge Dictionary:https://dictionary.cambridge.org

歡迎搜索及關注:編程人(a_codists)
浙公網安備 33010602011771號