Inheritance from builtin list and override of methods.

Fredrik Lundh fredrik at pythonware.com
Tue Nov 28 08:22:54 CET 2006


OKB (not okblacke) wrote:

 > Why doesn't it?

because whoever wrote the class didn't do things that way, mostly for 
efficiency reasons.  there's nothing in Python that keeps you from using 
template methods if you want, but that's a costly approach, so it's not 
very common.

I suggest reading up on OO design patterns.

</F>




More information about the Python-list mailing list