首页 > 其他 > 详细

Inheritance: For Good or For Worse

时间:2020-02-25 10:03:52      阅读:49      评论:0      收藏:0      [点我收藏+]

1. Subclassing Built-In Types Is Tricky

Since Python 2.2, subclassing built-in types such as list or dict can be done but there is a major caveat: the code of the built-ins (written in C) does not call special methods overridden by user-defined classes.

 

 

 

 

 

 

 

 

end...

Inheritance: For Good or For Worse

原文:https://www.cnblogs.com/neozheng/p/12359845.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!