RE: metatype

2013-03-11 Thread shangyu
I think I've found it out . For new-style class it's PyType_Type and for old-style class it's PyClass_Type . Thanks anyway. To: python-list@python.org From: yush...@outlook.com Subject: metatype Date: Tue, 12 Mar 2013 06:22:24 +0800 发件人: shangyu 发送时间: ‎2013/‎3/‎12

metatype

2013-03-11 Thread shangyu
-原始邮件- 发件人: "shangyu" 发送时间: ‎2013/‎3/‎12 0:20 收件人: "core-mentors...@python.org" 主题: [Core-mentorship] metatype Hi dear all, I have following Python code class mydict(dict): def __init__(self): pass I wonder how this new type get created . What is the