装饰器和元类文档 [英] Decorator and Metaclasses Documentation
问题描述
有没有人知道有关这些主题的任何好文档,看起来不像官方python教程所涵盖的那样。提前致谢。
-
聪明人知道他什么都不知道。
Does anyone know of any good documentation on these topics, doesn''t look
like the official python tutorial covers them. Thanks in advance.
--
A wise man knows he knows nothing.
推荐答案
有趣的是,我今天早些时候只是在仔细阅读这些链接。去吧Firefox
历史搜索!
http://www.python.org/2.2/descrintro.html
http://users.rcn.com/python/download/Descriptor.htm
Amusingly, I was just perusing these links earlier today. Go go Firefox
history search!
http://www.python.org/2.2/descrintro.html
http://users.rcn.com/python/download/Descriptor.htm
On Sun,2005年8月21日17:01:13 -0700,Jeffrey E. Forcier写道:
On Sun, 21 Aug 2005 17:01:13 -0700, Jeffrey E. Forcier wrote:
有趣的是,我今天早些时候正在仔细阅读这些链接。去Firefox浏览器
历史搜索!
http://www.python.org/2.2/descrintro.html
http://users.rcn.com/python/download/Descriptor.htm
Amusingly, I was just perusing these links earlier today. Go go Firefox
history search!
http://www.python.org/2.2/descrintro.html
http://users.rcn.com/python/download/Descriptor.htm
描述符与装饰器相同吗?
-
聪明人知道他什么都不知道。
Are descriptors the same thing as decorators?
--
A wise man knows he knows nothing.
sysfault写道:
sysfault wrote:
有没有人知道关于这些主题的任何好的文档,看起来不像官方python教程所涵盖的那样。在此先感谢。
Does anyone know of any good documentation on these topics, doesn''t look
like the official python tutorial covers them. Thanks in advance.
PyCon 2005,PyCon 2004和PyGTA 2004年11月的演示文稿是关于这些主题的
:
< a rel =nofollowhref =http://www.vrplumber.com/programming/target =_ blank> http://www.vrplumber.com/programming/
虽然没有详细介绍装饰器(对于特定类型的描述符,它们基本上是语法糖)。
HTH,
Mike
-
________________________________________________
Mike C. Fletcher
Designer,VR Plumber,Coder
http://www.vrplumber。 com
http://blog.vrplumber.com
PyCon 2005, PyCon 2004 and PyGTA November 2004 presentations here are
all on these topics:
http://www.vrplumber.com/programming/
Though the don''t go into extreme detail on decorators (they are
basically syntactic sugar for a particular type of descriptor).
HTH,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
这篇关于装饰器和元类文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!