原文鏈接:http://www.dongwm.com/archives/pythonjin-jie-bi-du-hui-zong/
前言
昨天翻到了一本在github開源的書: Intermediate Python. 就有了此文, 梳理了一下一些之前翻到的對python語言細節點的答案, 博文等.
英文的
super
Python’s super() considered super!
rhettinger是python核心開發者. 這篇博文也是講super最好最深入的博文了.
裝飾器
Understanding Python Decorators
如果你還沒有經常性的用裝飾器, 你就要思考你的工作需求是不是的太簡單了, 或者該考慮下這種AOP模式的開發的作用了
元類
What
is a metaclass in Python?
Metaclasses
Demystified
元類是python高階語法. 合理的使用可以減少大量重複性的代碼.
防禦性編程中的LBYL和EAFP
Try/catch or validation for speed?
這其實就是事先檢查和異常處理2個方式的討論
__new__ 和 __init__
Python (and Python C API): new versus init
這也是一個常見的面試題.
self
但是注意標題. 其實self不是一個關鍵詞. 這裏知識幫助你理解self的用意
協程和併發
A Curious Course on Coroutines and Concurrency
生成器
Generator Tricks for Systems Programmers
python開發必讀
Code Like a Pythonista: Idiomatic Python
unicode必讀
Unicode In Python, Completely Demystified
之前我曾經非常困惑於各種unicode報錯
exec和eval
Be careful with exec and eval in Python
我的觀點是從來都不要用exec/eval
python性能貼士
PerformanceTips
Python
Performance Tips, Part 1
Python
Performance Tips, Part 2
描述符
python隱藏特性
設計模式
初級python進階文檔
Intermediate and Advanced Software Carpentry in Python
這個文檔不是非常難, 甚至有點過時. 但是涵蓋了python的方方面面. 非常有助於開拓視野, 更瞭解python
中(譯)文
如何理解Python關鍵字yield
What
does the yield keyword do in Python
如何理解Python關鍵字yield
yield 是python語言裏面讓初學者困惑的關鍵詞之一. 可以參考這2個理解讓你對yield入門. 並且之後在正確的場景下使用
迭代器(Iterator)與生成器(Generator)的區別
Difference
between Python’s Generators and Iterators
迭代器(Iterator)與生成器(Generator)的區別
這個是很常見的面試問題.
設計模式入門
所謂設計模式其實就是經過總結、優化的,對我們經常會碰到的一些編程問題的可重用解決方案. 其實有時候會發現沃恩日常工作中的一些思考就是設計模式
python設計模式- 我寫的. 供參考.
描述符
Descriptor
HowTo Guide
Python描述器引導(翻譯)
descriptor是python高階的特性, 可以瞭解下python設計的優雅. PS: 裏面也提到了類方法和靜態方法的區別
使用斷言(assert)的正確場景
Python
使用斷言的最佳時機
Best
practice for Python Assert
Python
track: python idioms
Python的慣例
提高編碼效率
Improving
Your Python Productivity
提高你的Python編碼效率
Stackoverflow上的Python問題精選
Python魔法方法指南
Python高級編程 - 我寫的
洪強寧的ppt.
PS: 這個 二
和上一個沒有任何次序關係