Differences between revisions 12 and 13
Revision 12 as of 2007-01-14 16:01:44
Size: 6256
Editor: swordsp
Comment:
Revision 13 as of 2007-01-14 16:11:22
Size: 6258
Editor: swordsp
Comment:
Deletions are marked like this. Additions are marked like this.
Line 54: Line 54:
  * [:http://blog.donews.com/limodou/archive/2004/12/19/207521.aspx decorator的使用] by limodou   * [http://blog.donews.com/limodou/archive/2004/12/19/207521.aspx decorator的使用] by limodou
Line 78: Line 78:
 * [:http://www.ibm.com/developerworks/cn/linux/l-pymeta/index.html Python 中的元类编程]、[http://www.ibm.com/developerworks/cn/linux/l-pymeta2/index.html Python 中的元类编程,第 2 部分]  * [http://www.ibm.com/developerworks/cn/linux/l-pymeta/index.html Python 中的元类编程]、[http://www.ibm.com/developerworks/cn/linux/l-pymeta2/index.html Python 中的元类编程,第 2 部分]
Line 81: Line 81:
 * [http://www.python.org/pycon/dc2004/papers/24/metaclasses-pycon.pdf Python Metaclasses: Who? Why? When?] -- 2004年 PyCon 上的一篇讲稿  * [http://www.python.org/pycon/dc2004/papers/24/metaclasses-pycon.pdf Python Metaclasses: Who? Why? When?] -- 2004年 Py{{{}}}Con 上的一篇讲稿
Line 105: Line 105:
=== 参考 === == 参考 ==

Python 语言研究 ::-- ["swordsp"] [DateTime] TableOfContents

Include(swordsp/COTW/Header)

概述

对于一种编程语言来说,语法格式是其最直观的表现,各种类库的 API 是其最直接的应用。 但在水面之下,语言的基础设施、模型、原理以及背后的设计哲学才是其最本质的部分,也是一种语言真正区别于另一种的所在。 此条目关注 Python 本身语言、语法的研究和探讨,收集整理相关的文档和心得(尤其是中文资料),一般不涉及具体的类库使用。 如无特别注明,均以 CPython 实现为准。

系统学习

  • 参见[:PyBooks:Python 图书概览]

  • 对于语言特性的学习来说,特别推荐以下几本
    • 《Python Tutorial》(最新版本2.5) -- 最新,最权威,公开文档
    • 《A Byte of Python》 -- 简洁明了,浅显易懂,公开文档
    • 《Learning Python》(第二版) -- 最细致,最深入
    • 《Text Process in Python》的附录A :[:TPiP/AppendixA:python精要]

    • “对 python 的超精简的但绝不失深度的介绍” -- from 译者 HuangYi

语言进化

专题剖析

内置类型和操作符

语句和语法

自省

Iterator 和 Generator

Decorator

yield

  • [:Py25yieldNote:Py2.5 yield 详说] -- shhgs 和 limodou 关于 yield 在2.5中加强语法的探讨

with

名字空间与对象模型

概述

Metaclass

Descriptor

Magic Methods

异常机制

其它

参考

PythonLanguage (last edited 2009-12-25 07:15:24 by localhost)