Differences between revisions 2 and 7 (spanning 5 versions)
Revision 2 as of 2007-01-14 10:22:10
Size: 1606
Editor: swordsp
Comment:
Revision 7 as of 2007-01-14 11:40:45
Size: 3799
Editor: swordsp
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

 * 参见[:PyBooks:Python 图书概览]
 . 对于语言特性的学习来说,特别推荐以下几本
  * 《Python Tutorial》 -- 最新,最权威,公开文档
  * 《A Byte of Python》 -- 简洁明了,浅显易懂,公开文档
  * 《Learning Python》 -- 讲解最细致,最深入
  * 《Text Process in Python》的附录A :[:TPiP/AppendixA:选择性的令人印象深刻的 python 简短回顾] -- “对 python 的超精简的但绝不失深度的介绍” from 译者 HuangYi
Line 9: Line 16:
 * [http://www.voidspace.org.uk/python/articles/python_datatypes.shtml A Very Brief Introduction to Python And its Data-Types]
 .
Line 11: Line 21:
 * [:PyBatteriesIncluded:内省的威力]
Line 12: Line 24:

* [:WeiZhong/DecoratorsInPython24:Python2.4中的新东西(1):函数和方法的修饰符]

* [:WeiZhong/WhatsNewOfPython25:What's New in Python 2.5] -- WeiZhong 译
  * [http://docs.python.org/dev/whatsnew/whatsnew25.html 原文地址]
  * [:WeiZhong/DecoratorsInPython24:Python2.4中的新东西(1):函数和方法的修饰符] by WeiZhong
  * [http://www.donews.net/limodou/archive/2004/12/20/208356.aspx Decorator 应用:使用decorator的线程同步] by limodou
Line 22: Line 31:
 * [:PyNewStyleClass:Python中的新型类及其实例详解] -- WeiZhong 节译自《Python in a Nutshell》(第一版) ==== 概述 ====
 * Python 官方网站上的[http://www.python.org/doc/newstyle.html New-style Classes 经典文档汇集]

 * 两篇系统讲解的精彩文档
  * [http://www.cafepy.com/article/python_types_and_objects Python Types and Objects]
  * [http://www.cafepy.com/article/python_attributes_and_methods/ Python Attributes and Methods]

 * [:PyNewStyleClass:Python 中的新型类及其实例详解] -- WeiZhong 节译自《Python in a Nutshell》(第一版)

==== Metaclass ====
Line 26: Line 44:
 * [http://www.python.org/pycon/dc2004/papers/24/metaclasses-pycon.pdf Python Metaclasses: Who? Why? When?] -- 2004年 PyCon 上的一篇讲稿
Line 27: Line 47:
 . Python 在成员方法中对 self 的显式声明往往会令初学者困惑和不习惯,Michael Foord在这篇文章中利用 metaclass 和 bytecode 实现了一种不需要显式声明 self 参数的类定义方式。  . Python 在成员方法中对 self 的显式声明往往会令初学者困惑和不习惯,Michael Foord 在这篇文章中利用 metaclass 和 bytecode 实现了一种不需要显式声明 self 参数的类定义方式。
Line 29: Line 49:
 * [http://codeplayer.blogspot.com/2006/12/python-method-function-descriptor.html 理解 python 的 method 和 function 兼谈 descriptor] by HuangYi  * HuangYi 的心得,发表于[http://codeplayer.blogspot.com 他的 blog]
  * [http://codeplayer.blogspot.com/2006/12/metaclass-in-python.html metaclass in python (part 1)]
  * [http://codeplayer.blogspot.com/2006/12/metaclass-in-python-part-2.html metaclass in python (part 1)]
Line 31: Line 53:
==== Descriptor ====
Line 32: Line 55:

  * [http://codeplayer.blogspot.com/2006/12/python-method-function-descriptor.html 理解 python 的 method 和 function 兼谈 descriptor] by HuangYi
Line 35: Line 60:
=== 语言进化 ===

 * [http://docs.python.org/dev/whatsnew/whatsnew25.html What's New in Python 2.5]
  * [http://www.aleax.it/Python/py25.pdf Python 2.5 Slides by Alex Martelli]
  * [:WeiZhong/WhatsNewOfPython25:WeiZhong 节译]
  * [:New4Py2.5:ZoomQuiet 译自另一篇文档]

 * [http://docs.python.org/dev/whatsnew/ What's New in Python 2.6]
Line 37: Line 71:
 * [http://www.donews.net/limodou/archive/2004/12/28/218443.aspx Python 中的 Lazy 计算]

=== 参考 ===
 * ["ThinkIntoPython"]
 * ["PythonZhDoc"]
 * ["PythoNology"]
 * [http://blog.donews.com/limodou/ limodou 的学习记录] -- limodou 的 blog
 * [http://codeplayer.blogspot.com 白菜] -- HuangYi 的 blog

概述

系统学习

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

  • 对于语言特性的学习来说,特别推荐以下几本
    • 《Python Tutorial》 -- 最新,最权威,公开文档
    • 《A Byte of Python》 -- 简洁明了,浅显易懂,公开文档
    • 《Learning Python》 -- 讲解最细致,最深入
    • 《Text Process in Python》的附录A :[:TPiP/AppendixA:选择性的令人印象深刻的 python 简短回顾] -- “对 python 的超精简的但绝不失深度的介绍” from 译者 HuangYi

专题剖析

内置类型和操作符

语句和语法

名字空间与对象模型

概述

Metaclass

Descriptor

异常机制

语言进化

其它

参考

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